lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 04 Jun 2012 15:05:57 +0530
From:	Anshuman Khandual <khandual@...ux.vnet.ibm.com>
To:	"Yan, Zheng" <zheng.z.yan@...el.com>
CC:	a.p.zijlstra@...llo.nl, mingo@...e.hu, andi@...stfloor.org,
	eranian@...gle.com, jolsa@...hat.com, ming.m.lin@...el.com,
	gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org
Subject: Re: [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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ