From 37d1e1b1433e10bf38d00101d774e20c313a0b6b Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Tue, 14 Oct 2025 03:54:02 +0530 Subject: [PATCH] Add sys_sync BCC example --- BCC-Examples/sys_sync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BCC-Examples/sys_sync.py b/BCC-Examples/sys_sync.py index 1d872eb..7749cae 100644 --- a/BCC-Examples/sys_sync.py +++ b/BCC-Examples/sys_sync.py @@ -1,4 +1,4 @@ -from pythonbpf import bpf, section, bpfglobal, compile +from pythonbpf import bpf, section, bpfglobal, BPF, trace_pipe from ctypes import c_void_p, c_int64 @@ -15,5 +15,6 @@ def LICENSE() -> str: return "GPL" -compile() +BPF().load_and_attach() print("Tracing sys_sync()... Ctrl-C to end.") +trace_pipe()