We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a99d21 commit 5ac316aCopy full SHA for 5ac316a
examples/binops_demo.py
@@ -21,17 +21,17 @@ def last() -> HashMap:
21
@section("tracepoint/syscalls/sys_enter_execve")
22
def do_trace(ctx: c_void_p) -> c_int64:
23
key = 0
24
- tsp = last().lookup(key)
+ tsp = last.lookup(key)
25
if tsp:
26
kt = ktime()
27
delta = kt - tsp
28
if delta < 1000000000:
29
time_ms = delta // 1000000
30
print(f"Execve syscall entered within last second, last {time_ms} ms ago")
31
- last().delete(key)
+ last.delete(key)
32
else:
33
34
- last().update(key, kt)
+ last.update(key, kt)
35
return c_int64(0)
36
37
0 commit comments