summaryrefslogtreecommitdiff
path: root/main.bpf.c
diff options
context:
space:
mode:
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));