From 610cbe82a81a66f5d479f1afbbdc6678aae8268e Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 20 Oct 2025 15:04:40 +0530 Subject: [PATCH] Fix userspace calling in sync_count --- BCC-Examples/sync_count.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BCC-Examples/sync_count.py b/BCC-Examples/sync_count.py index 51790b9..4eead08 100644 --- a/BCC-Examples/sync_count.py +++ b/BCC-Examples/sync_count.py @@ -37,9 +37,10 @@ def LICENSE() -> str: return "GPL" -# compile +# Compile and load b = BPF() -b.load_and_attach() +b.load() +b.attach_all() print("Tracing for quick sync's... Ctrl-C to end")