]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: skip nmi test when perf hw events are disabled
authorIlya Leoshkevich <iii@linux.ibm.com>
Tue, 16 Jul 2019 10:56:34 +0000 (12:56 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 16 Jul 2019 16:24:46 +0000 (09:24 -0700)
commit0da1c45f61115c96f4388bfe606f1706523ba727
tree003b35870e74a4660579e59894555c16f577e631
parent18067da5e789e567250926cb65788c2cddd71603
selftests/bpf: skip nmi test when perf hw events are disabled

Some setups (e.g. virtual machines) might run with hardware perf events
disabled. If this is the case, skip the test_send_signal_nmi test.

Add a separate test involving a software perf event. This allows testing
the perf event path regardless of hardware perf event support.

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/send_signal.c