summaryrefslogtreecommitdiff
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
parentc3d14a993d02062ee37c257848cf5f9268fc8fd3 (diff)
fix name
-rw-r--r--internal/ioriotng.bpf.c8
-rw-r--r--internal/types/types.bpf.h6
2 files changed, 7 insertions, 7 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);
diff --git a/internal/types/types.bpf.h b/internal/types/types.bpf.h
index 7601c17..35c5311 100644
--- a/internal/types/types.bpf.h
+++ b/internal/types/types.bpf.h
@@ -12,20 +12,20 @@
struct null_event {
__u32 op_id;
- __u32 tid_tgid;
+ __u32 pid_tgid;
__u64 time;
};
struct fd_event {
__u32 op_id;
- __u32 tid_tgid;
+ __u32 pid_tgid;
__u64 time;
__s32 fd;
};
struct openat_enter_event {
__u32 op_id;
- __u32 tid_tgid;
+ __u32 pid_tgid;
__u64 time;
char filename[MAX_FILENAME_LENGTH];
char comm[MAX_PROGNAME_LENGTH];