30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
|
From: Maynard Johnson <maynardj@us.ibm.com>
|
||
|
Subject: Make cpu type POWER8E equivalent to POWER8
|
||
|
Git-commit: 7243fa4ed8a25c6e59225a863fd263ce70989087
|
||
|
Date: Tue Feb 4 08:27:10 2014 -0600
|
||
|
|
||
|
Make cpu type POWER8E equivalent to POWER8
|
||
|
|
||
|
Recent mainline kernel changes resulted in a cpu type of
|
||
|
"POWER8E" being displayed in /proc/cpuinfo for certain revisions
|
||
|
of the IBM POWER8 processor model. But for profiling and
|
||
|
counting of native events, we can ignore the differences between
|
||
|
POWER8 and POWER8E. This patch addresses that issue.
|
||
|
|
||
|
Signed-off-by: Maynard Johnson <maynardj@us.ibm.com>
|
||
|
|
||
|
diff --git a/libop/op_cpu_type.c b/libop/op_cpu_type.c
|
||
|
index 2907f36..1ae2913 100644
|
||
|
--- a/libop/op_cpu_type.c
|
||
|
+++ b/libop/op_cpu_type.c
|
||
|
@@ -331,6 +331,9 @@ static op_cpu _get_ppc64_cpu_type(void)
|
||
|
|
||
|
if (strncmp(cpu_name_lowercase, "power7+", 7) == 0)
|
||
|
cpu_name_lowercase[6] = '\0';
|
||
|
+ if (strncmp(cpu_name_lowercase, "power8e", 7) == 0)
|
||
|
+ cpu_name_lowercase[6] = '\0';
|
||
|
+
|
||
|
cpu_type_str[0] = '\0';
|
||
|
strcat(cpu_type_str, "ppc64/");
|
||
|
strncat(cpu_type_str, cpu_name_lowercase, len);
|