* perf rapl/powercap : powercap has more lenient permissions
@ 2016-02-24 16:42 Vince Weaver
0 siblings, 0 replies; only message in thread
From: Vince Weaver @ 2016-02-24 16:42 UTC (permalink / raw)
To: linux-kernel, Rafael J. Wysocki, Peter Zijlstra, Ingo Molnar,
Arnaldo Carvalho de Melo
Hello
so perf_event requires paranoid value of 0 to read the RAPL counters
perf stat -a -e power/energy-cores/ /bin/ls
Error:
You may not have permission to collect system-wide stats.
But I can use the new powercap driver to read the same values no problem:
cat /sys/devices/virtual/powercap/intel-rapl/intel-rapl:0/intel-rapl:0:0/energy_uj
121384969344
Is this expected? Should the powercap permissions be locked down more?
Just hitting this, as PAPI has at least 4 different interfaces to read the
RAPL power values (perf_event, /dev/msr, libmsr, powercap). Five if you
count that AMD exports their equivelent info via the hwmon interface.
Vince
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-02-24 16:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-24 16:42 perf rapl/powercap : powercap has more lenient permissions Vince Weaver
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®