KVM: selftests: Test if event filter meets expectations on fixed counters
authorJinrong Liang <cloudliang@tencent.com>
Thu, 10 Aug 2023 09:09:44 +0000 (17:09 +0800)
committerSean Christopherson <seanjc@google.com>
Thu, 17 Aug 2023 20:23:09 +0000 (13:23 -0700)
commitd4e36166820a089f6300dc59dbb641e8c150bec1
treec09cf157428fd52e13ccbcb10b7bd81662e8668d
parent86ab6af8b96a6a6c8f86f1b0ea1dd386f43930db
KVM: selftests: Test if event filter meets expectations on fixed counters

Add tests to cover that pmu event_filter works as expected when it's
applied to fixed performance counters, even if there is none fixed
counter exists (e.g. Intel guest pmu version=1 or AMD guest).

Signed-off-by: Jinrong Liang <cloudliang@tencent.com>
Reviewed-by: Isaku Yamahata <isaku.yamahata@intel.com>
Link: https://lore.kernel.org/r/20230810090945.16053-6-cloudliang@tencent.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c