Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
oprofile.2004
oprofile-make-cpu-type-power8e-equivalent-to-po...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File oprofile-make-cpu-type-power8e-equivalent-to-power8.patch of Package oprofile.2004
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);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor