All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrien BAK <adrien.bak@metascale.org>
To: Vince Weaver <vincent.weaver@maine.edu>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: recording rapl/power events
Date: Tue, 22 Apr 2014 11:31:06 +0900	[thread overview]
Message-ID: <5355D46A.4090209@metascale.org> (raw)
In-Reply-To: <alpine.DEB.2.10.1404211004570.10033@vincent-weaver-1.um.maine.edu>


On 21/04/2014 23:07, Vince Weaver wrote:
> On Mon, 21 Apr 2014, Adrien BAK wrote:
>
>> 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?
> RAPL events cannot generate interrupts, so I don't think you can sample
> like this.
>
> You can possibly sample using some other event (like one of the software
> clock events) and include the RAPL event in the list of events to record,
> not sure if that will accomplish what you're trying to do.
>
> Vince

This looks promising, although I couldn't find any useful documentation 
on this. Do you know if the perf userland tool allows for this kind of 
slave-sampling or if I have to build my own tool around the perf_event API ?

  reply	other threads:[~2014-04-22  3:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=5355D46A.4090209@metascale.org \
    --to=adrien.bak@metascale.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=vincent.weaver@maine.edu \
    /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.