]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: kvm/x86: Add the helper function create_pmu_event_filter
authorAaron Lewis <aaronlewis@google.com>
Tue, 17 May 2022 05:12:37 +0000 (05:12 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 May 2022 11:06:55 +0000 (07:06 -0400)
commit04baa2233d55e85e0f0f5dfe0401ecb027da9a0e
tree1af612417c71ec63c24926889cb10918a51f74e2
parent4ac19ead0dfbabd8e0bfc731f507cfb0b95d6c99
selftests: kvm/x86: Add the helper function create_pmu_event_filter

Add a helper function that creates a pmu event filter given an event
list.  Currently, a pmu event filter can only be created with the same
hard coded event list.  Add a way to create one given a different event
list.

Also, rename make_pmu_event_filter to alloc_pmu_event_filter to clarify
it's purpose given the introduction of create_pmu_event_filter.

No functional changes intended.

Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Message-Id: <20220517051238.2566934-2-aaronlewis@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/x86_64/pmu_event_filter_test.c