You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check whether kfunc is supported, and decide whether to use kprobe or kfunc
based on the test results.
How to reproduce the error:
$ sudo ./ttysnoop.py 7
bpf_attach_raw_tracepoint (kfunc): Unknown error 524
Traceback (most recent call last):
File "/home/rongtao/Git/bcc/tools/./ttysnoop.py", line 175, in <module>
b = BPF(text=bpf_text)
File "/usr/lib/python3.9/site-packages/bcc/__init__.py", line 487, in __init__
self._trace_autoload()
File "/usr/lib/python3.9/site-packages/bcc/__init__.py", line 1473, in _trace_autoload
self.attach_kfunc(fn_name=func_name)
File "/usr/lib/python3.9/site-packages/bcc/__init__.py", line 1138, in attach_kfunc
raise Exception("Failed to attach BPF to entry kernel func")
Exception: Failed to attach BPF to entry kernel func
Signed-off-by: Rong Tao <[email protected]>
0 commit comments