tools/power turbostat: Add selftests for added perf counters
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Thu, 4 Jul 2024 18:11:33 +0000 (20:11 +0200)
committerLen Brown <len.brown@intel.com>
Fri, 26 Jul 2024 17:51:25 +0000 (13:51 -0400)
commitf3065f9c3917fa9279992623a2f3282f1fd43515
tree6e561560b0cbad1ba0e92186a8bbb55e68b88a68
parent1f8add13e6c86653da2ec599dfc94e7a8865cdcb
tools/power turbostat: Add selftests for added perf counters

Test adds several perf counters from msr, cstate_core and cstate_pkg
groups and checks if the columns for those counters show up.
The test skips the counters that are not present. 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/added_perf_counters.py [new file with mode: 0755]