Update the POWER8 PVR values to include additional flavors
of the POWER8 processor.
The existing POWER8 entry is now POWER8E, this is to be
consistent with changes made on the kernel side.
(arch/powerpc/kernel/cputable.c)

Signed-off-by: Will Schmidt <will_schm...@vnet.ibm.com>
---
 lib/pfmlib_power8.c     |    6 ++++--
 lib/pfmlib_power_priv.h |    4 +++-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/lib/pfmlib_power8.c b/lib/pfmlib_power8.c
index d274b59..ea964b7 100644
--- a/lib/pfmlib_power8.c
+++ b/lib/pfmlib_power8.c
@@ -1,7 +1,7 @@
 /*
  * pfmlib_power8.c : IBM Power8 support
  *
- * Copyright (C) IBM Corporation, 2013.  All rights reserved.
+ * Copyright (C) IBM Corporation, 2013-2016.  All rights reserved.
  * Contributed by Carl Love (ca...@us.ibm.com)
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -29,7 +29,9 @@
 static int
 pfm_power8_detect(void* this)
 {
-       if (__is_processor(PV_POWER8))
+       if (__is_processor(PV_POWER8) ||
+               __is_processor(PV_POWER8E) ||
+               __is_processor(PV_POWER8NVL))
                return PFM_SUCCESS;
        return PFM_ERR_NOTSUPP;
 }
diff --git a/lib/pfmlib_power_priv.h b/lib/pfmlib_power_priv.h
index 0d8b473..e66e7e9 100644
--- a/lib/pfmlib_power_priv.h
+++ b/lib/pfmlib_power_priv.h
@@ -93,7 +93,9 @@ typedef struct {
 #define PV_POWER7p     0x004a
 #define PV_970MP       0x0044
 #define PV_970GX       0x0045
-#define PV_POWER8      0x004b
+#define PV_POWER8E     0x004b
+#define PV_POWER8NVL   0x004c
+#define PV_POWER8      0x004d
 
 extern int pfm_gen_powerpc_get_event_info(void *this, int pidx, 
pfm_event_info_t *info);
 extern int pfm_gen_powerpc_get_event_attr_info(void *this, int pidx, int 
umask_idx, pfm_event_attr_info_t *info);


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to