]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: selftests: Make Intel arch events globally available in PMU counters test
authorSean Christopherson <seanjc@google.com>
Fri, 17 Jan 2025 23:41:59 +0000 (15:41 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 16:34:56 +0000 (08:34 -0800)
commit933178ddf73a031bfa9efa67452504ea3be43b18
tree876c85e02f16b08be5de54af73e4f00e51510fdf
parent983820cb53c0e796777caf85bfc2810ad0c8fb22
KVM: selftests: Make Intel arch events globally available in PMU counters test

Wrap PMU counter test's array of Intel architectrual in a helper function
so that the events can be queried in multiple locations.  Add a comment to
explain the need for a wrapper.

No functional change intended.

Link: https://lore.kernel.org/r/20250117234204.2600624-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/kvm/x86/pmu_counters_test.c