]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/power turbostat: Add idle governor statistics reporting
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Sat, 8 Feb 2025 11:53:19 +0000 (13:53 +0200)
committerLen Brown <len.brown@intel.com>
Thu, 20 Feb 2025 06:03:34 +0000 (01:03 -0500)
commited625c61b85c2333324dca43146c4ebabf8b236f
tree77e94ae52d3c5b1e9585e344c5140bbbce43011e
parent5132681dcd96b2a8c357b6e5d93e9876924bb80b
tools/power turbostat: Add idle governor statistics reporting

The idle governor provides the following per-idle state sysfs files:
  * above - Indicates overshoots, where a more shallow state should have
            been requested (if avaliale and enabled).
  * below - Indicates undershoots, where a deeper state should have been
            requested (if available and enabled).

These files offer valuable insights into how effectively the Linux kernel
idle governor selects idle states for a given workload. This commit adds
support for these files in turbostat.

Expose the contents of these files with the following naming convention:
* C1: The number of times the C1 state was requested (existing counter).
* C1+: The number of times the idle governor selected C1, but a deeper
  idle state should have been selected instead.
* C1-: The number of times the idle governor selected C1, but a shallower
  idle state should have been selected instead.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c