linux/tools/power/x86
Len Brown c4092cb063 tools/power turbostat: Clustered Uncore MHz counters should honor show/hide options
[ Upstream commit 1c7c7388e6 ]

The clustered uncore frequency counters, UMHz*.*
should honor the --show and --hide options.

All non-specified counters should be implicityly hidden.
But when --show was used, UMHz*.* showed up anyway:

$ sudo turbostat -q -S --show Busy%
Busy%  UMHz0.0  UMHz1.0  UMHz2.0  UMHz3.0  UMHz4.0

Indeed, there was no string that can be used to explicitly
show or hide clustered uncore counters.

Even through they are dynamically probed and added,
group the clustered UMHz*.* counters with the legacy
built-in-counter "UncMHz" for show/hide.

turbostat --show Busy%
	does not show UMHz*.*.
turbostat --show UncMHz
	shows either UncMHz or UMHz*.*, if present
turbostat --hide UncMHz
	hides either UncMHz or UMHz*.*, if present

Reported-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Tested-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-29 11:02:59 +02:00
..
amd_pstate_tracer selftests/amd-pstate: Fix broken paths to run workloads in amd-pstate-ut 2023-10-16 13:06:50 -06:00
intel-speed-select tools/power/x86/intel-speed-select: v1.20 release 2024-07-07 00:38:57 -07:00
intel_pstate_tracer tools/power/x86/intel_pstate_tracer: python minimum version 2023-09-21 20:35:50 +02:00
turbostat tools/power turbostat: Clustered Uncore MHz counters should honor show/hide options 2025-05-29 11:02:59 +02:00
x86_energy_perf_policy tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-02-22 20:05:28 +01:00