* perf and uncore events
@ 2012-10-24 20:32 Vince Weaver
2012-10-24 20:48 ` Jiri Olsa
0 siblings, 1 reply; 4+ messages in thread
From: Vince Weaver @ 2012-10-24 20:32 UTC (permalink / raw)
To: linux-perf-users
So has anyone actually ever used perf to measure uncore events?
I have a 3.6 kernel on a Sandybridge machine and the uncore directories
definitely show up in
/sys/bus/event_source/devices/
But if I try
./perf stat -a -e "uncore_imc_0/event=0xff,umask=0x00" /bin/ls
I get:
invalid or unsupported event: 'uncore_imc_0/event=0xff,umask=0x00'
Run 'perf list' for a list of valid events
[...]
I'm not sure if I'm doing the crazy naming stuff right, but
"perf list"
says
cpu/t1=v1[,t2=v2,t3 ...]/modifier [Raw hardware event descriptor]
(see 'perf list --help' on how to encode it)
but "perf list --help" definitely *does not* tell me how to encode it.
Vince Weaver
vincent.weaver@maine.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: perf and uncore events
2012-10-24 20:32 perf and uncore events Vince Weaver
@ 2012-10-24 20:48 ` Jiri Olsa
2012-10-24 21:21 ` Vince Weaver
0 siblings, 1 reply; 4+ messages in thread
From: Jiri Olsa @ 2012-10-24 20:48 UTC (permalink / raw)
To: Vince Weaver; +Cc: linux-perf-users
On Wed, Oct 24, 2012 at 04:32:00PM -0400, Vince Weaver wrote:
>
> So has anyone actually ever used perf to measure uncore events?
>
> I have a 3.6 kernel on a Sandybridge machine and the uncore directories
> definitely show up in
> /sys/bus/event_source/devices/
>
> But if I try
> ./perf stat -a -e "uncore_imc_0/event=0xff,umask=0x00" /bin/ls
> I get:
> invalid or unsupported event: 'uncore_imc_0/event=0xff,umask=0x00'
> Run 'perf list' for a list of valid events
> [...]
by quick look, it seems you're missing closing '/'
./perf stat -a -e "uncore_imc_0/event=0xff,umask=0x00/" /bin/ls
jirka
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: perf and uncore events
2012-10-24 20:48 ` Jiri Olsa
@ 2012-10-24 21:21 ` Vince Weaver
2012-10-25 10:18 ` Jiri Olsa
0 siblings, 1 reply; 4+ messages in thread
From: Vince Weaver @ 2012-10-24 21:21 UTC (permalink / raw)
To: Jiri Olsa; +Cc: linux-perf-users
On Wed, 24 Oct 2012, Jiri Olsa wrote:
> by quick look, it seems you're missing closing '/'
> ./perf stat -a -e "uncore_imc_0/event=0xff,umask=0x00/" /bin/ls
thanks, that was indeed the problem.
It would be nice if perf gave a better error message for this, but I guess
the parsing is tricky enough as it is.
Vince Weaver
vincent.weaver@maine.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: perf and uncore events
2012-10-24 21:21 ` Vince Weaver
@ 2012-10-25 10:18 ` Jiri Olsa
0 siblings, 0 replies; 4+ messages in thread
From: Jiri Olsa @ 2012-10-25 10:18 UTC (permalink / raw)
To: Vince Weaver; +Cc: linux-perf-users
On Wed, Oct 24, 2012 at 05:21:00PM -0400, Vince Weaver wrote:
> On Wed, 24 Oct 2012, Jiri Olsa wrote:
>
> > by quick look, it seems you're missing closing '/'
> > ./perf stat -a -e "uncore_imc_0/event=0xff,umask=0x00/" /bin/ls
>
> thanks, that was indeed the problem.
>
> It would be nice if perf gave a better error message for this, but I guess
> the parsing is tricky enough as it is.
it's in om my TODO list ;)
jirka
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-10-25 10:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-24 20:32 perf and uncore events Vince Weaver
2012-10-24 20:48 ` Jiri Olsa
2012-10-24 21:21 ` Vince Weaver
2012-10-25 10:18 ` Jiri Olsa
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).