selftests/bpf: Skip the second half of get_branch_snapshot in vm
authorSong Liu <songliubraving@fb.com>
Thu, 7 Oct 2021 05:02:31 +0000 (22:02 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 8 Oct 2021 04:51:04 +0000 (21:51 -0700)
commitaa67fdb4643616f04cb59b6d090010c371ab1a80
tree17f11d2fb60a7921036df220f5b70ae12acd08ae
parent0eb4ef88c53f7169c44b1bd2ace5389981409a60
selftests/bpf: Skip the second half of get_branch_snapshot in vm

VMs running on upstream 5.12+ kernel support LBR. However,
bpf_get_branch_snapshot couldn't stop the LBR before too many entries
are flushed. Skip the hit/waste test for VMs before we find a proper fix
for LBR in VM.

Fixes: 025bd7c753aa ("selftests/bpf: Add test for bpf_get_branch_snapshot")
Signed-off-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211007050231.728496-1-songliubraving@fb.com
tools/testing/selftests/bpf/prog_tests/get_branch_snapshot.c