From 9dbca410c2558fe0d9bf420096fd3fe90832b01a Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Thu, 2 Oct 2025 21:24:15 +0530 Subject: [PATCH] Remove calls from map in sys_sync --- examples/sys_sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/sys_sync.py b/examples/sys_sync.py index 3b65f46..0f56153 100644 --- a/examples/sys_sync.py +++ b/examples/sys_sync.py @@ -21,17 +21,17 @@ def last() -> HashMap: @section("tracepoint/syscalls/sys_enter_sync") def do_trace(ctx: c_void_p) -> c_int64: key = 0 - tsp = last().lookup(key) + tsp = last.lookup(key) if tsp: kt = ktime() delta = kt - tsp if delta < 1000000000: time_ms = delta // 1000000 print(f"sync called within last second, last {time_ms} ms ago") - last().delete(key) + last.delete(key) else: kt = ktime() - last().update(key, kt) + last.update(key, kt) return c_int64(0)