Skip to content

Commit 1740959

Browse files
committed
Fix userspace calling in sys_sync
1 parent 3273620 commit 1740959

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

BCC-Examples/sys_sync.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ def LICENSE() -> str:
1515
return "GPL"
1616

1717

18-
BPF().load_and_attach()
18+
# Compile and load
19+
b = BPF()
20+
b.load()
21+
b.attach_all()
1922
print("Tracing sys_sync()... Ctrl-C to end.")
2023
trace_pipe()

0 commit comments

Comments
 (0)