Add map lookup example to execve2.py

This commit is contained in:
Pragyansh Chaturvedi
2025-09-08 20:07:06 +05:30
parent f7aa054b31
commit 655b7dcd85

View File

@ -22,6 +22,9 @@ def hello(ctx: c_void_p) -> c_int32:
@section("tracepoint/syscalls/sys_exit_execve")
def hello_again(ctx: c_void_p) -> c_int64:
print("exited")
key = c_int64(0)
tsp = last.lookup(key)
print(tsp)
ts = bpf_ktime_get_ns()
return c_int64(0)