summaryrefslogtreecommitdiff
path: root/main.bpf.c
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-11 22:28:41 +0200
committerPaul Buetow <paul@buetow.org>2024-02-11 22:28:41 +0200
commitfe024ec9fc47b96b5cc9b3301ebf311510568fda (patch)
tree3425a50020dceaf218e3192b5a1a881c43ab3ddf /main.bpf.c
parent0f3e937fff5e8e7407f262694e8e2558bcfec703 (diff)
initial timestamps
Diffstat (limited to 'main.bpf.c')
-rw-r--r--main.bpf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.bpf.c b/main.bpf.c
index c162775..d9b0f5a 100644
--- a/main.bpf.c
+++ b/main.bpf.c
@@ -17,7 +17,9 @@ int handle_enter_open(struct trace_event_raw_sys_enter *ctx) {
return 0;
u32 tid = bpf_get_current_pid_tgid();
- struct open_event event = { .op_id = OPEN };
+ struct open_event event = {
+ .op_id = OPEN,
+ };
bpf_probe_read_user_str(event.filename, sizeof(event.filename), (void *)ctx->args[0]);
bpf_get_current_comm(&event.comm, sizeof(event.comm));