about summary refs log tree commit diff
path: root/fs-tracer-ebpf
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-20 13:43:23 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-07-20 13:43:23 +0200
commit12b0effee7fe11dff3f63f970a90210b98acd247 (patch)
treefac957adfa114cc66bcec99e3dda17fb86956a15 /fs-tracer-ebpf
parentfs-tracer: cleanup syscall handler (diff)
downloadfs-tracer-12b0effee7fe11dff3f63f970a90210b98acd247.tar.gz
fs-tracer-12b0effee7fe11dff3f63f970a90210b98acd247.tar.bz2
fs-tracer-12b0effee7fe11dff3f63f970a90210b98acd247.zip
Syscalls: Write: Fix types
Diffstat (limited to 'fs-tracer-ebpf')
-rw-r--r--fs-tracer-ebpf/src/syscalls/write.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs-tracer-ebpf/src/syscalls/write.rs b/fs-tracer-ebpf/src/syscalls/write.rs
index 232dfba..b236887 100644
--- a/fs-tracer-ebpf/src/syscalls/write.rs
+++ b/fs-tracer-ebpf/src/syscalls/write.rs
@@ -22,7 +22,7 @@ unsafe fn handle_sys_write_enter(ctx: TracePointContext) -> Result<c_long, c_lon
     // info!(&ctx, "handle_sys_write start");
     #[derive(Clone, Copy)]
     struct WriteSyscallArgs {
-        fd: c_uint,
+        fd: c_int,
         buf: *const c_char,
         count: c_size_t,
     }