Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1597706 > unrolled thread
| Started by | "Dorau, Lukasz" <lukasz.dorau@intel.com> |
|---|---|
| First post | 2017-03-10 15:00 +0100 |
| Last post | 2017-03-10 15:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
Cannot attach BPF to tracepoints "Dorau, Lukasz" <lukasz.dorau@intel.com> - 2017-03-10 15:00 +0100
| From | "Dorau, Lukasz" <lukasz.dorau@intel.com> |
|---|---|
| Date | 2017-03-10 15:00 +0100 |
| Subject | Cannot attach BPF to tracepoints |
| Message-ID | <tjtfl-4NB-43@gated-at.bofh.it> |
Hi, I cannot attach BPF to tracepoints. I used bcc's (https://github.com/iovisor/bcc) trace.py tool: https://github.com/iovisor/bcc/blob/master/tools/trace.py to test this issue: # /usr/share/bcc/tools/trace t:syscalls:sys_enter_open ioctl(PERF_EVENT_IOC_SET_BPF): Invalid argument Failed to attach BPF to tracepoint # /usr/share/bcc/tools/trace t:syscalls:sys_exit_open ioctl(PERF_EVENT_IOC_SET_BPF): Invalid argument Failed to attach BPF to tracepoint However it is possible to attach BPF to raw tracepoints: # /usr/share/bcc/tools/trace t:raw_syscalls:sys_enter # /usr/share/bcc/tools/trace t:raw_syscalls:sys_exit and to kprobes: # /usr/share/bcc/tools/trace 'sys_open "%s", arg1' # /usr/share/bcc/tools/trace 'r::sys_open "%s", arg1' Can it be a bug in BPF code? Regards, Lukasz
Back to top | Article view | linux.kernel
csiph-web