Skip to content

Commit 65a2adb

Browse files
committed
update c file
1 parent 2bb0d1b commit 65a2adb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src2/ssl_read.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ struct ssl_event_t {
1616
};
1717

1818
SEC("uprobe/SSL_read")
19-
int ssl_read_enter_v3(void *ssl, void *buffer, int num) {
19+
int ssl_read_enter_v3(struct pt_regs *ctx) {
20+
void *ssl = (void *)PT_REGS_PARM1(ctx);
21+
void *buffer = (void *)PT_REGS_PARM2(ctx);
22+
int num = (int)PT_REGS_PARM3(ctx);
2023
struct ssl_event_t *event;
2124
event = bpf_ringbuf_reserve(&events, sizeof(*event), 0);
2225
if (!event) return 0;

0 commit comments

Comments
 (0)