mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Vince Weaver <vincent.weaver@maine.edu>
To: linux-kernel@vger.kernel.org,
	"Rafael J. Wysocki" <rjw@rjwysocki.net>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>,
	Arnaldo Carvalho de Melo <acme@kernel.org>
Subject: perf rapl/powercap : powercap has more lenient permissions
Date: Wed, 24 Feb 2016 11:42:06 -0500 (EST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1602241132470.1476@macbook-air> (raw)

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

                 reply	other threads:[~2016-02-24 16:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.2.20.1602241132470.1476@macbook-air \
    --to=vincent.weaver@maine.edu \
    --cc=acme@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=peterz@infradead.org \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®