]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0f5c3e979dc3344bb79d4ac440378721aa82114
tree8fc27430fcc0e4f83b04cc01940406e10c5adf2e
parent56cb4120b25af3cdf7fd312de9198a063ff26aca
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