Add basic assignment

This commit is contained in:
Pragyansh Chaturvedi
2025-09-09 00:07:05 +05:30
parent 5ce4474fa7
commit 542cb549b7
2 changed files with 64 additions and 6 deletions

View File

@ -22,8 +22,8 @@ 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)
key = 0
tsp = last().lookup(key)
print(tsp)
ts = bpf_ktime_get_ns()
return c_int64(0)
@ -33,4 +33,5 @@ def hello_again(ctx: c_void_p) -> c_int64:
# def LICENSE() -> str:
# return "GPL"
LICENSE = "GPL"