* measure uncore events
@ 2013-10-01 17:34 Yuanfang Chen
2013-10-04 5:02 ` Andi Kleen
0 siblings, 1 reply; 5+ messages in thread
From: Yuanfang Chen @ 2013-10-01 17:34 UTC (permalink / raw)
To: linux-perf-users
Hello all,
I'm trying to measure uncore events. After reading [1], I tried "perf
stat -a -e "uncore_imc_0/event=0xff,umask=0x00/" /bin/ls", it says
"invalid or unsupported event".
The machine is Intel Ivy Bridge i5-3320M with ArchLinux 3.11.2-1-ARCH.
'perf --version' is 'perf version 3.11.0'
In '/sys/bus/event_source/devices/uncore_cbox_0/events', there is only
one event 'clockticks'.
Did I miss something?
thanks,
yuanfang
[1] http://web.eece.maine.edu/~vweaver/projects/perf_events/faq.html#q1c
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: measure uncore events
2013-10-01 17:34 measure uncore events Yuanfang Chen
@ 2013-10-04 5:02 ` Andi Kleen
2013-10-04 13:25 ` Vince Weaver
0 siblings, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2013-10-04 5:02 UTC (permalink / raw)
To: Yuanfang Chen; +Cc: linux-perf-users
Yuanfang Chen <cyfmxc@gmail.com> writes:
> I'm trying to measure uncore events. After reading [1], I tried "perf
> stat -a -e "uncore_imc_0/event=0xff,umask=0x00/" /bin/ls", it says
> "invalid or unsupported event".
>
> The machine is Intel Ivy Bridge i5-3320M with ArchLinux 3.11.2-1-ARCH.
> 'perf --version' is 'perf version 3.11.0'
> In '/sys/bus/event_source/devices/uncore_cbox_0/events', there is only
> one event 'clockticks'.
Uncore monitoring is only supported for IvyBridge Xeon E5+ / Core i7
49xx systems, not for your CPU.
-Andi
--
ak@linux.intel.com -- Speaking for myself only
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: measure uncore events
2013-10-04 5:02 ` Andi Kleen
@ 2013-10-04 13:25 ` Vince Weaver
2013-10-04 13:35 ` Andi Kleen
0 siblings, 1 reply; 5+ messages in thread
From: Vince Weaver @ 2013-10-04 13:25 UTC (permalink / raw)
To: Andi Kleen; +Cc: Yuanfang Chen, linux-perf-users
On Thu, 3 Oct 2013, Andi Kleen wrote:
> Yuanfang Chen <cyfmxc@gmail.com> writes:
>
> > I'm trying to measure uncore events. After reading [1], I tried "perf
> > stat -a -e "uncore_imc_0/event=0xff,umask=0x00/" /bin/ls", it says
> > "invalid or unsupported event".
> >
> > The machine is Intel Ivy Bridge i5-3320M with ArchLinux 3.11.2-1-ARCH.
> > 'perf --version' is 'perf version 3.11.0'
> > In '/sys/bus/event_source/devices/uncore_cbox_0/events', there is only
> > one event 'clockticks'.
>
> Uncore monitoring is only supported for IvyBridge Xeon E5+ / Core i7
> 49xx systems, not for your CPU.
are you sure about that? Support for plain Ivybridge Model 58 uncore
(which I assume this machine has) was added in Linux 3.10.
Or are there low-end mobile IvyBridge chips that lack uncore support?
Now for model58 IvyBridge the kernel doesn't seem to export predefined
generic events, but you can do things like manually set up events
like
UNC_CBO_CACHE_LOOKUP:STATE_I:ANY_FILTER
and they seem to work.
Vince
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: measure uncore events
2013-10-04 13:25 ` Vince Weaver
@ 2013-10-04 13:35 ` Andi Kleen
2013-10-20 4:03 ` Yuanfang Chen
0 siblings, 1 reply; 5+ messages in thread
From: Andi Kleen @ 2013-10-04 13:35 UTC (permalink / raw)
To: Vince Weaver; +Cc: Andi Kleen, Yuanfang Chen, linux-perf-users
> are you sure about that? Support for plain Ivybridge Model 58 uncore
> (which I assume this machine has) was added in Linux 3.10.
>
> Or are there low-end mobile IvyBridge chips that lack uncore support?
There's no support for measuring the memory controller and various
other interesting units. We only have that on the server parts.
Yes you're right some basic CBOX support exist, but that wasn't
what the poster was looking for.
-Andi
--
ak@linux.intel.com -- Speaking for myself only.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: measure uncore events
2013-10-04 13:35 ` Andi Kleen
@ 2013-10-20 4:03 ` Yuanfang Chen
0 siblings, 0 replies; 5+ messages in thread
From: Yuanfang Chen @ 2013-10-20 4:03 UTC (permalink / raw)
To: Andi Kleen; +Cc: Vince Weaver, linux-perf-users
On Fri, Oct 4, 2013 at 9:35 AM, Andi Kleen <andi@firstfloor.org> wrote:
>> are you sure about that? Support for plain Ivybridge Model 58 uncore
>> (which I assume this machine has) was added in Linux 3.10.
>>
>> Or are there low-end mobile IvyBridge chips that lack uncore support?
>
> There's no support for measuring the memory controller and various
> other interesting units. We only have that on the server parts.
>
> Yes you're right some basic CBOX support exist, but that wasn't
> what the poster was looking for.
>
> -Andi
>
> --
> ak@linux.intel.com -- Speaking for myself only.
Thank you guys. I'll find some core side events to get an approximate number
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-10-20 4:03 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-01 17:34 measure uncore events Yuanfang Chen
2013-10-04 5:02 ` Andi Kleen
2013-10-04 13:25 ` Vince Weaver
2013-10-04 13:35 ` Andi Kleen
2013-10-20 4:03 ` Yuanfang Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox