diff --git a/BCC-Examples/hello_fields.py b/BCC-Examples/hello_fields.py index 8a2464a..46156c5 100644 --- a/BCC-Examples/hello_fields.py +++ b/BCC-Examples/hello_fields.py @@ -15,9 +15,10 @@ def LICENSE() -> str: return "GPL" -# compile +# Compile and load b = BPF() -b.load_and_attach() +b.load() +b.attach_all() # header print(f"{'TIME(s)':<18} {'COMM':<16} {'PID':<6} {'MESSAGE'}")