]> www.infradead.org Git - users/willy/pagecache.git/commit
tools/power turbostat: Allow using cpu device in perf counters on hybrid platforms
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Tue, 20 Aug 2024 16:47:59 +0000 (18:47 +0200)
committerLen Brown <len.brown@intel.com>
Sat, 30 Nov 2024 21:42:06 +0000 (16:42 -0500)
commitae2cdf8d92ffc326104524a1f9da4cf75b6ea996
tree74c559d4ebee05ccc94598a4862d955f0f80aac8
parentea8614c08d7f725729910f464c01577d036f38f5
tools/power turbostat: Allow using cpu device in perf counters on hybrid platforms

Intel hybrid platforms expose different perf devices for P and E cores.
Instead of one, "/sys/bus/event_source/devices/cpu" device, there are
"/sys/bus/event_source/devices/{cpu_core,cpu_atom}".

This, however makes it more complicated for the user,
because most of the counters are available on both and had to be
handled manually.

This patch allows users to use "virtual" cpu device that is seemingly
translated to cpu_core and cpu_atom perf devices, depending on the type
of a CPU we are opening the counter for.

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