mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
Add basic assignment
This commit is contained in:
@ -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"
|
||||
|
||||
Reference in New Issue
Block a user