lkml.org 
[lkml]   [2012]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V4 0/10] perf: Intel uncore pmu counting support
aOn Wednesday 16 May 2012 10:29 AM, Yan, Zheng wrote:

> Hi, all
>
> Here is the V4 patches to add uncore counting support for Nehalem,
> Sandy Bridge and Sandy Bridge-EP, applied on top of current tip.
> The code is based on Lin Ming's old patches.
>
> For Nehalem and Sandy Bridge-EP, A few general events are exported
> under sysfs directory:
> /sys/bus/event_source/devices/${uncore_dev}/events/
>
> Each file in the events directory defines an event. The content is
> a string such as:
> config=1,config1=2
>
> You can use 'perf stat' to access to the uncore pmu. For example:
> perf stat -a -C 0 -e 'Uncore_iMC_0/CAS_COUNT_RD/' sleep 1

Hello Yan,

When I boot my Sandy bridge laptop with the patchset applied, I can see the following
directories in my sysfs interface here at /sys/bus/event_source/devices

-------------------------------------------------------
breakpoint software Uncore_C-Box_0 Uncore_C-Box_2
cpu tracepoint Uncore_C-Box_1 Uncore_C-Box_3
-------------------------------------------------------

So looks like I have 4 C-Box kind of uncore PMUs present on my system. But it does not
have "events" directory which is suppose to hold the events related to C-box pmu. This
is in line with you what you have mentioned above, generic events are only exported for
Nehalem and Sandy Bridge-EP type processors. I guess there are number of RAW events
associated with C-box type PMU. I am not able to figure out how to use those RAW events
directly in "perf stat". Could you please guide me how to use them in a sandy bridge setup
as I have explained above. Thank you.

Regards,
Anshuman Khandual



\
 
 \ /
  Last update: 2012-06-04 12:21    [W:0.144 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site