summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2020-07-23 21:06:45 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-07-26 06:16:34 +0300
commit5d99cb2c86775b4780c02a339a9578bf9471ead9 (patch)
tree25c9829e8b83c8066b286c414821fac40a4e3c04 /tools/perf/scripts/python/export-to-sqlite.py
parent7b04d6d60fcfb5b2200ffebb9cfb90927bdfeec7 (diff)
downloadlinux-5d99cb2c86775b4780c02a339a9578bf9471ead9.tar.xz
bpf: Fail PERF_EVENT_IOC_SET_BPF when bpf_get_[stack|stackid] cannot work
bpf_get_[stack|stackid] on perf_events with precise_ip uses callchain attached to perf_sample_data. If this callchain is not presented, do not allow attaching BPF program that calls bpf_get_[stack|stackid] to this event. In the error case, -EPROTO is returned so that libbpf can identify this error and print proper hint message. Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200723180648.1429892-3-songliubraving@fb.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions