diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-09 23:23:52 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-06-09 23:54:34 +0200 |
commit | c776f2ea2e6387b26994601cebde8819ab237a3f (patch) | |
tree | 85368296518f547a3cad1dc00f0898d02faebfc2 /fs-tracer-common | |
parent | fs-tracer: Cleanup (diff) | |
download | fs-tracer-c776f2ea2e6387b26994601cebde8819ab237a3f.tar.gz fs-tracer-c776f2ea2e6387b26994601cebde8819ab237a3f.tar.bz2 fs-tracer-c776f2ea2e6387b26994601cebde8819ab237a3f.zip |
fs-tracer: Handle open files state
Diffstat (limited to 'fs-tracer-common')
-rw-r--r-- | fs-tracer-common/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fs-tracer-common/src/lib.rs b/fs-tracer-common/src/lib.rs index cee95e1..3615dec 100644 --- a/fs-tracer-common/src/lib.rs +++ b/fs-tracer-common/src/lib.rs @@ -4,7 +4,6 @@ use aya_ebpf::cty::c_long; use core::ffi::c_int; use core::ffi::c_size_t; -use core::ffi::c_uint; use core::ffi::CStr; use core::fmt::{self, Formatter}; use core::str; @@ -21,7 +20,7 @@ pub enum SyscallInfo { #[derive(Clone, Copy)] pub struct WriteSyscallBPF { pub pid: u32, - pub fd: c_uint, + pub fd: c_int, pub buf: [u8; 96], //TODO: might want to use c_char here pub count: c_size_t, @@ -49,7 +48,7 @@ pub struct OpenSyscallBPF { pub filename: [u8; 96], pub flags: c_int, pub mode: umode_t, - pub ret: c_long, + pub ret: c_int, } unsafe impl Sync for OpenSyscallBPF {} |