From 54c97e648b3940c2849edc30d4f58feaf95cc7cc Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Mon, 20 Oct 2025 15:02:31 +0530 Subject: [PATCH] Fix userspace calling in hello_fields --- BCC-Examples/hello_fields.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'}")