diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-15 09:58:49 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-15 09:58:49 +0200 |
| commit | a7733cd4ab00b542d7e1afd53d9319b7f8b33674 (patch) | |
| tree | 4975fe995d15fd7af9be5b1aeb870f52e19aac36 /ioriotng.bpf.c | |
| parent | 00b7b0383d6610a585dbea190a2c9c6326174fe9 (diff) | |
map sizes can be specified through flags
Diffstat (limited to 'ioriotng.bpf.c')
| -rw-r--r-- | ioriotng.bpf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ioriotng.bpf.c b/ioriotng.bpf.c index ebb8458..9c01d9f 100644 --- a/ioriotng.bpf.c +++ b/ioriotng.bpf.c @@ -17,9 +17,11 @@ int handle_enter_open(struct trace_event_raw_sys_enter *ctx) { return 0; u32 tid = bpf_get_current_pid_tgid(); + u64 time = bpf_ktime_get_ns(); struct open_event open_event = {}; open_event.tid = tid; + open_event.time = time; bpf_probe_read_user_str(open_event.filename, sizeof(open_event.filename), (void *)ctx->args[0]); bpf_get_current_comm(&open_event.comm, sizeof(open_event.comm)); |
