diff options
Diffstat (limited to 'fs-tracer-common/src/lib.rs')
-rw-r--r-- | fs-tracer-common/src/lib.rs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs-tracer-common/src/lib.rs b/fs-tracer-common/src/lib.rs index 9be9774..7ed6d66 100644 --- a/fs-tracer-common/src/lib.rs +++ b/fs-tracer-common/src/lib.rs @@ -1,8 +1,11 @@ #![no_std] -use core::fmt::{Formatter, self}; +use core::fmt::{self, Formatter}; use core::str; +pub enum SyscallInfo { + Write(WriteSyscallBPF), +} #[derive(Clone, Copy)] pub struct WriteSyscallBPF { @@ -21,9 +24,9 @@ impl fmt::Debug for WriteSyscallBPF { f.debug_struct("WriteSyscallBPF") .field("pid", &self.pid) .field("fd", &self.fd) - .field("buf", &str::from_utf8(&self.buf).unwrap_or("") ) + .field("buf", &str::from_utf8(&self.buf).unwrap_or("")) .field("count", &self.count) .field("ret", &self.ret) .finish() } -} \ No newline at end of file +} |