We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fd6bea commit dc995a1Copy full SHA for dc995a1
1 file changed
README.md
@@ -88,15 +88,14 @@ def hist() -> HashMap:
88
@section("tracepoint/syscalls/sys_enter_clone")
89
def hello(ctx: c_void_p) -> c_int64:
90
process_id = pid()
91
- one = 1
92
prev = hist.lookup(process_id)
93
if prev:
94
previous_value = prev + 1
95
print(f"count: {previous_value} with {process_id}")
96
hist.update(process_id, previous_value)
97
- return c_int64(0)
+ return 0
98
else:
99
- hist.update(process_id, one)
+ hist.update(process_id, 1)
100
return 0
101
102
0 commit comments