Skip to content

Commit 54c97e6

Browse files
committed
Fix userspace calling in hello_fields
1 parent dd9411b commit 54c97e6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

BCC-Examples/hello_fields.py

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

1717

18-
# compile
18+
# Compile and load
1919
b = BPF()
20-
b.load_and_attach()
20+
b.load()
21+
b.attach_all()
2122

2223
# header
2324
print(f"{'TIME(s)':<18} {'COMM':<16} {'PID':<6} {'MESSAGE'}")

0 commit comments

Comments
 (0)