Skip to content
Commit f1c3656c authored by Hangbin Liu's avatar Hangbin Liu Committed by Daniel Borkmann
Browse files

selftests/bpf: Skip perf hw events test if the setup disabled it



The same with commit 4e59afbb ("selftests/bpf: skip nmi test when perf
hw events are disabled"), it would make more sense to skip the
test_stacktrace_build_id_nmi test if the setup (e.g. virtual machines) has
disabled hardware perf events.

Fixes: 13790d1c ("bpf: add selftest for stackmap with build_id in NMI context")
Signed-off-by: default avatarHangbin Liu <liuhangbin@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarJohn Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200117100656.10359-1-liuhangbin@gmail.com
parent 396b83fa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment