commit | 346938e9380cc0b2ad8e2566389cdc570386fe22 | [log] [tgz] |
---|---|---|
author | Song Liu <songliubraving@fb.com> | Thu Jul 23 11:06:48 2020 -0700 |
committer | Alexei Starovoitov <ast@kernel.org> | Sat Jul 25 20:16:35 2020 -0700 |
tree | c87d99dabe2c42a178399bffc9c9e94c2be496a2 | |
parent | 1da4864c2b20f81afbb18b2a0b914d0c776331fc [diff] |
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