Re: [PATCH 2/2] powerpc/perf: Export Power8 generic and cache events to sysfs

2016-01-15 Thread Sukadev Bhattiprolu
Madhavan Srinivasan [ma...@linux.vnet.ibm.com] wrote: > > +enum { > > +#include "power8-events-list.h" > > +}; > > > > IIUC we dont use this enum as a index to > some array, so can we do something like this? Possibly, but its already a macro soup and we would add another layer of indirection? I

Re: [PATCH 2/2] powerpc/perf: Export Power8 generic and cache events to sysfs

2016-01-14 Thread Madhavan Srinivasan
On Tuesday 12 January 2016 04:25 AM, Sukadev Bhattiprolu wrote: > Power8 supports a large number of events in each susbystem so when a > user runs: > > perf stat -e branch-instructions sleep 1 > perf stat -e L1-dcache-loads sleep 1 > > it is not clear as to which PMU events were monit

[PATCH 2/2] powerpc/perf: Export Power8 generic and cache events to sysfs

2016-01-11 Thread Sukadev Bhattiprolu
Power8 supports a large number of events in each susbystem so when a user runs: perf stat -e branch-instructions sleep 1 perf stat -e L1-dcache-loads sleep 1 it is not clear as to which PMU events were monitored. Export the generic hardware and cache perf events for Power8 to sys