Re: [perfmon2] [PATCH] Add the IBM POWER7+ processor support.
Status: Beta
Brought to you by:
seranian
From: Stephane E. <er...@go...> - 2013-01-28 17:37:25
|
Patch applied. Thanks. On Mon, Jan 28, 2013 at 5:16 PM, Carl E. Love <ce...@li...> wrote: > [PATCH] Add the IBM POWER7+ processor support. > > The POWER7+ event files are the same as for POWER7. Just need to > return success if the processor type is POWER7 or POWER7+. > > Signed-off-by: Carl Love <ce...@us...> > --- > lib/pfmlib_power7.c | 2 +- > lib/pfmlib_power_priv.h | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lib/pfmlib_power7.c b/lib/pfmlib_power7.c > index 9443878..ceab517 100644 > --- a/lib/pfmlib_power7.c > +++ b/lib/pfmlib_power7.c > @@ -29,7 +29,7 @@ > static int > pfm_power7_detect(void* this) > { > - if (__is_processor(PV_POWER7)) > + if (__is_processor(PV_POWER7) || __is_processor(PV_POWER7p)) > return PFM_SUCCESS; > return PFM_ERR_NOTSUPP; > } > diff --git a/lib/pfmlib_power_priv.h b/lib/pfmlib_power_priv.h > index 66db113..2f66c22 100644 > --- a/lib/pfmlib_power_priv.h > +++ b/lib/pfmlib_power_priv.h > @@ -90,6 +90,7 @@ typedef struct { > #define PV_970FX 0x003C > #define PV_POWER6 0x003E > #define PV_POWER7 0x003F > +#define PV_POWER7p 0x004a > #define PV_970MP 0x0044 > #define PV_970GX 0x0045 > > -- > 1.7.12.rc1.22.gbfbf4d4 > > > |