mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add map lookup example to execve2.py
This commit is contained in:
@ -22,6 +22,9 @@ def hello(ctx: c_void_p) -> c_int32:
|
|||||||
@section("tracepoint/syscalls/sys_exit_execve")
|
@section("tracepoint/syscalls/sys_exit_execve")
|
||||||
def hello_again(ctx: c_void_p) -> c_int64:
|
def hello_again(ctx: c_void_p) -> c_int64:
|
||||||
print("exited")
|
print("exited")
|
||||||
|
key = c_int64(0)
|
||||||
|
tsp = last.lookup(key)
|
||||||
|
print(tsp)
|
||||||
ts = bpf_ktime_get_ns()
|
ts = bpf_ktime_get_ns()
|
||||||
return c_int64(0)
|
return c_int64(0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user