Skip to content

Commit 610cbe8

Browse files
committed
Fix userspace calling in sync_count
1 parent 54c97e6 commit 610cbe8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

BCC-Examples/sync_count.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ def LICENSE() -> str:
3737
return "GPL"
3838

3939

40-
# compile
40+
# Compile and load
4141
b = BPF()
42-
b.load_and_attach()
42+
b.load()
43+
b.attach_all()
4344

4445
print("Tracing for quick sync's... Ctrl-C to end")
4546

0 commit comments

Comments
 (0)