oprofile/oprofile-pfm-ppc.patch
Martin Pluskal dfd2c0e8d0 Accepting request 350773 from home:pluskalm:branches:devel:tools
- Update to 1.1.0
  * New/updated Processor Support
    + Broadcom Brahmma-B15 CPU
    + Intel Skylake
    + Intel Airmont
    + Intel Xeon D
  * Bug fixes
    + Prevent dropping of samples when the JVM changes memory 
      mappings
    + Better handling of IBM Power JVM generated zero-sized 
      mappings
    + Correct handling of anon_hugepage mmap entries for Java
    + Improved oparchive documentation and man page
    + Fixed compile error when using compile fortification
    + Support IBM Power 8 event code larger than sizeof int
    + Avoid changing POSIXLY_CORRECT environment variable for 
      processes monitored by operf and ocount
    + Ensure correct setting of the extra bits (edge, inv, cmask) 
      for Intel processors
    + Fix default unit masks for Intel Haswell and Broadwell 
      processors
    + Correctly initialize operf temporary file header information
- Cleanup spec file with spec-cleaner
- Use url for source
- Drop desktop file since binary it is calling is no longer 
  present (at least since version 1.0.0)
- Update dependencies

OBS-URL: https://build.opensuse.org/request/show/350773
OBS-URL: https://build.opensuse.org/package/show/devel:tools/oprofile?expand=0&rev=38
2015-12-25 17:38:30 +00:00

22 lines
974 B
Diff

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(-)
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])
AC_CANONICAL_HOST
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',