KVM: selftests: Add helpers for PMC asserts in PMU event filter test
authorAaron Lewis <aaronlewis@google.com>
Fri, 7 Apr 2023 23:32:50 +0000 (16:32 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Apr 2023 20:20:53 +0000 (13:20 -0700)
commitfa32233d51b9d26369b8371e986c1030c4201fae
tree5b156a8b45e32d98612b7b44d77b5adc24cddcd4
parent33ef1411a36b47ae7ecdb919463b0d78576b3832
KVM: selftests: Add helpers for PMC asserts in PMU event filter test

Add helper macros to consolidate the asserts that a PMC is/isn't counting
(branch) instructions retired.  This will make it easier to add additional
asserts related to counting instructions later on.

No functional changes intended.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
[sean: add "INSTRUCTIONS", massage changelog]
Link: https://lore.kernel.org/r/20230407233254.957013-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c