diff options
author | Song Liu <[email protected]> | 2020-07-23 11:06:46 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2020-07-25 20:16:35 -0700 |
commit | d4b4dd6ce7709c2d2fe56dcfc15074ee18505bcb (patch) | |
tree | 4f13bbdfc94518efcf3f275b3fb6650f5bf52cdc /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | 5d99cb2c86775b4780c02a339a9578bf9471ead9 (diff) |
libbpf: Print hint when PERF_EVENT_IOC_SET_BPF returns -EPROTO
The kernel prevents potential unwinder warnings and crashes by blocking
BPF program with bpf_get_[stack|stackid] on perf_event without
PERF_SAMPLE_CALLCHAIN, or with exclude_callchain_[kernel|user]. Print a
hint message in libbpf to help the user debug such issues.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions