summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-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];