Hi Andreas,

This reply is late, and you probably already know what I am going to 
say. But at least, the following points may help someone in the future.

The events in the "/sys/bus/event_source/devices/uncore_*/events" are 
quite limited, compared to the uncore events offered in the processor. 
However, there is a way to let perf access more events.

If you cat the file 
"/sys/bus/event_source/devices/uncore_mbox_0/events/bbox_cmds_read", it 
reads "inc_sel=0xd,fvc=0x2800", which are exactly the register values of 
the event bbox_cmds_read (note that I have a Nehalem-EX, so the values 
may be different from a Westmere-EX).

Therefore, instead of passing the event name 
"uncore_mbox_0/event=bbox_cmds_read/" to perf, passing 
"uncore_mbox_0/inc_sel=0xd,fvc=0x2800/" tells perf to access the same 
event. Moreover, setting the registers to other values allows accessing 
other counters. For example, the following command,

perf stat -a -e "uncore_mbox_0/inc_sel=0xa,pld=0x0500,iss=0x0/" /bin/ls

accesses event CAS_RD_CLS.

The name of the configurable registers (inc_sel, pld, iss, fvc etc.) can 
be found at the format directory:

/sys/bus/event_source/devices/uncore_*box_*/format/

cheers,
Wei
On 12/19/2013 11:22 AM, Andreas Hollmann wrote:
> Hi,
>
> it seems to work with
>
> perf stat -a -e "uncore_mbox_0/event=bbox_cmds_read/" /bin/ls
>
> These counter are also shown in:
>
> $ ls /sys/bus/event_source/devices/uncore_mbox_*/events
> /sys/bus/event_source/devices/uncore_mbox_0/events:
> bbox_cmds_read  bbox_cmds_write
>
> /sys/bus/event_source/devices/uncore_mbox_1/events:
> bbox_cmds_read  bbox_cmds_write
> [hollmann@inwest stream]$ ls 
> /sys/bus/event_source/devices/uncore_mbox_*/events
> /sys/bus/event_source/devices/uncore_mbox_0/events:
> bbox_cmds_read  bbox_cmds_write
>
> /sys/bus/event_source/devices/uncore_mbox_1/events:
> bbox_cmds_read  bbox_cmds_write
>
> Other counters are in:
>
> $ ls /sys/bus/event_source/devices/uncore_rbox_*/events
> /sys/bus/event_source/devices/uncore_rbox_0/events:
> qpi0_date_response  qpi0_flit_send  qpi0_idle_filt  qpi1_date_response
>   qpi1_filt_send  qpi1_idle_filt
>
> /sys/bus/event_source/devices/uncore_rbox_1/events:
> qpi0_date_response  qpi0_flit_send  qpi0_idle_filt  qpi1_date_response
>   qpi1_filt_send  qpi1_idle_filt
>
>
> Maye this helps somebody else.
>
> 2013/12/19 Andreas Hollmann <andreas.hollm...@gmail.com>:
>> Hi,
>>
>> I have a problem to read the IMC uncore counters (other uncore
>> counters do also not work).
>>
>> --
>> perf stat -a -e "uncore_imc_0/event=0xff,umask=0x00/" /bin/ls
>> invalid or unsupported event: 'uncore_imc_0/event=0xff,umask=0x00/'
>> --
>>
>> They are not even shown under /sys/...
>>
>> Is there uncore support for the Westmere EX in the Linux Kernel?
>>
>> If there is support, do I have a BIOS issue that these
>> counters/devices are not exported and
>> visible in the kernel? Can I enable this in the BIOS?
>>
>> Your help would be much appreciated.
>>
>> Here is my config:
>>
>> CPU: Quad-Socket Xeon Processor E7-4850
>> Mainboard: Supermicro X8QB6-F
>> Linux inwest 3.12.0-1-ARCH #1 SMP PREEMPT Wed Nov 6 09:06:27 CET 2013
>> x86_64 GNU/Linux
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> _______________________________________________
> perfmon2-devel mailing list
> perfmon2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to