From 174095973b5411ebdeda0974e886a2147cdaacae Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 20 Oct 2025 15:10:12 +0530 Subject: [PATCH] Fix userspace calling in sys_sync --- BCC-Examples/sys_sync.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BCC-Examples/sys_sync.py b/BCC-Examples/sys_sync.py index 7749cae..4d7314a 100644 --- a/BCC-Examples/sys_sync.py +++ b/BCC-Examples/sys_sync.py @@ -15,6 +15,9 @@ def LICENSE() -> str: return "GPL" -BPF().load_and_attach() +# Compile and load +b = BPF() +b.load() +b.attach_all() print("Tracing sys_sync()... Ctrl-C to end.") trace_pipe()