tools/power turbostat: Show uncore frequency
authorLen Brown <len.brown@intel.com>
Fri, 13 May 2022 07:35:39 +0000 (21:35 -1000)
committerLen Brown <len.brown@intel.com>
Thu, 28 Jul 2022 18:23:25 +0000 (14:23 -0400)
commita5c6d65d06ebd09251fc3ff43f600d4d70966a4d
tree8fc27430fcc0e4f83b04cc01940406e10c5adf2e
parent5e5fd36c58d6c820f7292ee492c3731c9a104a41
tools/power turbostat: Show uncore frequency

When CONFIG_INTEL_UNCORE_FREQ_CONTROL is effective,
(Linux 5.9 and later), print the current (and default)
min and max uncore frequency limits.

When that driver provides the current uncore frequency
(Linux 5.18 and later), print a UncMHz column
reflecting the current uncore frequency.

Note that UncMHz is an instantaneous sample, not an average.

eg.

$ sudo ./turbostat -S --show frequency
...
Uncore Frequency pkg0 die0: 800 - 3900 MHz (800 - 3900 MHz)
...
Avg_MHz Busy% Bzy_MHz TSC_MHz UncMHz
28 0.70 4049 3095 3900

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c