]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerPaolo Pisati <paolo.pisati@canonical.com>
Mon, 17 Feb 2020 09:57:54 +0000 (10:57 +0100)
commit7265eb02a36e361d678a7b5dc63978af976cc6f1
treee6cd2d60a5b5adc0ae64368d63aa9deba6a6fd86
parent10e0f8e00dd1b9178b7b40369e903169dd00cde3
selftests/bpf: Skip perf hw events test if the setup disabled it

BugLink: https://bugs.launchpad.net/bugs/1863588
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>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
tools/testing/selftests/bpf/prog_tests/stacktrace_build_id_nmi.c