2013-01-10 21:35:06 +01:00
|
|
|
From: Tony Jones <tonyj@suse.de>
|
|
|
|
Subject: enable pfm detection for 32bit ppc
|
|
|
|
Upstream: no
|
|
|
|
|
|
|
|
---
|
|
|
|
configure.ac | 2 +-
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
2015-12-25 18:38:30 +01:00
|
|
|
Index: oprofile-1.1.0/configure.ac
|
|
|
|
===================================================================
|
|
|
|
--- oprofile-1.1.0.orig/configure.ac
|
|
|
|
+++ oprofile-1.1.0/configure.ac
|
|
|
|
@@ -205,7 +205,7 @@ rm -f test-for-precise-ip*
|
|
|
|
AC_DEFINE_UNQUOTED(HAVE_PERF_EVENTS, $HAVE_PERF_EVENTS, [Kernel support for perf_events exists])
|
2013-08-07 22:56:13 +02:00
|
|
|
AC_CANONICAL_HOST
|
2015-12-25 18:38:30 +01:00
|
|
|
PFM_LIB=
|
|
|
|
-if test "$host_cpu" = "powerpc64le" -o "$host_cpu" = "powerpc64"; then
|
|
|
|
+if test "$host_cpu" = "powerpc64le" -o "$host_cpu" = "powerpc64" -o "$host_cpu" = "powerpc32"; then
|
|
|
|
AC_CHECK_HEADER(perfmon/pfmlib.h,,[AC_MSG_ERROR([pfmlib.h not found; may be provided by libpfm devel or papi devel package])])
|
|
|
|
AC_CHECK_LIB(pfm,pfm_get_os_event_encoding, HAVE_LIBPFM3='0'; HAVE_LIBPFM='1', [
|
|
|
|
AC_CHECK_LIB(pfm, pfm_get_event_name, HAVE_LIBPFM3='1'; HAVE_LIBPFM='1',
|