about summary refs log tree commit diff
path: root/fs-tracer-ebpf/src/main.rs
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2024-01-27 21:51:11 +0100
committerBaitinq <[email protected]>2024-01-27 22:01:39 +0100
commit20c45aabf9afc660aa038b18aa1da86a2a79b8cb (patch)
tree19762b65904c9742d459b2419b7500101a84b5b1 /fs-tracer-ebpf/src/main.rs
parentRead fd partial path (diff)
downloadfs-tracer-20c45aabf9afc660aa038b18aa1da86a2a79b8cb.tar.gz
fs-tracer-20c45aabf9afc660aa038b18aa1da86a2a79b8cb.tar.bz2
fs-tracer-20c45aabf9afc660aa038b18aa1da86a2a79b8cb.zip
get correct dfd
Diffstat (limited to 'fs-tracer-ebpf/src/main.rs')
-rw-r--r--fs-tracer-ebpf/src/main.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs-tracer-ebpf/src/main.rs b/fs-tracer-ebpf/src/main.rs
index f33d42e..d6539cd 100644
--- a/fs-tracer-ebpf/src/main.rs
+++ b/fs-tracer-ebpf/src/main.rs
@@ -40,9 +40,6 @@ enum SyscallType {
     Exit,
 }
 
-//#[map]
-//static mut READ_FROM_USERSPACE_BUFFER: PerCpuArray<[u8;2048]> = PerCpuArray::with_max_entries(1, 0);
-
 #[tracepoint]
 pub fn fs_tracer_enter(ctx: TracePointContext) -> c_long {
     match try_fs_tracer(ctx, SyscallType::Enter) {
@@ -60,6 +57,7 @@ pub fn fs_tracer_exit(ctx: TracePointContext) -> c_long {
     }
 }
 
+
 #[inline(always)]
 fn ptr_at<T>(ctx: &TracePointContext, offset: usize) -> Option<*const T> {
     let start = ctx.as_ptr(); //maybe try using the  bpf_probe_read here to see if we can use result of that to know the type of the syscall