diff options
author | Song Liu <songliubraving@fb.com> | 2020-07-23 11:06:48 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-07-25 20:16:35 -0700 |
commit | 346938e9380cc0b2ad8e2566389cdc570386fe22 (patch) | |
tree | c87d99dabe2c42a178399bffc9c9e94c2be496a2 /tools/testing/selftests/bpf/progs/test_verif_scale1.c | |
parent | 1da4864c2b20f81afbb18b2a0b914d0c776331fc (diff) | |
download | linux-346938e9380cc0b2ad8e2566389cdc570386fe22.tar.gz linux-346938e9380cc0b2ad8e2566389cdc570386fe22.tar.bz2 linux-346938e9380cc0b2ad8e2566389cdc570386fe22.zip |
selftests/bpf: Add get_stackid_cannot_attach
This test confirms that BPF program that calls bpf_get_stackid() cannot
attach to perf_event with precise_ip > 0 but not PERF_SAMPLE_CALLCHAIN;
and cannot attach if the perf_event has exclude_callchain_kernel.
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200723180648.1429892-6-songliubraving@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_verif_scale1.c')
0 files changed, 0 insertions, 0 deletions