RE: [PATCH 2/2] perf tools: Make Power7 events available for perf

2013-06-20 Thread David Laight
> I think we should be able to do something better using the C > preprocessor, this is exactly the sort of thing it's good at. > > What I mean is something like we do with arch/powerpc/include/asm/systbl.h, > where we define the list of syscalls once, and then include it in > multiple places, usin

Re: [PATCH 2/2] perf tools: Make Power7 events available for perf

2013-06-19 Thread Michael Ellerman
On Wed, 2013-06-19 at 17:15 +0800, Runzhen Wang wrote: > Power7 supports over 530 different perf events but only a small > subset of these can be specified by name, for the remaining > events, we must specify them by their raw code: > > perf stat -e r2003c > > This patch makes all the PO

Re: [PATCH 2/2] perf tools: Make Power7 events available for perf

2013-06-19 Thread Sukadev Bhattiprolu
Runzhen Wang [runz...@linux.vnet.ibm.com] wrote: | Power7 supports over 530 different perf events but only a small | subset of these can be specified by name, for the remaining | events, we must specify them by their raw code: | | perf stat -e r2003c | | This patch makes all the POWER7 e