mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
add map update function support
This commit is contained in:
@ -37,7 +37,7 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
||||
if x:
|
||||
print("we did not prevail")
|
||||
ts = ktime()
|
||||
# last().update(key, ts)
|
||||
last().update(key, ts, 0)
|
||||
return c_int64(0)
|
||||
|
||||
|
||||
@ -46,5 +46,4 @@ def hello_again(ctx: c_void_p) -> c_int64:
|
||||
def LICENSE() -> str:
|
||||
return "GPL"
|
||||
|
||||
|
||||
compile()
|
||||
|
||||
Reference in New Issue
Block a user