[PATCH] Add support for the IBM POWER 8 NV and NVL variants.

"Carl E. Love" <[email protected]>
Newsgroups gmane.linux.oprofile
Message-ID <[email protected]>
Add support for the IBM POWER 8 NV and NVL variants.

The processor performance counter unit is identical for the various
variants of the POWER 8 processor.  The variants vary some for the
non-cpu events.

Signed-off-by: Carl Love <[email protected]>
---
 libop/op_cpu_type.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libop/op_cpu_type.c b/libop/op_cpu_type.c
index d03f9d6..0e1f6e4 100644
--- a/libop/op_cpu_type.c
+++ b/libop/op_cpu_type.c
@@ -330,6 +330,11 @@ static op_cpu _get_ppc64_cpu_type(void)
 	if (strncmp(cpu_name_lowercase, "power8e", 7) == 0)
 		cpu_name_lowercase[6] = '\0';
 
+	/* The POWER8NV and POWER8NVL variants have the same core PMU events as
+	 * POWER8. */
+	if (strncmp(cpu_name_lowercase, "power8nv", 8) == 0)
+		cpu_name_lowercase[6] = '\0';
+
 	cpu_type_str[0] = '\0';
 	strcat(cpu_type_str, "ppc64/");
 	strncat(cpu_type_str, cpu_name_lowercase, len);
-- 
1.8.3.1




------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.