]> git.baikalelectronics.ru Git - kernel.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)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 20 Jan 2020 22:26:58 +0000 (23:26 +0100)
commit7c4ad022ed3b53affad7e34617710b359914b2d5
tree7473c25bcdbf6fa287f7fc459ce35e0a535c7fff
parent50c782ec017712caa5c42e857c99b11e1f1f9270
selftests/bpf: Skip perf hw events test if the setup disabled it

The same with commit 23941fde1605 ("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: 044ba7e1b5a3 ("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
tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c