]> www.infradead.org Git - users/willy/pagecache.git/commit
tools/power turbostat: Add RAPL psys as a built-in counter
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Wed, 2 Oct 2024 13:05:15 +0000 (15:05 +0200)
committerLen Brown <len.brown@intel.com>
Sat, 30 Nov 2024 21:42:07 +0000 (16:42 -0500)
commite5f687b89bc2a892256f48e14a568970b59a4812
treea3af0b844f5ec66614d29307ed0fbf9a56c5dcc0
parent1da0daf746342dfdc114e4dc8fbf3ece28666d4f
tools/power turbostat: Add RAPL psys as a built-in counter

Introduce the counter as a part of global, platform counters structure.
We open the counter for only one cpu, but otherwise treat it as an
ordinary RAPL counter, allowing for grouped perf read.

The counter is disabled by default, because it's interpretation may
require additional, platform specific information, making it unsuitable
for general use.

Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c