KVM: selftests: Refactor LBR_FMT test to avoid use of separate macro
authorSean Christopherson <seanjc@google.com>
Sat, 11 Mar 2023 00:46:16 +0000 (16:46 -0800)
committerSean Christopherson <seanjc@google.com>
Thu, 6 Apr 2023 21:58:44 +0000 (14:58 -0700)
commit8ac2f774b9ead749720fe7a648e6c6ada57e01f3
treed857b2cddfdf9bd76b7c51b1ff74047a22d13ac2
parentbc7bb0082960d030171e11ed4e4b518950415625
KVM: selftests: Refactor LBR_FMT test to avoid use of separate macro

Rework the LBR format test to use the bitfield instead of a separate
mask macro, mainly so that adding a nearly-identical PEBS format test
doesn't have to copy-paste-tweak the macro too.

No functional change intended.

Link: https://lore.kernel.org/r/20230311004618.920745-20-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/vmx_pmu_caps_test.c