diff --git a/SOURCES/papi-powernv.patch b/SOURCES/papi-powernv.patch new file mode 100644 index 0000000..defc228 --- /dev/null +++ b/SOURCES/papi-powernv.patch @@ -0,0 +1,23 @@ +commit de05a9d88794fad1c94b9cb12215142e61e15a16 +Author: Asim YarKhan +Date: Thu Oct 16 12:50:43 2014 -0400 + + PPC64 add support for the Power non virtualized platform + + Thanks to Carl Love for this patch and the following description: + The Power 8 system can be run as a non-virtualized machine. In + this case, the platform is "PowerNV". This patch adds the platform + to the possible IBM platform types. + +diff --git a/src/linux-common.c b/src/linux-common.c +index 614a83c2..85af7005 100644 +--- a/src/linux-common.c ++++ b/src/linux-common.c +@@ -225,6 +225,7 @@ _linux_get_cpu_info( PAPI_hw_info_t *hwinfo, int *cpuinfo_mhz ) + *t = '\0'; + s = strtok( s + 2, " " ); + if ( ( strcasecmp( s, "pSeries" ) == 0 ) || ++ ( strcasecmp( s, "PowerNV" ) == 0 ) || + ( strcasecmp( s, "PowerMac" ) == 0 ) ) { + strcpy( hwinfo->vendor_string, "IBM" ); + } diff --git a/SPECS/papi.spec b/SPECS/papi.spec index e3714c1..41f492b 100644 --- a/SPECS/papi.spec +++ b/SPECS/papi.spec @@ -2,7 +2,7 @@ Summary: Performance Application Programming Interface Name: papi Version: 5.2.0 -Release: 25%{?dist} +Release: 26%{?dist} License: BSD Group: Development/System URL: http://icl.cs.utk.edu/papi/ @@ -31,6 +31,7 @@ Patch2000: papi-avoid_libpfm_enum.patch Patch2001: papi-power9.patch Patch2002: papi-p9_presets.patch Patch2003: papi-lmsensors.patch +Patch2004: papi-powernv.patch BuildRequires: autoconf BuildRequires: doxygen BuildRequires: ncurses-devel @@ -103,6 +104,7 @@ the PAPI user-space libraries and interfaces. %patch2001 -p1 -b .power9 %patch2002 -p1 -b .power9a %patch2003 -p1 -b .lm_dyn +%patch2004 -p1 -b .powernv %build %if %{without bundled_libpfm} @@ -184,6 +186,9 @@ rm -rf $RPM_BUILD_ROOT %{_libdir}/*.a %changelog +* Tue Jan 30 2018 William Cohen - 5.2.0-26 +- Recognize IBM PowerNV processors. + * Thu Nov 30 2017 William Cohen - 5.2.0-25 - Update IBM Power 9 events. rhbz1510684 - Make lmsensor dynamically size internal array. rhbz1510497