Skip to content

Commit 655b7dc

Browse files
committed
Add map lookup example to execve2.py
1 parent f7aa054 commit 655b7dc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/execve2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def hello(ctx: c_void_p) -> c_int32:
2222
@section("tracepoint/syscalls/sys_exit_execve")
2323
def hello_again(ctx: c_void_p) -> c_int64:
2424
print("exited")
25+
key = c_int64(0)
26+
tsp = last.lookup(key)
27+
print(tsp)
2528
ts = bpf_ktime_get_ns()
2629
return c_int64(0)
2730

0 commit comments

Comments
 (0)