diff options
author | Jinrong Liang <[email protected]> | 2024-01-09 15:02:37 -0800 |
---|---|---|
committer | Sean Christopherson <[email protected]> | 2024-01-30 15:29:37 -0800 |
commit | 3e26b825f87ddfa610e069ff3f668b942d8642bb (patch) | |
tree | b019c311a5844f3464e60c1e0fa5fe02f42fdea4 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 4f1bd6b16074aa5f9a0633a77fc87f471888a588 (diff) |
KVM: selftests: Test Intel PMU architectural events on fixed counters
Extend the PMU counters test to validate architectural events using fixed
counters. The core logic is largely the same, the biggest difference
being that if a fixed counter exists, its associated event is available
(the SDM doesn't explicitly state this to be true, but it's KVM's ABI and
letting software program a fixed counter that doesn't actually count would
be quite bizarre).
Note, fixed counters rely on PERF_GLOBAL_CTRL.
Reviewed-by: Jim Mattson <[email protected]>
Reviewed-by: Dapeng Mi <[email protected]>
Co-developed-by: Like Xu <[email protected]>
Signed-off-by: Like Xu <[email protected]>
Signed-off-by: Jinrong Liang <[email protected]>
Co-developed-by: Sean Christopherson <[email protected]>
Tested-by: Dapeng Mi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions