Skip to content

Commit dd9411b

Browse files
committed
Fix userspace calling in hello_world
1 parent aa85d0e commit dd9411b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BCC-Examples/hello_world.py

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

1717

18+
# Compile and load
1819
b = BPF()
19-
b.load_and_attach()
20+
b.load()
21+
b.attach_all()
2022

2123
trace_pipe()

0 commit comments

Comments
 (0)