lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:	Wed, 24 Feb 2016 11:42:06 -0500 (EST)
From:	Vince Weaver <vincent.weaver@...ne.edu>
To:	linux-kernel@...r.kernel.org,
	"Rafael J. Wysocki" <rjw@...ysocki.net>,
	Peter Zijlstra <peterz@...radead.org>,
	Ingo Molnar <mingo@...hat.com>,
	Arnaldo Carvalho de Melo <acme@...nel.org>
Subject: perf 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ