]> git.infradead.org Git - users/hch/misc.git/commit
tools/power turbostat: Add selftests for SMI, APERF and MPERF counters
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Wed, 3 Jul 2024 21:14:14 +0000 (23:14 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 26 Jul 2024 17:50:13 +0000 (13:50 -0400)
commit1f8add13e6c86653da2ec599dfc94e7a8865cdcb
treec55b299907d369ba9667290ec9ae7e5ef0e1a47b
parentb2e4a5dfafcce87ed2b9aac0b2887f421cd2930a
tools/power turbostat: Add selftests for SMI, APERF and MPERF counters

The test requests BICs that are dependent on SMI, APERF and MPERF
counters and checks if the columns show up in the output and the
turbostat doesn't crash. Read the counters in both --no-msr
and --no-perf mode.

The test skips counters that are not present or user does not have
permissions to read. It is not an error, but the test may not be as
exhaustive.

Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/testing/selftests/turbostat/smi_aperf_mperf.py [new file with mode: 0755]