lkml.org 
[lkml]   [2016]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
Subjectperf rapl/powercap : powercap has more lenient permissions
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

\
 
 \ /
  Last update: 2016-02-24 18:21    [W:0.052 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site