summaryrefslogtreecommitdiff
path: root/internal/ioriotng.bpf.c
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-16 21:57:38 +0200
committerPaul Buetow <paul@buetow.org>2024-02-16 21:57:38 +0200
commit08f7a9bfa2ade822fd781609f63a4d71eee1b64e (patch)
tree4bc6b0e0efce953dd7a19a963c8db1571782d331 /internal/ioriotng.bpf.c
parentc3d14a993d02062ee37c257848cf5f9268fc8fd3 (diff)
fix name
Diffstat (limited to 'internal/ioriotng.bpf.c')
-rw-r--r--internal/ioriotng.bpf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/ioriotng.bpf.c b/internal/ioriotng.bpf.c
index b89cfbc..3296611 100644
--- a/internal/ioriotng.bpf.c
+++ b/internal/ioriotng.bpf.c
@@ -21,7 +21,7 @@ int handle_enter_openat(struct trace_event_raw_sys_enter *ctx) {
return 0;
ev->op_id = OPENAT_ENTER_OP_ID;
- ev->tid_tgid = bpf_get_current_pid_tgid();
+ ev->pid_tgid = bpf_get_current_pid_tgid();
ev->time = bpf_ktime_get_ns();
__builtin_memset(&(ev->filename), 0, sizeof(ev->filename) + sizeof(ev->comm));
@@ -42,7 +42,7 @@ int handle_exit_openat(struct trace_event_raw_sys_exit *ctx) {
return 0;
ev->op_id = OPENAT_EXIT_OP_ID;
- ev->tid_tgid = bpf_get_current_pid_tgid();
+ ev->pid_tgid = bpf_get_current_pid_tgid();
ev->time = bpf_ktime_get_ns();
ev->fd = ctx->ret;
@@ -71,7 +71,7 @@ int handle_enter_close(struct trace_event_raw_sys_enter *ctx) {
return 0;
ev->op_id = CLOSE_ENTER_OP_ID;
- ev->tid_tgid = bpf_get_current_pid_tgid();
+ ev->pid_tgid = bpf_get_current_pid_tgid();
ev->time = bpf_ktime_get_ns();
ev->fd = (int)ctx->args[0];
@@ -89,7 +89,7 @@ int handle_exit_close(struct trace_event_raw_sys_enter *ctx) {
return 0;
ev->op_id = CLOSE_EXIT_OP_ID;
- ev->tid_tgid = bpf_get_current_pid_tgid();
+ ev->pid_tgid = bpf_get_current_pid_tgid();
ev->time = bpf_ktime_get_ns();
bpf_ringbuf_submit(ev, 0);