diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-04-06 23:15:22 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-04-06 23:15:22 +0200 |
commit | 5b559ca5b9bdee363d18f1fe0625bcb2495b44f2 (patch) | |
tree | 98c7e68c390f1c47ca3d39e84477a59d5525d8f0 /fs-tracer-ebpf | |
parent | Fix build (diff) | |
download | fs-tracer-5b559ca5b9bdee363d18f1fe0625bcb2495b44f2.tar.gz fs-tracer-5b559ca5b9bdee363d18f1fe0625bcb2495b44f2.tar.bz2 fs-tracer-5b559ca5b9bdee363d18f1fe0625bcb2495b44f2.zip |
fix undefined fn
Diffstat (limited to 'fs-tracer-ebpf')
-rw-r--r-- | fs-tracer-ebpf/src/syscalls/open.rs | 26 |
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) } |