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

Sukadev Bhattiprolu sukadev at linux.vnet.ibm.com
Sat Jan 16 06:44:00 AEDT 2016


Madhavan Srinivasan [maddy at 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 agree though that the #define and #undefs
are not intuitive. Since it is only a few entries for Power8, was
keeping it consistent with Power7.

Sukadev



More information about the Linuxppc-dev mailing list