diff options
author | Jinrong Liang <cloudliang@tencent.com> | 2024-01-09 15:02:39 -0800 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-01-30 15:29:38 -0800 |
commit | c7d7c76ecf78f93b2bd7d40bccabc813c1ed0a49 (patch) | |
tree | 7fff12433207107da9917d4a8f182c77566c5967 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 7137cf751b9b14662adad61e35c236e141430aed (diff) |
KVM: selftests: Test consistency of CPUID with num of fixed counters
Extend the PMU counters test to verify KVM emulation of fixed counters in
addition to general purpose counters. Fixed counters add an extra wrinkle
in the form of an extra supported bitmask. Thus quoth the SDM:
fixed-function performance counter 'i' is supported if ECX[i] || (EDX[4:0] > i)
Test that KVM handles a counter being available through either method.
Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Co-developed-by: Like Xu <likexu@tencent.com>
Signed-off-by: Like Xu <likexu@tencent.com>
Signed-off-by: Jinrong Liang <cloudliang@tencent.com>
Co-developed-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com>
Link: https://lore.kernel.org/r/20240109230250.424295-20-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions