All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrien BAK <adrien.bak@metascale.org>
To: Namhyung Kim <namhyung@kernel.org>, Andi Kleen <andi@firstfloor.org>
Cc: Vince Weaver <vincent.weaver@maine.edu>,
	linux-perf-users@vger.kernel.org
Subject: Re: recording rapl/power events
Date: Wed, 30 Apr 2014 11:08:29 +0900	[thread overview]
Message-ID: <53605B1D.2070901@metascale.org> (raw)
In-Reply-To: <8761lxrevj.fsf@sejong.aot.lge.com>

hi  Namhyung,

yes it seems. However, when I run what you suggest, I get the following :

perf record -a -e '{cycles,power/energy-pkg/}:S' 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?

Once again, I'm pretty sure my kernel is correctly configured, as I can 
get power measurement using perf stat. Is this a bug somewhere ? Can you 
confirm that this works for you and that I should investigate what can 
go wrong with my system ?

A.


On 25/04/2014 17:29, Namhyung Kim wrote:
> Hi Andi,
>
> On Tue, 22 Apr 2014 03:17:56 -0700, Andi Kleen wrote:
>> Adrien BAK <adrien.bak@metascale.org> writes:
>>> 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 ?
>> perf record supports it (with :S), but none of the reporting tools
>> unfortunately.
> It seems it's what --group option of perf report is for?
>
>    $ perf record -e '{cycles,power/energy-pkg/}:S' -a sleep 1
>
>    $ perf report --group --stdio
>
>
> Thanks,
> Namhyung
>
>> However keep in mind that very rapid sampling of RAPL is not
>> likely to give useful results. The data only really makes
>> sense over longer intervals.
>>
>> -Andi
> --
> To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2014-04-30  8:07 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
2014-04-22 10:17     ` Andi Kleen
2014-04-25  8:29       ` Namhyung Kim
2014-04-30  2:08         ` Adrien BAK [this message]

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=53605B1D.2070901@metascale.org \
    --to=adrien.bak@metascale.org \
    --cc=andi@firstfloor.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=namhyung@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.