about summary refs log tree commit diff
path: root/fs-tracer-ebpf
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2024-01-18 00:25:13 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2024-01-18 00:25:13 +0100
commit25998c409fdbc4f0e5d2a9bc4d8d286b21fb1cb4 (patch)
tree6d1100dfa12854ed8c82607e36fa931b1b1d3efb /fs-tracer-ebpf
parentMatch syscall_enter and syscall_exits to get return value (diff)
downloadfs-tracer-25998c409fdbc4f0e5d2a9bc4d8d286b21fb1cb4.tar.gz
fs-tracer-25998c409fdbc4f0e5d2a9bc4d8d286b21fb1cb4.tar.bz2
fs-tracer-25998c409fdbc4f0e5d2a9bc4d8d286b21fb1cb4.zip
Add comment
Diffstat (limited to 'fs-tracer-ebpf')
-rw-r--r--fs-tracer-ebpf/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs-tracer-ebpf/src/main.rs b/fs-tracer-ebpf/src/main.rs
index 3ac89b1..d09d076 100644
--- a/fs-tracer-ebpf/src/main.rs
+++ b/fs-tracer-ebpf/src/main.rs
@@ -21,6 +21,8 @@ static EVENTS: PerfEventArray<WriteSyscallBPF> = PerfEventArray::with_max_entrie
 #[map]
 static SYSCALLENTERS: HashMap<u32, WriteSyscallBPF> = HashMap::with_max_entries(1024, 0);
 
+//TODO: Clean up code. Generics. Arbitrary length buffer? https://github.com/elbaro/mybee/blob/fe037927b848cdbe399c0b0730ae79400cf95279/mybee-ebpf/src/main.rs#L29
+
 enum SyscallType {
     ENTER,
     EXIT,