All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrien BAK <adrien.bak@metascale.org>
To: linux-perf-users@vger.kernel.org
Subject: recording rapl/power events
Date: Mon, 21 Apr 2014 17:01:32 +0900	[thread overview]
Message-ID: <5354D05C.8080201@metascale.org> (raw)

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.

             reply	other threads:[~2014-04-21  8:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-21  8:01 Adrien BAK [this message]
2014-04-21 14:07 ` recording rapl/power events 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

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=5354D05C.8080201@metascale.org \
    --to=adrien.bak@metascale.org \
    --cc=linux-perf-users@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.