diff options
author | Aaron Lewis <[email protected]> | 2023-04-07 16:32:54 -0700 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2023-04-14 13:21:38 -0700 |
commit | 457bd7af1a17182e7f1f97eeb5d9107f8699e99d (patch) | |
tree | 3beeff0f707814152c07a8eb8445859cfc31bfdc /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | e9f322bd23960026275014477e21f7a9445fd926 (diff) |
KVM: selftests: Test the PMU event "Instructions retired"
Add testing for the event "Instructions retired" (0xc0) in the PMU
event filter on both Intel and AMD to ensure that the event doesn't
count when it is disallowed. Unlike most of the other events, the
event "Instructions retired" will be incremented by KVM when an
instruction is emulated. Test that this case is being properly handled
and that KVM doesn't increment the counter when that event is
disallowed.
Signed-off-by: Aaron Lewis <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions