]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/bpf: Skip perf hw events test if the setup disabled it
authorHangbin Liu <liuhangbin@gmail.com>
Fri, 17 Jan 2020 10:06:56 +0000 (18:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Feb 2020 12:37:00 +0000 (04:37 -0800)
commit351e45af6e67c697e2eb5317283eaa6422848a53
tree445a628d0db35265e514ee8a4f25b7340b266f61
parentaaf1a502190e062cd8bf9c60f7d4a4fbfc22c2ec
selftests/bpf: Skip perf hw events test if the setup disabled it

commit f1c3656c6d9c147d07d16614455aceb34932bdeb upstream.

The same with commit 4e59afbbed96 ("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: 13790d1cc72c ("bpf: add selftest for stackmap with build_id in NMI context")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200117100656.10359-1-liuhangbin@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c