linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* recording rapl/power events
@ 2014-04-21  8:01 Adrien BAK
  2014-04-21 14:07 ` Vince Weaver
  0 siblings, 1 reply; 6+ messages in thread
From: Adrien BAK @ 2014-04-21  8:01 UTC (permalink / raw)
  To: linux-perf-users

Hi everyone,

I am looking into the power (rapl) events introduced in the kernel in 
version 3.14.

Right now, I can access those events through perf stat :

perf stat -a -e power/energy-pkg/ sleep 1

  Performance counter stats for 'system wide':

              17.16 Joules power/energy-pkg/

        1.002808169 seconds time elapsed

However, it seems that I can't record a sequence of power events :

perf record -a -e power/energy-pkg/ sleep 1
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument) 
for event (power/energy-pkg/).
/bin/dmesg may provide additional information.
No CONFIG_PERF_EVENTS=y kernel support configured?

dmesg does not give any information, and, as far as I know, perf_events 
are fully supported by my kernel (

Is there some limitation of the power events (or kernel support) I am 
unaware of that could explain this behaviour, or is there something 
wrong with my setup/configuration ?
How would one procede to record a sequence of power events ?

Thanks in advance
A.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-04-30  8:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-21  8:01 recording rapl/power events Adrien BAK
2014-04-21 14:07 ` Vince Weaver
2014-04-22  2:31   ` Adrien BAK
2014-04-22 10:17     ` Andi Kleen
2014-04-25  8:29       ` Namhyung Kim
2014-04-30  2:08         ` Adrien BAK

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).