about summary refs log tree commit diff
path: root/fs-tracer-ebpf/src/syscalls/open.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fs-tracer-ebpf/src/syscalls/open.rs')
-rw-r--r--fs-tracer-ebpf/src/syscalls/open.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs-tracer-ebpf/src/syscalls/open.rs b/fs-tracer-ebpf/src/syscalls/open.rs
index 69458f5..58ff464 100644
--- a/fs-tracer-ebpf/src/syscalls/open.rs
+++ b/fs-tracer-ebpf/src/syscalls/open.rs
@@ -92,19 +92,19 @@ unsafe fn handle_sys_open_enter(ctx: TracePointContext) -> Result<c_long, c_long
 
     info!(&ctx, "PWD: {}", pwd);
 
-    let tgid: u32 = ctx.tgid();
-    let _ = SYSCALL_ENTERS.insert(
-        &tgid,
-        &SyscallInfo::Open(OpenSyscallBPF {
-            pid: ctx.pid(),
-            dfd: args.dfd,
-            filename: buf.buf,
-            mode: args.mode,
-            flags: args.flags,
-            ret: -9999,
-        }),
-        0,
-    );
+    // let tgid: u32 = ctx.tgid();
+    // let _ = SYSCALL_ENTERS.insert(
+    //     &tgid,
+    //     &SyscallInfo::Open(OpenSyscallBPF {
+    //         pid: ctx.pid(),
+    //         dfd: args.dfd,
+    //         filename: buf.buf,
+    //         mode: args.mode,
+    //         flags: args.flags,
+    //         ret: -9999,
+    //     }),
+    //     0,
+    // );
     Ok(0)
 }