about summary refs log tree commit diff
path: root/fs-tracer-common/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'fs-tracer-common/src/lib.rs')
-rw-r--r--fs-tracer-common/src/lib.rs12
1 files changed, 8 insertions, 4 deletions
diff --git a/fs-tracer-common/src/lib.rs b/fs-tracer-common/src/lib.rs
index 7ed6d66..4469128 100644
--- a/fs-tracer-common/src/lib.rs
+++ b/fs-tracer-common/src/lib.rs
@@ -1,7 +1,11 @@
 #![no_std]
+#![feature(c_size_t)]
 
+use core::ffi::c_uint;
 use core::fmt::{self, Formatter};
 use core::str;
+use aya_bpf::cty::c_long;
+use core::ffi::c_size_t;
 
 pub enum SyscallInfo {
     Write(WriteSyscallBPF),
@@ -10,11 +14,11 @@ pub enum SyscallInfo {
 #[derive(Clone, Copy)]
 pub struct WriteSyscallBPF {
     pub pid: u32,
-    pub fd: u64,
-    pub buf: [u8; 96],
-    pub count: u64,
+    pub fd: c_uint,
+    pub buf: [u8; 96], //TODO: might want to use c_char here
+    pub count: c_size_t,
 
-    pub ret: i64,
+    pub ret: c_long,
 }
 
 unsafe impl Sync for WriteSyscallBPF {}