debian/0000775000000000000000000000000012317637044007177 5ustar debian/copyright0000664000000000000000000000333712033264153011130 0ustar This package was debianized by Al Stone on Wed, 14 Aug 2002 18:03:29 -0600. LIU Qi was previously the current Debian package maintainer. Roberto C. Sanchez is the current Debian package maintainer. It was downloaded from http://oprofile.sourceforge.net The majority of the code is: Copyright (C) 2000 THE VICTORIA UNIVERSITY OF MANCHESTER and John Levon Most portions of the UI are: Copyright (C) 2001 Philippe Elie oprofile was written by John Levon and Philippe Elie . Maynard Johnson is the current maintainer. Dave Jones provided bug fixes and support for the AMD Athlon, and AMD Hammer families of CPUs. Bob Montgomery provided bug fixes, the initial RTC driver and the initial ia64 driver. Will Cohen integrated the ia64 driver into the oprofile release, and contributed bug fixes and several cleanups. Graydon Hoare provided P4 port, bug fixes and cleanups. Ralf Baechle provided the MIPS port. Other contributors are listed in the ChangeLog. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The full text of the License may be found in /usr/share/common-licenses/GPL-2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. debian/prerm0000664000000000000000000000166312030255355010246 0ustar #! /bin/sh # prerm script for oprofile # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `upgrade' # * `failed-upgrade' # * `remove' `in-favour' # * `deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in remove|upgrade|deconfigure) [ -f /usr/doc/oprofile ] && rm -f /usr/doc/oprofile ;; failed-upgrade) ;; *) echo "prerm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/libopagent1.shlibs0000664000000000000000000000003112030255355012575 0ustar libopagent 1 libopagent1 debian/changelog0000664000000000000000000012236712317637044011064 0ustar oprofile (0.9.9-0ubuntu8) trusty; urgency=medium * debian/patches/Fix-up-event-codes-for-marked-architected-events.patch: Fix up event codes for marked architected events. Thanks to Maynard Johnson . -- Steve Langasek Fri, 04 Apr 2014 16:20:03 -0700 oprofile (0.9.9-0ubuntu7) trusty; urgency=medium * Drop debian/patches/static-libbfd-libopagnet-makefile.patch, which is causing libopagent to incorrectly avoid linking with libbfd, instead of linking with the available libbfd.so. * Amend debian/patches/static-libbfd.patch; we'll still link oprofile statically, but we want libopagent linked dynamically. LP: #1148682. -- Steve Langasek Tue, 11 Mar 2014 02:33:39 +0000 oprofile (0.9.9-0ubuntu6) trusty; urgency=medium [ Mauricio Faria de Oliveira ] * Add a package for the jvmti_oprofile runtime library. [ Steve Langasek ] * Build-depend on default-jdk, instead of a hard-coded list. * Fix broken 'clean' target. * debian/patches/op-POWER8.patch: Make cpu type POWER8E equivalent to POWER8. Thanks to Maynard Johnson . -- Steve Langasek Mon, 10 Mar 2014 14:03:05 -0700 oprofile (0.9.9-0ubuntu5) trusty; urgency=medium * Build-depend on libpfm4-dev [ppc64 ppc64el]. -- Matthias Klose Fri, 10 Jan 2014 14:02:05 +0100 oprofile (0.9.9-0ubuntu4) trusty; urgency=medium * More ppc64el fixes. -- Matthias Klose Fri, 10 Jan 2014 13:27:35 +0100 oprofile (0.9.9-0ubuntu3) trusty; urgency=medium * Build-depend on libiberty-dev. * Fix build on ppc64el. -- Matthias Klose Thu, 09 Jan 2014 21:26:37 +0100 oprofile (0.9.9-0ubuntu2) trusty; urgency=medium * Set architecture to linux-any. -- Matthias Klose Thu, 09 Jan 2014 21:10:48 +0100 oprofile (0.9.9-0ubuntu1) trusty; urgency=medium * New upstream release. -- Matthias Klose Thu, 09 Jan 2014 21:00:09 +0100 oprofile (0.9.8-0ubuntu3) saucy; urgency=low * Add Aarch64 support, taken from the trunk. -- Matthias Klose Wed, 17 Jul 2013 13:35:54 +0200 oprofile (0.9.8-0ubuntu2) raring; urgency=low [ Antonio Rosales ] * Fix Haswell client support (LP: #1161279). - d/p/add_haswell_client_support.patch: Cherry picked fix from upstream VCS to add support for Haswell client event lists and model numbers. [ James Page ] * Fix FTBFS on powerpc architecture: - d/p/fix-ppc32.patch: Cherry picked fix from upstream VCS to ensure that libpfm is only used on ppc64 architectures. -- Antonio Rosales Thu, 28 Mar 2013 02:27:04 -0500 oprofile (0.9.8-0ubuntu1) quantal; urgency=low [ Antonio Rosales ] * New upstream release (LP: #1039871). - Refreshed patches. - d/patches/arm-*: Dropped arm patches - included upstream. - d/patches/0005-add-back-error_if_not_basename.patch: Dropped as fixed upstream. - d/patches/{000*,nomutable}.patch: Dropped all other upstream sourced patches as all are included in this release. * Switch to dpkg-source 3.0 (quilt) format: - d/control: Drop explicit BD on quilt - d/rules: Remove quilt rules and unpatch usage. * Add Changlog to specifically indicate upstream is now using 'git log' as dh was looking for a 'Changelog' file. [ James Page ] * Transition package to use qt4: - d/control: Switch qt3 BD's to qt4 equivalents. - d/control: Added new BD's on pkg-config and libx11-dev. * d/rules: Clear dependency_libs field in .la files. -- Antonio Rosales Thu, 04 Oct 2012 11:51:02 +0100 oprofile (0.9.6-1.3ubuntu1) oneiric; urgency=low * Merge from debian unstable. Remaining changes: - Split out libopagent1 runtime library. - debian/oprofile.postinst: Really really make it work this time by adding the oprofile:oprofile system user and group as required for JIT support (see README_PACKAGERS) - Add documentation about vmlinux / linux-image-debug.ddeb. - debian/patches/arm-factor-out-armv7-common-architectural-events, debian/patches/arm-correct-usage-of-core-technology-for-v7-and-mpcore, debian/patches/arm-add-support-for-cortex-a9-events: ARMv7 cleanup and Cortex-A9 support, backported from http://article.gmane.org/gmane.linux.oprofile/8563. - Statically link libbfd. (LP #588033) * SECURITY UPDATE: arbitrary file overwrite - 0005-add-back-error_if_not_basename.patch: readd error_if_not_basename() which was removed in 0003-Avoid-blindly-source-SETUP_FILE-with.patch -- Jamie Strandboge Thu, 07 Jul 2011 11:28:06 -0500 oprofile (0.9.6-1.3) unstable; urgency=low * Non-maintainer upload. * Don't ship .la files (Closes: #622494). -- Luk Claes Sat, 25 Jun 2011 18:50:15 +0200 oprofile (0.9.6-1.2) unstable; urgency=high * Non-maintainer upload. * Add patch by William Cohen to not use mutable for reference variable (Closes: #625060) * Add patches by William Cohen to fix argument sanitation, CVE-2011-1760. This fixes the arbitrary command execution via opcontrol. (Closes: #624212) -- Luciano Bello Fri, 20 May 2011 01:38:53 -0300 oprofile (0.9.6-1.1ubuntu2) natty; urgency=low * Build on ppc64. -- Colin Watson Mon, 21 Feb 2011 19:54:14 +0000 oprofile (0.9.6-1.1ubuntu1) maverick; urgency=low * Merge from debian unstable. Remaining changes: - Split out libopagent1 runtime library. - debian/oprofile.postinst: Really really make it work this time by adding the oprofile:oprofile system user and group as required for JIT support (see README_PACKAGERS) - Add documentation about vmlinux / linux-image-debug.ddeb. - debian/patches/arm-factor-out-armv7-common-architectural-events, debian/patches/arm-correct-usage-of-core-technology-for-v7-and-mpcore, debian/patches/arm-add-support-for-cortex-a9-events: ARMv7 cleanup and Cortex-A9 support, backported from http://article.gmane.org/gmane.linux.oprofile/8563. * Statically link libbfd. (LP: #588033) -- Anders Kaseorg Sat, 11 Sep 2010 18:21:40 +0200 oprofile (0.9.6-1.1) unstable; urgency=low * Non-maintainer upload. * Add patch by Yukiharu YABUKI to staticaly link against libbfd (Closes: #537744, #573905) -- Alexander Reichle-Schmehl Thu, 22 Apr 2010 15:43:12 +0200 oprofile (0.9.6-1ubuntu10) maverick; urgency=low * Rebuild against latest binutils. -- Loïc Minier Wed, 25 Aug 2010 16:14:06 +0200 oprofile (0.9.6-1ubuntu9) maverick; urgency=low * Rebuild against latest binutils; bump build-dep to dep-wait on sparc. -- Loïc Minier Thu, 17 Jun 2010 23:36:56 +0200 oprofile (0.9.6-1ubuntu8) maverick; urgency=low * New patches, ARMv7 cleanup and Cortex-A9 support, backported from http://article.gmane.org/gmane.linux.oprofile/8563; LP: #591862. - arm-factor-out-armv7-common-architectural-events - arm-correct-usage-of-core-technology-for-v7-and-mpcore - arm-add-support-for-cortex-a9-events -- Loïc Minier Thu, 17 Jun 2010 13:10:23 +0200 oprofile (0.9.6-1ubuntu7) maverick; urgency=low * Yet another no change rebuild for binutils -- Jonathan Riddell Tue, 08 Jun 2010 19:47:26 +0100 oprofile (0.9.6-1ubuntu6) maverick; urgency=low * No change rebuild for binutils -- Jonathan Riddell Tue, 08 Jun 2010 14:39:59 +0100 oprofile (0.9.6-1ubuntu5) maverick; urgency=low * Rebuild for binutils from the trunk. -- Matthias Klose Mon, 19 Apr 2010 23:25:13 +0000 oprofile (0.9.6-1ubuntu4) lucid; urgency=low * Rebuild with binutils (>= 2.20.1-3ubuntu2). -- Matthias Klose Wed, 31 Mar 2010 03:44:52 +0200 oprofile (0.9.6-1ubuntu3) lucid; urgency=low * Rebuild against binutils-2.20.1 (with fixed shlibs files). -- Matthias Klose Mon, 08 Mar 2010 18:15:24 +0100 oprofile (0.9.6-1ubuntu2) lucid; urgency=low * Rebuild against binutils-2.20.1. -- Matthias Klose Mon, 08 Mar 2010 16:29:42 +0100 oprofile (0.9.6-1ubuntu1) lucid; urgency=low [ Matthias Klose ] * Merge with Debian (no remaining changes). LP: #495140. * Split out libopagent1 runtime library. [ Elliot Murphy ] * debian/oprofile.postinst (LP: #525932) - Really really make it work this time by adding the oprofile:oprofile system user and group as required for JIT support (see README_PACKAGERS) [ Steffen Neumann ] * Add documentation about vmlinux / linux-image-debug.ddeb. LP: #497424. -- Matthias Klose Fri, 26 Feb 2010 08:47:38 +0100 oprofile (0.9.6-1) unstable; urgency=low * New upstream release -- Roberto C. Sanchez Wed, 09 Dec 2009 16:43:54 -0500 oprofile (0.9.5-1) unstable; urgency=low * Add myself as Uploader, thanks to LIU Qi for accepting me as co-maintainer * New upstream release (Closes: #496146) * Remove README.Debian, which was outdated * Update to Standards-Version 3.8.3 (no changes) * Add myself to debian/copyright * Add doc-base registration * Use quilt to manage changes to upstream sources * Make oprofile be able to start in timer mode, thanks to Joachim Berdal Haga for the patch (Closes: #548574) * Do not remove JIT profiling support (Closes: #543681) * Support for DEB_BUILD_OPTIONS=noopt (Closes: #429157) -- Roberto C. Sanchez Sat, 21 Nov 2009 14:01:23 -0500 oprofile (0.9.4+cvs20090629-2.1ubuntu4) lucid; urgency=low * debian/rules (LP: #525932) - Need opjitconv installed to enable JIT profiling of unladen swallow. -- Elliot Murphy Mon, 22 Feb 2010 12:36:20 -0500 oprofile (0.9.4+cvs20090629-2.1ubuntu3) lucid; urgency=low * Remove debian/patches/unstatic_libbfd.patch. It caused oprofile to break on every binutils upgrade because the libbfd soname changes frequently. Presumably for this reason, the package description for binutils-dev says “Note that building Debian packages which depend on the shared libbfd is Not Allowed.” (LP: #426614) * Don’t build-depend autoconf (just to keep the Debian diff smaller; this actually has no effect since automake1.10 already depends autoconf). * Undo the change in -2.1ubuntu2 to the versioned build-dependency on binutils-dev. -- Anders Kaseorg Sun, 18 Oct 2009 14:40:37 -0400 oprofile (0.9.4+cvs20090629-2.1ubuntu2) karmic; urgency=low * Rebuild using binutils-dev 2.20. LP: #426614. -- Matthias Klose Sat, 17 Oct 2009 12:26:17 +0200 oprofile (0.9.4+cvs20090629-2.1ubuntu1) karmic; urgency=low * Merge with unstable; no changes in ubuntu changes. * Rebuild against current binutils-dev. -- Matthias Klose Tue, 15 Sep 2009 21:35:47 +0200 oprofile (0.9.4+cvs20090629-2.1) unstable; urgency=low * Non-maintainer upload. * Build-depend on automake1.10 specifically, as it is the version used by debian/rules; fix FTBFS (Closes: #543111) -- Stefano Zacchiroli Mon, 07 Sep 2009 16:35:58 +0200 oprofile (0.9.4+cvs20090629-2ubuntu1) karmic; urgency=low * Merge from debian unstable (LP: #392346), remaining changes: - debian/control: + Add LPIA architecture. + Build-depend on autoconf, ppu-binutils [powerpc] and quilt. - debian/patches/config-in-etc.patch, debian/oprofile-gui.postinst: + Move configuration file to /etc. - debian/patches/oprofile-sdk3-m4.diff: + Change m4 file for SDK build process. - debian/patches/oprofile-sdk3-stackcode.diff: + Add changes to allow profiling of code that the SPU runtime dynamically creates and runs on the stack. - debian/patches/unstatic_libbfd.patch: + Link bfd dynamically. - debian/rules: + Add patch/unpatch targets in debian/rules. + On powerpc configure --with-target=cell-be. * Changes dropped: - debian/patches/libc_open.patch: fixed upstream. - debian/patches/oprofile-sdk3-opcontrol.diff: fixed upstream. * Fixes LP: #310824, LP: #322074. -- Chris Coulson Mon, 27 Jul 2009 00:30:16 +0100 oprofile (0.9.4+cvs20090629-2) unstable; urgency=low * daemon/opd_perfmon.c: Fix the FTBFS bug on ia64 system. * configure.in, m4/binutils.m4: libbfd needs to be linked statically (Closes: #537744). * debian/control: add mipsel and s390 to architecture. -- LIU Qi Mon, 20 Jul 2009 09:52:26 +0800 oprofile (0.9.4+cvs20090629-1) unstable; urgency=low * New maintainer (Closes: #525737) * New upstream version (Closes: #525914) - Remove the debian/patches * Remove the patch and unpack targets in debian/rules * Upgrade the standard version * Add the homepage and vcs information * Remove the java oprofile binary * Add the Recommends binutils in debian/control (Closes: #471406) * Change the /bin/sh to /bin/bash in utils/opcontrol to avoid bashism (Closes: #471883) * Update the package description (Closes: #503850) * Remove the outdated documentation oprofile-source.HOWTO-* (Closes: #436700) * Remove the useless documentation debian/NOTES * Update the copyright information * Add debian/watch file -- LIU Qi Thu, 16 Jul 2009 16:15:20 +0800 oprofile (0.9.3-2.1) unstable; urgency=low * Non-maintainer upload. * Actually link with the static libbfd. Build-depend on zlib1g-dev because binutils-dev doesn't depend on it, and on automake so we can run autoreconf. Closes: #515908. -- Julien Cristau Thu, 02 Apr 2009 11:19:14 +0200 oprofile (0.9.3-2ubuntu3) karmic; urgency=low * Rebuild against current binutils. -- Timo Aaltonen Fri, 15 May 2009 10:14:59 +0300 oprofile (0.9.3-2ubuntu2) jaunty; urgency=low * Rebuild with binutils-2.19.1. -- Matthias Klose Wed, 25 Feb 2009 10:45:27 +0000 oprofile (0.9.3-2ubuntu1) jaunty; urgency=low * Merge from Debian unstable (LP: #305919), remaining changes: - Configuration file in /etc. - On powerpc configure --with-target=cell-be. - Fix for seg fault in opreport when using --xml and --details. - Change for opcontrol. Fix problem running on system using a network file system with different time base. - Change m4 file for SDK build process. - Add changes to allow profiling of code that the SPU runtime dynamically creates and runs on the stack. * Ubuntu changes dropped: - fix bashisms in opcontrol script, added in Debian * Re-add the Build-Depends that the Debian maintainer removed, they were needed. * Added a patch to call open with three arguments to fix FTBFS. * Added a patch to link bfd dynamically. -- David Mandala Sat, 06 Dec 2008 22:50:11 -0800 oprofile (0.9.3-2) unstable; urgency=low * Closes: bug#415827 -- manpage corrected upstream so that all options are now unique * Update to latest Debian standards version. * Closes: bug#420815 -- find separate debug files in archive properly (patch applied) * Closes: bug#450607 -- oprof_start no longer links against libbfd.so (used patch from submitter) * Closes: bug#446360 -- similar problem with libbfd; the patch for 450607 was more inclusive, though, so it also fixes this problem; thanks for the NMU, nonetheless. * Closes: bug#447797 -- remove bashisms from opcontrol (used patch from ubuntu) * Closes: bug#420760 -- cannot reproduce this problem in 0.9.3 (was reported with 0.9.2) * Closes: bug#422178 -- cannot reproduce this problem in 0.9.3 (was reported with 0.9.2) * Closes: bug#428299 -- latest Linux kernel (2.6.23-1 on dual core Intel) no longer shows this problem. * Closes: bug#424760 -- invalid arithmetic expression in opcontrol script replaced in newer versions * Closes: bug#456069 -- patched C++ files to accommodate changes in the header files for g++ 4.3 -- Al Stone Sun, 10 Feb 2008 11:51:49 -0700 oprofile (0.9.3-1.1ubuntu2) hardy; urgency=low * Add LPIA architecture (LP: #182032) -- Steve Magoun Thu, 24 Jan 2008 15:05:18 -0500 oprofile (0.9.3-1.1ubuntu1) hardy; urgency=low * Merge from debian unstable (LP: #179335), remaining changes: - Configuration file in /etc. - On powerpc configure --with-target=cell-be. - Fix for seg fault in opreport when using --xml and --details. - Change for opcontrol. Fix problem running on system using a network file system with different time base. - Change m4 file for SDK build process. - Add changes to allow profiling of code that the SPU runtime dynamically creates and runs on the stack. * debian/patches/opcontrol_bashisms: - fix bashisms in opcontrol script (LP: #172495) -- Luca Falavigna Sat, 22 Dec 2007 09:53:22 +0000 oprofile (0.9.3-1.1) unstable; urgency=low * NMU * link libbfd static (closes: #446360) -- Junichi Uekawa Fri, 14 Dec 2007 01:26:31 +0900 oprofile (0.9.3-1ubuntu1) gutsy; urgency=low * Merge with Debian; remaining changes: - Configuration file in /etc. * On powerpc configure --with-target=cell-be. * Import patches from the oprofile-0.9.3-4bsc rpm: - Fix for seg fault in opreport when using --xml and --details. - Change for opcontrol. Fix problem running on system using a network file system with different time base. - Change m4 file for SDK build process. - Add changes to allow profiling of code that the SPU runtime dynamically creates and runs on the stack. -- Matthias Klose Fri, 28 Sep 2007 11:59:41 +0200 oprofile (0.9.3-1) unstable; urgency=low * Update to latest upstream. * Convert packaging so that it now uses quilt * Remove invocation of autogen.sh -- no longer necessary to do this * Closes: bug#417472 -- should no longer FTBS with g++ 4.3 * Closes: bug#424478 -- acknowledge NMU * Closes: bug#434003 -- new upstream, armel support * Closes: bug#436697 -- simplified packaging as suggested -- Al Stone Sun, 09 Sep 2007 18:40:25 -0600 oprofile (0.9.2-4.1) unstable; urgency=low * Non-maintainer upload. * Closes: bug#424478 -- Force rebuild with newer binutils, to let orprofile understand binaries with --hash-style=gnu. -- Pierre Habouzit Fri, 31 Aug 2007 18:18:56 +0200 oprofile (0.9.2-4ubuntu1) gutsy; urgency=low * Move configuration file to /etc/oprofile, update documentation, and handle the migration in postinst and migrate any existing config on upgrades (LP: #125649). * DebianMaintainerField. -- Soren Hansen Sat, 14 Jul 2007 10:24:15 +0200 oprofile (0.9.2-4) unstable; urgency=low * Closes: bug#411286 -- does not work on AMD64, 2.6.19.2 kernel (used the patch from bug report). From Philippe Coval . * Closes: bug#410827 -- clean out some bashisms (used the patch from the bug report). This applies the patches from http://lkml.org/lkml/2006/11/22/170 and http://lkml.org/lkml/2006/11/22/172 to make oprofile work on newer kernels. From Jochen Voss . -- Al Stone Fri, 16 Mar 2007 11:04:46 -0600 oprofile (0.9.2-3) unstable; urgency=low * Closes: bug#396749 -- FTBFS: no suitably configured kernel include tree found; ./configure needs --with-kernel-support, and not --without. * Closes: bug#398506 -- Shouldn't build depend on an unversioned automake; corrected dependency. -- Al Stone Sat, 18 Nov 2006 20:06:11 -0700 oprofile (0.9.2-2) unstable; urgency=low * Deprecating use of oprofile-source; this is only needed for 2.4 kernels, and is no longer actively maintained. The functionality provided is now included in Linux 2.6 kernels by default. * Closes: bug#394017 -- oprofile-source: Obsolete - please remove * Closes: bug#392836 -- oprofile-source: fails to build * Closes: bug#395014 -- [PATCH] Make opcontrol work with bash (used the patch directly) -- Al Stone Sat, 28 Oct 2006 11:41:45 -0600 oprofile (0.9.2-1) unstable; urgency=low * Updated to latest upstream source. * Closes: bug#387948 -- OProfile 0.9.2 has been released (request to update to latest source) * Closes: bug#380462 -- Support for core CPUs (added in this release) * Closes: bug#378285 -- missing Depends:binutils in debian/control * Since the prospect package no longer exists, remove all references to it. -- Al Stone Thu, 21 Sep 2006 21:38:42 -0600 oprofile (0.9.1-11) unstable; urgency=low * Closes: bug#376879 -- remove 'Recommends' for unavailable package oprofile-modules0.9 * Update Debian Standards-Version. -- Al Stone Wed, 5 Jul 2006 18:04:01 -0600 oprofile (0.9.1-10) unstable; urgency=low * Closes: bug#357324 -- FTBFS with G++ 4.1: method definition was not in proper enclosing namespace (NB: already fixed in upstream CVS HEAD) -- Al Stone Sun, 2 Apr 2006 20:24:49 -0600 oprofile (0.9.1-9) unstable; urgency=low * Closes: bug#352910 -- CVE-2006-0576: Untrusted search path vulnerability in opcontrol (re-used patch from CVS HEAD) -- Al Stone Fri, 17 Feb 2006 11:22:41 -0700 oprofile (0.9.1-8) unstable; urgency=low * Closes: bug#344665: minot typo in --start portion of opcontrol man page (#344667 is a duplicate of this bug and was merged with this one). -- Al Stone Thu, 29 Dec 2005 17:31:03 -0700 oprofile (0.9.1-7) unstable; urgency=low * Convert oprofile-source so it uses automake1.9 (instead of 1.7) -- Al Stone Sun, 27 Nov 2005 17:30:36 -0700 oprofile (0.9.1-6) unstable; urgency=low * Closes: bug#340381: Cosmetic fix for oprofile.1 manpage * Convert to newer automake (1.9) -- Al Stone Sun, 27 Nov 2005 14:59:50 -0700 oprofile (0.9.1-5) unstable; urgency=low * Closes: bug#332057: oprofile depends on debconf without | debconf-2.0 alternate; blocks cdebconf transition -- Al Stone Sat, 8 Oct 2005 12:48:50 -0600 oprofile (0.9.1-4) unstable; urgency=low * Closes: bug#328069 -- oprofile-common: Conflicts with old oprofile; added proper Replaces and Conflicts -- Al Stone Fri, 16 Sep 2005 19:31:04 -0600 oprofile (0.9.1-3) unstable; urgency=low * Update to latest standards version. * Update to latest libqt3-mt-dev. * The bug #300683 is closed by the existence of the 'oprofile-source' package. If a 2.[24].x kernel is used, it will be necessary to build your own kernel module; 'oprofile-source' provides the module source. For 2.6.x kernels, the module is built by default and included in the standard Debian kernel images. Hence, the goofy pbuilder change listed in the previous entry has been removed and the bug closed via another mechanism -- you need to build your own oprofile kernel modules. -- Al Stone Sat, 10 Sep 2005 13:59:27 -0600 oprofile (0.9.1-2) unstable; urgency=low * The 'oprofile-modules' package needed to have a proper Provides: for oprofile-modules0.9, not 0.8 * Closes: bug#300683: package fails to build from source in a sane way; required adding all of the build process in debian/build-modules.sh. As of this writing, this package can only be built with pbuilder (if dpkg-buildpackage is used, cdebootstrap fails for an as yet unknown reason). -- Al Stone Mon, 5 Sep 2005 15:19:43 -0600 oprofile (0.9.1-1) unstable; urgency=low * Update to latest upstream. * Separating 'oprofile' into two source packages was a really bad idea; rejoined them, using this upstream version. * Added ARM, MIPS architectures as they are now supported. * Closes: bug#287767: would also like a version that is command line only (no X GUI) -- install 'oprofile-common' for the command line only portion of 'oprofile'; installing 'oprofile-gui' will bring in 'oprofile-common', too; installing 'oprofile' now becomes a meta package so that previous users of 'oprofile' will see no difference. * Closes: bug#305131: new upstream * Closes: bug#319089: does not start -- libbfd-2.15.so not found; it's not supposed to be building against a libbfd.so at all. * Closes: bug#325249: uninstallable because of missing libqt3c102-mt -- Al Stone Sun, 28 Aug 2005 12:25:57 -0600 oprofile (0.8.1-2) unstable; urgency=low * Closes: #293354 -- opreport man page errors * Closes: bug#280970 -- oprofile-source: FTBFS on most arches; changed from using arch-specific control files (a bad idea) to vars in the control file (much easier to maintain -- thanks, Kurt) * Module makefile now has an 'install.debian' target for use with the normal 'make-kpkg' scripts, and an 'install.kernel' target to use when building and installing a module without 'make-kpkg.' * Closes: bug#269954 -- was missing a dependency on the proper kernel-image package in the control file for build a kernel module (debian/control.modules.in). -- Al Stone Mon, 7 Mar 2005 15:34:31 -0700 oprofile (0.8.1-1) unstable; urgency=low * Update to latest upstream. * Split this package into two source packages: oprofile and oprofile-source. While this is more work for the maintainer, it should make it easier for the user that wants to create a kernel module (and that's where the most complaints seem to be). * Closes: bug#273849 -- when source was last upgraded, forgot to include the change to configure.in that forces libbfd.a to be used instead of libbfd.so (which is against policy). -- Al Stone Mon, 18 Oct 2004 16:13:07 -0600 oprofile (0.8-2) unstable; urgency=low * Closes: bug#252530 -- FTBS on amd64. Added in the new architecture. To both oprofile _and_ oprofile-source, this time. -- Al Stone Thu, 2 Sep 2004 16:30:08 -0600 oprofile (0.8-1) unstable; urgency=low * Updating to latest released upstream source. * Closes: bug#257466 -- new upstream available * Closes: bug#252530 -- FTBS on amd64. Added in the new architecture. * Closes: bug#265256 -- /lib/modules/2.4.26-1-686/oprofile/oprofile.o: Doesn't work with kernel-image-2.4.26-1-686 version 2.4.26-4 (fixed with upload of new module packages) -- Al Stone Tue, 31 Aug 2004 16:37:34 -0600 oprofile (0.7.1-4) unstable; urgency=low * Closes: bug#245300: Shouldn't mention just x86/ia64 in description * Clean up override disparity by setting priority back to 'optional' -- Al Stone Thu, 22 Apr 2004 17:43:00 -0600 oprofile (0.7.1-3) unstable; urgency=low * Closes: bug#228020 -- please add PPC. Also added architectures that should work: alpha, i386, ia64, parisc, ppc, sparc * Because this package depends on binutils-dev, and it is an 'extra' package, this one cannot be 'optional'. Changed priority to be 'extra' to conform with policy. -- Al Stone Fri, 19 Mar 2004 18:02:08 -0700 oprofile (0.7.1-2) unstable; urgency=low * Closes: bug#227576 -- depended on automake1.7 but didn't use it; corrected debian/rules to use AUTOMAKE variable instead of relying on automake 1.7 being set as the default version. * automake was being run twice; cleaned up debian/rules to preclude this. * aclocal was defaulting, usually to the wrong version, so set the ACLOCAL variable in debian/rules to get this done right. -- Al Stone Tue, 24 Feb 2004 16:02:32 -0700 oprofile (0.7.1-1) unstable; urgency=low * Updated to latest upstream source. * Closes: bug#227135 -- removed dependency on specific version of libbfd * Closes: bug#227248 -- binaries are no longer dynamically linked against libbfd-2.14.90.0.6.so, which is not present * Closes: bug#227075 -- unsatisfied build-depends on docbook-xsl-stylesheets which has been replaced with docbook-xsl * Closes: bug#226767 -- in oprofile-source, 'make-kpkg modules_image' fails if not executed as root; made module source a tar.gz as suggested * Closes: bug#227460 -- in oprofile-source: please provide as archive (this is a duplicate of #226767) * Closes: bug#227378 -- duplicate of #227135, #227248 * Closes: bug#232268 -- oprofile-source uses -liberty but does not have a build-depends on it * module/ia64/op_pmu.c was missing includes needed to compile properly -- Al Stone Tue, 17 Feb 2004 21:28:55 -0700 oprofile (0.6.1-3) unstable; urgency=low * Since we can't know what kernel is in use, relaxed the dependency on oprofile-modules to a Recommends. E.g., in 2.6 kernels, the OProfile kernel module is in the kernel and could already be built and available. * Added dependency on binutils-dev (for libbfd.so) to oprofile-modules * The oprofile-modules-* packages incorrectly included a dependency on automake and kernel-package (they are needed in Build-Depends, though). * oprofile-source was missing a dependency on automake1.7, binutils-dev * Changed the Makefile.am files for ./dae and ./daemon to remove the test on whether or not --with-kernel-support was used (but left this in the configure step in debian/rules to force the configure to _not_ look for kernel source since the kernel modules will be built by a different process). This forces both a 2.4 oprofiled daemon (./dae/oprofiled) and a 2.5 daemon (./daemon/oprofiled) to be built. At the same time, these now get installed as daemons with different names, and oprofiled becomes a wrapper script that invokes the right daemon for the right kernel. * Added a note to README.Debian about the need to use install_vmlinux when building a kernel image with make-kpkg, if you want to profile the kernel. * oprofile-source now conflicts with known 2.6 kernel packages * initial upload. Closes: bug#139475 (RFP). -- Al Stone Sun, 16 Nov 2003 16:25:45 -0700 oprofile (0.6.1-2) unstable; urgency=low * Added a note to README.Debian: the kernel module uses an option called "allow_unload" which changes whether or not the module will ignore rmmod. Explained what this meant and why it's there. * Improved the text in README.Debian; better wording, "user-space" instead of the more informal (and possibly unclear) "user-land," and consistent capitalization of "OProfile." * Improved the text in the package descriptions; better wording and consistent capitalization of "OProfile." * oprofile-source package was needed a Depends (not just a Build-Depends) for automake(>=1.6) and binutils-dev. * The kernel module build needed to put the .deb in /usr/src instead of /usr/src/modules. * Updated the build dependency for libqt3-dev (since it's been deprecated, or may be soon) to libqt3-mt-dev. -- Al Stone Thu, 18 Sep 2003 17:43:05 -0600 oprofile (0.6.1-1) unstable; urgency=low * Updated to latest version. -- Al Stone Sun, 14 Sep 2003 21:47:28 -0600 oprofile (0.6-1) unstable; urgency=low * Updated to 0.6 version (0.6.1 is pending) -- Al Stone Sat, 13 Sep 2003 17:41:20 -0600 oprofile (0.5.4-4) unstable; urgency=low * Incorporate feedback from John Levon. * Corrected AUTHORS email addresses. -- Al Stone Wed, 2 Jul 2003 10:38:05 -0600 oprofile (0.5.4-3) unstable; urgency=low * Really Stupid Error: make install did not install all of the user space binaries. Forgot to bring forward the use of $DESTDIR in the Makefiles. -- Al Stone Wed, 25 Jun 2003 10:36:37 -0600 oprofile (0.5.4-2) unstable; urgency=low * Missed a dependency on oprofile-modules0.5.2 that should not have been in the control file. * Added code to double check kernel source has been configured before we build the oprofile module -- Al Stone Tue, 24 Jun 2003 17:34:25 -0600 oprofile (0.5.4-1) unstable; urgency=low * Update to latest source. * Closes: bug#139475 -- RFP for oprofile -- Al Stone Mon, 23 Jun 2003 18:53:55 -0600 oprofile (0.5.3-4) unstable; urgency=low * lintian/linda reports oprofile-source debian/postinst script as not an executable script. Don't have to fix it, but it can't hurt to get to no warnings at all. * Corrected build depends for oprofile-source and oprofile (was missing a dependency on automake) * Minor corrections to the HOWTOs for oprofile-source on further testing * Did not get m4/findkernel.m4 complete enough; added some additional places to check for source, and removed all occurrences of `uname -r` that I could find. * The variable KSRC was also not being set correctly; borrowed the script from findkernel.m4 and re-used it. -- Al Stone Mon, 23 Jun 2003 17:48:22 -0600 oprofile (0.5.3-3) unstable; urgency=low * Made m4/findkernel.m4 more robust; it only looked in one place to find the kernel source and headers, but there are more places to look. * Cleaned up the commentary in debian/rules * Cut away the cruft from debian/configure.modules.in (it's a subset of configure.in). * Tested kernel module build environment using debootstrap to build a chroot environment; rewrote portions of debian/rules to be cleaner, fixed up the module control file build-depends. * Added HOWTOs for ia64 and i386 to the docs provided by the oprofile-source package, which is used to add oprofile to existing kernels. Included detailed instructions for building by hand and using make-kpkg. * We now provide oprofile-module0.5 instead of 0.5.x; all the 0.5.x versions are compatible enough, there's no need to introduce any further complexity. * Lots of miscellaneous cleanup of the HOWTOs, debian/rules and the oprofile-source files as part of verifying everything works on all platforms as expected. -- Al Stone Wed, 18 Jun 2003 17:56:22 -0600 oprofile (0.5.3-2) unstable; urgency=low * Corrected use of obsolete AC_TRY_COMPILE macro in configure.modules.in * Made the debian/rules clean more robust * Updated debian/Makefile.modules.in to debian/Makefile.modules.am, cutting out everything not needed. * Updated debian/configure.in to use the latest version * Corrected debian/rules: it needed to copy the ia64/ia32 versions of some files in the module directory and was not. * Updated debian/rules to correspond to new build model, and still be able to build kernel modules separately -- Al Stone Mon, 16 Jun 2003 17:06:59 -0600 oprofile (0.5.3-1) unstable; urgency=low * Updated to latest released upstream source; 0.5.2 and 0.5.3, unlike previous releases, seem to be fairly cooperative, with just incremental changes instead of the earlier wholesale replacements. * Added in a copy of the Release Notes from the web site, as part of the documentation. * Made sure release notes went with both packages produced (oprofile _and_ oprofile-sources). * Made sure AUTHORS file was included. -- Al Stone Fri, 13 Jun 2003 12:25:17 -0600 oprofile (0.5.2-1) unstable; urgency=low * Update to latest released version. NB: as seems to be normal, this version conflicts with prior versions, so dependencies needed updating. * Added support for ia64 version. * Cleaned up some of the copyright info, added AUTHORS file. * Added in a copy of the Release Notes from the web site, as part of the documentation. -- Al Stone Fri, 13 Jun 2003 12:15:49 -0600 oprofile (0.4-5) unstable; urgency=low * Added dependency on libpopt-dev for oprofile-source (it was missing). -- Al Stone Mon, 24 Mar 2003 10:41:16 -0700 oprofile (0.4-4) unstable; urgency=low * Forgot to make sure that the original source and the diff file were included (!) * Packaging done. Closes: #139475 -- Al Stone Fri, 21 Mar 2003 21:07:43 -0700 oprofile (0.4-3) unstable; urgency=low * Corrected the description to refer to kernel-package as it should, and use the right name for oprofile-modules (not oprofile-modul*e*). * Moved some warnings from debconf to README.Debian so that they are more readily accessible. Based on suggestions, did some significant rewording of the text to make clearer what's being said. * The oprofile-source kernel module build relied on `uname -r` when it should not have. The problem was that you could build the module in a chroot environment and have it install in the wrong modules directory. * The build was kind of messed up; even when all you were doing was the build of the user-land components, configure was looking for things like kernel headers that are only needed when building the kernel module. Fixed the rules file to configure properly depending on what we're building. * A debian/dirs file was being created for the kernel module and was mistakenly creating module directories it should not have. * Cleaned up the oprofile build-depends to be accurate. * - -- Al Stone Fri, 21 Mar 2003 21:07:35 -0700 oprofile (0.4-2) unstable; urgency=low * Bug report from the oprofile mailing list says that libpp.a is not to be installed at all, so removed it from the installation step -- Al Stone Mon, 11 Nov 2002 11:11:00 -0700 oprofile (0.4-1) unstable; urgency=low * Update to latest upstream * Had to fix makefile in pp directory to install libpp.a in /usr/lib instead of /usr/bin. -- Al Stone Fri, 8 Nov 2002 13:52:58 -0700 oprofile (0.3-3) unstable; urgency=low * Cleanup problems with debian/Makefile.modules.in (install steps were all wrong, leftovers from prior version) -- Al Stone Fri, 8 Nov 2002 11:20:04 -0700 oprofile (0.3-2) unstable; urgency=low * Cleaned up debian/rules so make-kpkg works *correctly*; was using the wrong paths for kernel header and source files. * Added in the configure.modules.in file to be used by the make-kpkg build as it's configure.in; needed to remove all the dependencies that aren't needed. * Moved Makefile.modules.in and configure.modules.in to the debian directory since that's the only place that uses them (in make-kpkg). * Added debconf warning to oprofile-source; wanted to make sure that you knew that a make clean will be done in your kernel source directory when you do a make-kpkg. -- Al Stone Wed, 6 Nov 2002 16:55:10 -0700 oprofile (0.3-1) unstable; urgency=low * Upgrade to 0.3 upstream; this forces some dependency touch-up * Rules file for make-kpkg module build was retaining values from an initial config done during the creation of the package and was not using the variable values provided by make-kpkg * Added build dependency on libpopt-dev (it was missing) * Cleaned up debian/rules to accomodate changes since 0.2 -- Al Stone Wed, 6 Nov 2002 16:22:25 -0700 oprofile (0.2-6) unstable; urgency=low * Bug: improved the way configure.in looked for kernel header files; it's not foolproof, but will probably work better for those that use the Debian kernel image/header/source packages. -- Al Stone Mon, 4 Nov 2002 14:07:12 -0700 oprofile (0.2-5) unstable; urgency=low * Added the events directory to the kernel module source package so it will compile * Added the util directory to the kernel module source package so it will compile * Added the dae directory to the kernel module source package so it will compile * Added a Makefile.modules.in so that make-kpkg would work properly (it only needs a subset of the entire source tree; this subset of Makefile.in compiles the subset). * The "Recommends" should have been "Suggests" in the control files * Changed the name of the virtual package oprofile-modules so that it includes the version number; dpkg cannot handle virtual package versioning well, so this makes sure we have the right modules. -- Al Stone Tue, 20 Aug 2002 15:57:59 -0600 oprofile (0.2-4) unstable; urgency=low * Completely re-vamped the way this package is built and structured, using some new templates for dh_make specific to kernel module type packages. -- Al Stone Mon, 19 Aug 2002 16:34:19 -0600 oprofile (0.2-3) unstable; urgency=low * Removed some of the remaining kernel stuff configure.in from the user-land only package; oprofile-module will have all the kernel stuff in it. -- Al Stone Fri, 16 Aug 2002 13:44:43 -0600 oprofile (0.2-2) unstable; urgency=low * Package cleanup: (1) fix man page problems, (2) clean up rules file, (3) added depends on kernel module * Removed/commented out the steps that build and install the kernel module; those will be in a separate kernel modules package * Added some missing links for man pages * xsltproc was being invoked to create doc/oprofile.html but was producing a zero-length file. fixed the make to create the html properly. -- Al Stone Fri, 16 Aug 2002 11:14:29 -0600 oprofile (0.2-1) unstable; urgency=low * Initial Release. -- Al Stone Wed, 14 Aug 2002 18:03:29 -0600 debian/compat0000664000000000000000000000000212030255355010366 0ustar 7 debian/oprofile.postinst0000664000000000000000000000073212030255355012616 0ustar #!/bin/sh set -e case "$1" in configure) if ! getent passwd oprofile > /dev/null; then adduser --system --quiet \ --home /var/lib/oprofile --no-create-home \ --shell /bin/bash --group --gecos "OProfile JIT user" oprofile fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/watch0000664000000000000000000000007412030255355010222 0ustar version=3 http://sf.net/oprofile/oprofile-([\d.]+)\.tar\.gz debian/oprofile.doc-base0000664000000000000000000000042412030255355012406 0ustar Document: oprofile Title: OProfile documentation Author: Victoria University of Manchester, John Levon and others Abstract: Documentation for using oprofile Section: Programming Format: HTML Index: /usr/share/doc/oprofile/oprofile.html Files: /usr/share/doc/oprofile/*.html debian/docs0000664000000000000000000000024212030255355010041 0ustar README TODO ChangeLog ChangeLog-2001 ChangeLog-2002 ChangeLog-2003 ChangeLog-2004 ChangeLog-2005 ChangeLog-2006 ChangeLog-2007 doc/oprofile.html doc/oprofile.xml debian/source/0000775000000000000000000000000012030256135010465 5ustar debian/source/format0000664000000000000000000000001412030256135011673 0ustar 3.0 (quilt) debian/README.source0000664000000000000000000000036312030255355011351 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. See /usr/share/doc/quilt/README.source for a detailed explanation. debian/oprofile-gui.dirs0000664000000000000000000000003312030255355012450 0ustar usr/bin usr/share/man/man1 debian/dirs0000664000000000000000000000010512030255355010050 0ustar usr/bin usr/share/doc/oprofile usr/share/man/man1 usr/share/oprofile debian/rules0000775000000000000000000000615312307371417010262 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 by Joey Hess. # # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif configure: config-stamp config-stamp: $(QUILT_STAMPFN) cd $(CURDIR) && ACLOCAL=aclocal-1.10 AUTOMAKE=automake-1.10 ./autogen.sh # cd $(CURDIR) && autoreconf -vfi cd $(CURDIR) && ./configure --host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-qt-includes=/usr/include/qt4 --with-kernel-support --disable-werror --enable-gui=qt4 --with-java=/usr/lib/jvm/default-java touch config-stamp build-arch: configure build-arch-stamp build-arch-stamp: # Add here commands to build the package cd $(CURDIR) && DESTDIR=$(CURDIR)/debian/oprofile $(MAKE) touch build-arch-stamp build-indep: build-indep-stamp build-indep-stamp: dh_testdir touch build-indep-stamp build: build-arch build-indep clean: dh_testdir dh_testroot [ ! -f Makefile ] || make distclean rm -f config-stamp build-arch-stamp rm -f build-indep-stamp dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs # Add here commands to install the package into debian/oprofile. cd $(CURDIR) && DESTDIR=$(CURDIR)/debian/oprofile $(MAKE) install # Move some files to their proper location mv debian/oprofile/usr/bin/oprof_start \ debian/oprofile-gui/usr/bin cp debian/oprofile/usr/share/man/man1/oprofile.1 \ debian/oprofile-gui/usr/share/man/man1/oprof_start.1 mkdir -p debian/libopagent1/usr/lib mkdir -p debian/libjvmti-oprofile0/usr/lib mv debian/oprofile/usr/lib/oprofile/libopagent.so.* \ debian/libopagent1/usr/lib/ mv debian/oprofile/usr/lib/oprofile/libjvmti_oprofile.so.* \ debian/libjvmti-oprofile0/usr/lib/ for i in debian/libopagent1/usr/lib/*.so.* \ debian/libjvmti-oprofile0/usr/lib/*.so.*; do \ b=$$(basename $$i); \ ln -sf ../$$b debian/oprofile/usr/lib/oprofile/$$b; \ done ln -sf libopagent.so.1 debian/oprofile/usr/lib/libopagent.so ln -sf libjvmti_oprofile.so.0 debian/oprofile/usr/lib/libjvmti_oprofile.so # Fixup non-empty-dependency_libs-in-la-file lintian error sed -i "/dependency_libs/ s/'.*'/''/" `find . -name '*.la'` #-- clean up some of the mess from # an over-exuberant install command #rm -f debian/oprofile/usr/share/mangled-name dh_link usr/share/man/man1/oprofile.1 usr/share/man/man8/oprofiled.8 # Build architecture-independent files here. # Pass -i to all debhelper commands in this target to reduce clutter. binary-indep: build install # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installman dh_installchangelogs $(CURDIR)/ChangeLog $(CURDIR)/ChangeLog-2008 dh_strip dh_link dh_compress dh_compress dh_fixperms dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install debian/control0000664000000000000000000000655712307371417010615 0ustar Source: oprofile Section: devel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: LIU Qi Uploaders: Roberto C. Sanchez Standards-Version: 3.9.3 Build-Depends: automake1.10, binutils-dev, libiberty-dev, libpfm4-dev [ppc64 ppc64el], debhelper (>= 7), docbook-xml, docbook-xsl, g++ (>>3.3.1), libpopt-dev, libqt4-dev, libtool, libx11-dev, pkg-config, qt4-dev-tools, xsltproc, zlib1g-dev, default-jdk Homepage: http://oprofile.sourceforge.net Vcs-Browser: http://git.printk.org/?p=liuqi/debian/oprofile.git;a=summary Vcs-git: git://git.printk.org/liuqi/debian/oprofile.git Package: oprofile Architecture: linux-any Conflicts: oprofile-modules0.2, oprofile-modules0.3, oprofile-modules0.4, oprofile-modules0.5, oprofile-modules0.6, oprofile-modules0.7, oprofile-modules0.8 Depends: adduser, debconf | debconf-2.0, libopagent1 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Replaces: oprofile-common Recommends: binutils Suggests: oprofile-gui Description: system-wide profiler for Linux systems OProfile is a performance profiling tool for Linux systems, capable of profiling all running code at low overhead. It consists of a daemon for collecting sample data, plus several post-profiling tools for turning data into information. . OProfile leverages the hardware performance counters of the CPU to enable profiling of a wide variety of interesting statistics, which can also be used for basic time-spent profiling. All code is profiled: hardware and software interrupt handlers, kernel modules, the kernel, shared libraries, and applications (the only exception being the OProfile interrupt handler itself). Note that different architectures can use different hardware mechanisms to collect data. . OProfile is currently in alpha status; however it has proven stable over a large number of differing configurations. As always, there is no warranty. Package: libopagent1 Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends} Replaces: oprofile (<< 0.9.6-1ubuntu1) Description: system-wide profiler for Linux systems (opagent runtime library) OProfile is a performance profiling tool for Linux systems, capable of profiling all running code at low overhead. It consists of a daemon for collecting sample data, plus several post-profiling tools for turning data into information. . This package contains the opagent runtime library. Package: libjvmti-oprofile0 Architecture: linux-any Depends: ${misc:Depends}, ${shlibs:Depends} Description: system-wide profiler for Linux systems (Java runtime library) OProfile is a performance profiling tool for Linux systems, capable of profiling all running code at low overhead. It consists of a daemon for collecting sample data, plus several post-profiling tools for turning data into information. . This package contains the jvmti_oprofile runtime library for Java support. Package: oprofile-gui Architecture: linux-any Replaces: oprofile Depends: debconf | debconf-2.0, oprofile, ${misc:Depends}, ${shlibs:Depends} Recommends: binutils Description: system-wide profiler for Linux systems (GUI components) This package contains only the GUI components of the oprofile package. This allows oprofile to be used on machines that require a much smaller footprint, or that do not wish to use an X Windows interface. debian/postrm0000664000000000000000000000203212030255355010434 0ustar #! /bin/sh # postrm script for oprofile # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `remove' # * `purge' # * `upgrade' # * `failed-upgrade' # * `abort-install' # * `abort-install' # * `abort-upgrade' # * `disappear' overwrit>r> # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package case "$1" in purge) if test -e /usr/share/debconf/confmodule; then . /usr/share/debconf/confmodule db_purge fi ;; abort-install|abort-upgrade|disappear|remove|upgrade|failed-upgrade) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/patches/0000775000000000000000000000000012317636665010636 5ustar debian/patches/Fix-up-event-codes-for-marked-architected-events.patch0000644000000000000000000001122512317636617023041 0ustar From 717d4595a0d60faffeb8b9611dda850e3f998ef8 Mon Sep 17 00:00:00 2001 From: Maynard Johnson Date: Mon, 3 Feb 2014 17:50:54 -0600 Subject: [PATCH] Fix up event codes for marked architected events Fourteen events in the set of architected events had the wrong event encoding. All 14 were "marked" events, used in random sampling. Signed-off-by: Maynard Johnson --- events/ppc64/architected_events_v1/events | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/events/ppc64/architected_events_v1/events b/events/ppc64/architected_events_v1/events index 1048ec9..465cbbd 100644 --- a/events/ppc64/architected_events_v1/events +++ b/events/ppc64/architected_events_v1/events @@ -30,20 +30,20 @@ event:0x300f6 counters:2 um:zero minimum:10000 name:PM_L1_DCACHE_RELOAD_VALID : event:0x200fc counters:1 um:zero minimum:10000 name:PM_L1_ICACHE_MISS : Demand iCache Miss event:0x400f0 counters:3 um:zero minimum:10000 name:PM_LD_MISS_L1 : Load Missed L1 event:0x200f6 counters:1 um:zero minimum:10000 name:PM_LSU_DERAT_MISS : DERAT Reloaded due to a DERAT miss -event:0x300e4 counters:2 um:zero minimum:1000 name:PM_MRK_BR_MPRED_CMPL : Marked Branch Mispredicted -event:0x100e2 counters:0 um:zero minimum:1000 name:PM_MRK_BR_TAKEN_CMPL : Marked Branch Taken completed -event:0x400e8 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS : sampled load resolved beyond L2 -event:0x200e4 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3MISS : sampled load resolved beyond L3 -event:0x200e0 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEM : sampled load resolved from memory -event:0x300e6 counters:2 um:zero minimum:1000 name:PM_MRK_DERAT_MISS : Erat Miss (TLB Access) All page sizes -event:0x400e4 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS : sampled Instruction dtlb miss -event:0x400e0 counters:3 um:zero minimum:1000 name:PM_MRK_INST_CMPL : Marked group complete -event:0x100e0 counters:0 um:zero minimum:1000 name:PM_MRK_INST_DISP : The thread has dispatched a randomly sampled marked instruction -event:0x400e6 counters:3 um:zero minimum:1000 name:PM_MRK_INST_FROM_L3MISS : sampled instruction missed icache and came from beyond L3 A Instruction cacheline request for a marked/sampled instruction resolved from a location that was beyond the local L3 cache -event:0x100e4 counters:0 um:zero minimum:1000 name:PM_MRK_L1_ICACHE_MISS : sampled Instruction suffered an icache Miss -event:0x100ea counters:0 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID : Sampled Instruction had a data reload -event:0x200e2 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1 : Marked DL1 Demand Miss -event:0x300e2 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL : marked store completed and sent to nest +event:0x301e4 counters:2 um:zero minimum:1000 name:PM_MRK_BR_MPRED_CMPL : Marked Branch Mispredicted +event:0x101e2 counters:0 um:zero minimum:1000 name:PM_MRK_BR_TAKEN_CMPL : Marked Branch Taken completed +event:0x401e8 counters:3 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L2MISS : sampled load resolved beyond L2 +event:0x201e4 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_L3MISS : sampled load resolved beyond L3 +event:0x201e0 counters:1 um:zero minimum:1000 name:PM_MRK_DATA_FROM_MEM : sampled load resolved from memory +event:0x301e6 counters:2 um:zero minimum:1000 name:PM_MRK_DERAT_MISS : Erat Miss (TLB Access) All page sizes +event:0x401e4 counters:3 um:zero minimum:1000 name:PM_MRK_DTLB_MISS : sampled Instruction dtlb miss +event:0x401e0 counters:3 um:zero minimum:1000 name:PM_MRK_INST_CMPL : Marked group complete +event:0x101e0 counters:0 um:zero minimum:1000 name:PM_MRK_INST_DISP : The thread has dispatched a randomly sampled marked instruction +event:0x401e6 counters:3 um:zero minimum:1000 name:PM_MRK_INST_FROM_L3MISS : sampled instruction missed icache and came from beyond L3 A Instruction cacheline request for a marked/sampled instruction resolved from a location that was beyond the local L3 cache +event:0x101e4 counters:0 um:zero minimum:1000 name:PM_MRK_L1_ICACHE_MISS : sampled Instruction suffered an icache Miss +event:0x101ea counters:0 um:zero minimum:1000 name:PM_MRK_L1_RELOAD_VALID : Sampled Instruction had a data reload +event:0x201e2 counters:1 um:zero minimum:1000 name:PM_MRK_LD_MISS_L1 : Marked DL1 Demand Miss +event:0x301e2 counters:2 um:zero minimum:1000 name:PM_MRK_ST_CMPL : marked store completed and sent to nest event:0x600f4 counters:5 um:zero minimum:100000 name:PM_RUN_CYC : Run_cycles event:0x500fa counters:4 um:zero minimum:100000 name:PM_RUN_INST_CMPL : Run_Instructions event:0x400f4 counters:3 um:zero minimum:10000 name:PM_RUN_PURR : Run_PURR -- 1.7.1 debian/patches/timer-mode.patch0000664000000000000000000000041012033252217013672 0ustar Patch from Joachim Berdal Haga: Make oprofile be able to start in timer mode (Closes: #548574) --- a/utils/opcontrol +++ b/utils/opcontrol @@ -1472,6 +1472,7 @@ do_param_setup() fi if test "$IS_TIMER" = 1; then + OPROFILED_EVENTS=TIMER_INT return fi debian/patches/aarch64.patch0000664000000000000000000000155112263600142013066 0ustar From b655ccb52182218283a447cceb4f3348b2a84ec9 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 16 Jan 2013 09:30:33 -0600 Subject: [PATCH] Add rmb() definition for AArch64 architecture Signed-off-by: Marcin Juszkiewicz --- libperf_events/operf_utils.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) Index: b/libperf_events/operf_utils.h =================================================================== --- a/libperf_events/operf_utils.h +++ b/libperf_events/operf_utils.h @@ -167,6 +167,11 @@ #define cpu_relax() asm volatile("yield" ::: "memory") #endif +#ifdef __aarch64__ +#define rmb() asm volatile("dmb ld" ::: "memory") +#define cpu_relax() asm volatile("yield" ::: "memory") +#endif + #ifdef __mips__ #include #define rmb() asm volatile( \ debian/patches/static-libbfd.patch0000664000000000000000000000517512307467665014377 0ustar Index: oprofile-0.9.9/configure.ac =================================================================== --- oprofile-0.9.9.orig/configure.ac +++ oprofile-0.9.9/configure.ac @@ -338,7 +338,7 @@ dnl finally restore the original libs setting LIBS="$ORIG_SAVE_LIBS" LIBERTY_LIBS="-liberty $DL_LIB $INTL_LIB" -BFD_LIBS="-lbfd -liberty $DL_LIB $INTL_LIB $Z_LIB" +BFD_LIBS="-liberty $DL_LIB $INTL_LIB $Z_LIB" POPT_LIBS="-lpopt" AC_SUBST(LIBERTY_LIBS) AC_SUBST(BFD_LIBS) Index: oprofile-0.9.9/pp/Makefile.am =================================================================== --- oprofile-0.9.9.orig/pp/Makefile.am +++ oprofile-0.9.9/pp/Makefile.am @@ -13,7 +13,7 @@ bin_PROGRAMS = opreport opannotate opgprof oparchive -LIBS=@POPT_LIBS@ @BFD_LIBS@ +LIBS=@POPT_LIBS@ /usr/lib/libbfd.a @BFD_LIBS@ pp_common = common_option.cpp common_option.h Index: oprofile-0.9.9/libopagent/Makefile.am =================================================================== --- oprofile-0.9.9.orig/libopagent/Makefile.am +++ oprofile-0.9.9/libopagent/Makefile.am @@ -15,7 +15,7 @@ -I ${top_srcdir}/libutil \ @OP_CPPFLAGS@ -libopagent_la_LIBADD = $(BFD_LIBS) +libopagent_la_LIBADD = -lbfd $(BFD_LIBS) # Do not increment the major version for this library except to # intentionally break backward ABI compatability. Use the Index: oprofile-0.9.9/opjitconv/Makefile.am =================================================================== --- oprofile-0.9.9.orig/opjitconv/Makefile.am +++ oprofile-0.9.9/opjitconv/Makefile.am @@ -8,7 +8,7 @@ bin_PROGRAMS = opjitconv -LIBS = @BFD_LIBS@ +LIBS = /usr/lib/libbfd.a @BFD_LIBS@ needed_libs = \ ../libutil/libutil.a Index: oprofile-0.9.9/m4/binutils.m4 =================================================================== --- oprofile-0.9.9.orig/m4/binutils.m4 +++ oprofile-0.9.9/m4/binutils.m4 @@ -9,16 +9,12 @@ AC_CHECK_FUNCS(xmemdup) AC_CHECK_LIB(dl, dlopen, LIBS="$LIBS -ldl"; DL_LIB="-ldl", DL_LIB="") AC_CHECK_LIB(intl, main, LIBS="$LIBS -lintl"; INTL_LIB="-lintl", INTL_LIB="") +AC_CHECK_LIB(z, compress, LIBS="$LIBS -lz"; Z_LIB="-lz", Z_LIB="") -AC_CHECK_LIB(bfd, bfd_openr, LIBS="-lbfd $LIBS"; Z_LIB="", - [AC_CHECK_LIB(z, compress, -dnl Use a different bfd function here so as not to use cached result from above - [AC_CHECK_LIB(bfd, bfd_fdopenr, LIBS="-lbfd -lz $LIBS"; Z_LIB="-lz", - [AC_MSG_ERROR([bfd library not found])], -lz) - ], - [AC_MSG_ERROR([libz library not found; required by libbfd])]) - ] -) +lib=/usr/lib/libbfd.a +LIBS="$lib $LIBS" +AC_CHECK_FUNCS(bfd_close, BFD_LIB="$lib", + [AC_MSG_ERROR([libfd library not found])]) AC_LANG_PUSH(C) # Determine if bfd_get_synthetic_symtab macro is available debian/patches/series0000664000000000000000000000030012317636675012045 0ustar timer-mode.patch shell-interpreter.patch static-libbfd.patch changelog-move-to-git-log.patch aarch64.patch ppc64el.diff op-POWER8.patch Fix-up-event-codes-for-marked-architected-events.patch debian/patches/op-POWER8.patch0000664000000000000000000000175712307424177013261 0ustar Author: Maynard Johnson Date: Tue Feb 4 08:27:10 2014 -0600 Description: 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 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 @@ -306,6 +306,9 @@ static op_cpu _get_ppc64_cpu_type(void) for (i = 0; i < (int)len ; i++) cpu_name_lowercase[i] = tolower(cpu_name[i]); + 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); debian/patches/shell-interpreter.patch0000664000000000000000000000032412033252217015304 0ustar Fix shell interpreter --- a/utils/opcontrol +++ b/utils/opcontrol @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # opcontrol is a script to control OProfile # opcontrol --help and opcontrol --list-events have info debian/patches/ppc64el.diff0000664000000000000000000013161112263763450012741 0ustar Index: b/config.guess =================================================================== --- a/config.guess +++ b/config.guess @@ -1,14 +1,12 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 -# Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2009-11-20' +timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -17,26 +15,22 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Originally written by Per Bothner. Please send patches (context -# diff format) to and include a ChangeLog -# entry. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). # -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. +# Originally written by Per Bothner. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD +# +# Please send patches with a ChangeLog entry to config-patches@gnu.org. + me=`echo "$0" | sed -e 's,.*/,,'` @@ -56,8 +50,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -139,12 +132,33 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward @@ -180,7 +194,7 @@ fi ;; *) - os=netbsd + os=netbsd ;; esac # The OS release @@ -201,6 +215,10 @@ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} @@ -223,7 +241,7 @@ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on @@ -269,7 +287,10 @@ # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit ;; + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead @@ -295,12 +316,12 @@ echo s390-ibm-zvmoe exit ;; *:OS400:*:*) - echo powerpc-ibm-os400 + echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) + arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) @@ -394,23 +415,23 @@ # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; @@ -480,8 +501,8 @@ echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ @@ -494,7 +515,7 @@ else echo i586-dg-dgux${UNAME_RELEASE} fi - exit ;; + exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; @@ -551,7 +572,7 @@ echo rs6000-ibm-aix3.2 fi exit ;; - *:AIX:*:[456]) + *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 @@ -594,52 +615,52 @@ 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac + esac ;; + esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa @@ -730,22 +751,22 @@ exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd - exit ;; + exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi - exit ;; + exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd - exit ;; + exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd - exit ;; + exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd - exit ;; + exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; @@ -769,14 +790,14 @@ exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} @@ -788,30 +809,35 @@ echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) - case ${UNAME_MACHINE} in - pc98) - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + UNAME_PROCESSOR=`/usr/bin/uname -p` + case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; + echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; + *:MINGW64*:*) + echo ${UNAME_MACHINE}-pc-mingw64 + exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; + i*:MSYS*:*) + echo ${UNAME_MACHINE}-pc-msys + exit ;; i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) - case ${UNAME_MACHINE} in + case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; @@ -848,15 +874,22 @@ exit ;; *:GNU:*:*) # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; + aarch64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + aarch64_be:Linux:*:*) + UNAME_MACHINE=aarch64_be + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; @@ -866,52 +899,56 @@ EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; - esac + esac objdump --private-headers /bin/sh | grep -q ld.so.1 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + if test "$?" = 0 ; then LIBC="gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arc:Linux:*:* | arceb:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} else - echo ${UNAME_MACHINE}-unknown-linux-gnueabi + if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_PCS_VFP + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf + fi fi exit ;; avr32*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; cris:Linux:*:*) - echo cris-axis-linux-gnu + echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; crisv32:Linux:*:*) - echo crisv32-axis-linux-gnu + echo ${UNAME_MACHINE}-axis-linux-${LIBC} exit ;; frv:Linux:*:*) - echo frv-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + hexagon:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:Linux:*:*) - LIBC=gnu - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" + echo ${UNAME_MACHINE}-pc-linux-${LIBC} exit ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build @@ -930,51 +967,63 @@ #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } ;; + or1k:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; or32:Linux:*:*) - echo or32-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; padre:Linux:*:*) - echo sparc-unknown-linux-gnu + echo sparc-unknown-linux-${LIBC} exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu + echo hppa64-unknown-linux-${LIBC} exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; esac exit ;; ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu + echo powerpc64-unknown-linux-${LIBC} exit ;; ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu + echo powerpc-unknown-linux-${LIBC} + exit ;; + ppc64le:Linux:*:*) + echo powerpc64le-unknown-linux-${LIBC} + exit ;; + ppcle:Linux:*:*) + echo powerpcle-unknown-linux-${LIBC} exit ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux + echo ${UNAME_MACHINE}-ibm-linux-${LIBC} exit ;; sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + tile*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; vax:Linux:*:*) - echo ${UNAME_MACHINE}-dec-linux-gnu + echo ${UNAME_MACHINE}-dec-linux-${LIBC} exit ;; x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; xtensa*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. @@ -983,11 +1032,11 @@ echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. + # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) @@ -1019,7 +1068,7 @@ fi exit ;; i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. + # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; @@ -1047,13 +1096,13 @@ exit ;; pc:*:*:*) # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i586. + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp - exit ;; + exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; @@ -1088,8 +1137,8 @@ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ @@ -1132,10 +1181,10 @@ echo ns32k-sni-sysv fi exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm @@ -1161,11 +1210,11 @@ exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} + echo mips-nec-sysv${UNAME_RELEASE} else - echo mips-unknown-sysv${UNAME_RELEASE} + echo mips-unknown-sysv${UNAME_RELEASE} fi - exit ;; + exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; @@ -1178,6 +1227,9 @@ BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; + x86_64:Haiku:*:*) + echo x86_64-unknown-haiku + exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; @@ -1204,19 +1256,21 @@ exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - case $UNAME_PROCESSOR in - i386) - eval $set_cc_for_build - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then - if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - UNAME_PROCESSOR="x86_64" - fi - fi ;; - unknown) UNAME_PROCESSOR=powerpc ;; - esac + eval $set_cc_for_build + if test "$UNAME_PROCESSOR" = unknown ; then + UNAME_PROCESSOR=powerpc + fi + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + case $UNAME_PROCESSOR in + i386) UNAME_PROCESSOR=x86_64 ;; + powerpc) UNAME_PROCESSOR=powerpc64 ;; + esac + fi + fi echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) @@ -1230,7 +1284,10 @@ *:QNX:*:4*) echo i386-pc-qnx exit ;; - NSE-?:NONSTOP_KERNEL:*:*) + NEO-?:NONSTOP_KERNEL:*:*) + echo neo-tandem-nsk${UNAME_RELEASE} + exit ;; + NSE-*:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) @@ -1275,13 +1332,13 @@ echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} + echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; @@ -1299,11 +1356,11 @@ i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; + x86_64:VMkernel:*:*) + echo ${UNAME_MACHINE}-unknown-esx + exit ;; esac -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - eval $set_cc_for_build cat >$dummy.c < printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 - "4" + "4" #else - "" + "" #endif - ); exit (0); + ); exit (0); #endif #endif Index: b/config.sub =================================================================== --- a/config.sub +++ b/config.sub @@ -1,38 +1,31 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 -# Free Software Foundation, Inc. - -timestamp='2009-11-20' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# Copyright 1992-2013 Free Software Foundation, Inc. + +timestamp='2013-08-10' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program; if not, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). -# Please send patches to . Submit a context -# diff and a properly formatted GNU ChangeLog entry. +# Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. @@ -75,8 +68,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -123,13 +115,18 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] @@ -152,12 +149,12 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray | -microblaze) + -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; - -bluegene*) - os=-cnk + -bluegene*) + os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= @@ -173,10 +170,10 @@ os=-chorusos basic_machine=$1 ;; - -chorusrdb) - os=-chorusrdb + -chorusrdb) + os=-chorusrdb basic_machine=$1 - ;; + ;; -hiux*) os=-hiuxwe2 ;; @@ -221,6 +218,12 @@ -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; -lynx*) os=-lynxos ;; @@ -245,20 +248,27 @@ # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ + | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | be32 | be64 \ | bfin \ - | c4x | clipper \ + | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ + | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ + | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore | mep | metag \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -276,34 +286,45 @@ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ - | nios | nios2 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ - | or32 \ + | open8 \ + | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ - | rx \ + | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ - | v850 | v850e \ + | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ - | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ + | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; - m6811 | m68hc11 | m6812 | m68hc12 | picochip) - # Motorola 68HC11/12. + c54x) + basic_machine=tic54x-unknown + ;; + c55x) + basic_machine=tic55x-unknown + ;; + c6x) + basic_machine=tic6x-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; @@ -313,6 +334,21 @@ basic_machine=mt-unknown ;; + strongarm | thumb | xscale) + basic_machine=arm-unknown + ;; + xgate) + basic_machine=$basic_machine-unknown + os=-none + ;; + xscaleeb) + basic_machine=armeb-unknown + ;; + + xscaleel) + basic_machine=armel-unknown + ;; + # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. @@ -327,25 +363,30 @@ # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ + | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ + | be32-* | be64-* \ | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | craynv-* | cydra-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* \ + | c8051-* | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ + | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \ + | microblaze-* | microblazeel-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ @@ -363,29 +404,34 @@ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipsr5900-* | mipsr5900el-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ - | nios-* | nios2-* \ + | nds32-* | nds32le-* | nds32be-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \ | none-* | np1-* | ns16k-* | ns32k-* \ + | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ - | romp-* | rs6000-* | rx-* \ + | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ + | tahoe-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tile*-* \ | tron-* \ | ubicom32-* \ - | v850-* | v850e-* | vax-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ + | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ + | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) @@ -410,7 +456,7 @@ basic_machine=a29k-amd os=-udi ;; - abacus) + abacus) basic_machine=abacus-unknown ;; adobe68k) @@ -480,11 +526,20 @@ basic_machine=powerpc-ibm os=-cnk ;; + c54x-*) + basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c55x-*) + basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + c6x-*) + basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; c90) basic_machine=c90-cray os=-unicos ;; - cegcc) + cegcc) basic_machine=arm-unknown os=-cegcc ;; @@ -516,7 +571,7 @@ basic_machine=craynv-cray os=-unicosmp ;; - cr16) + cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; @@ -674,7 +729,6 @@ i370-ibm* | ibm*) basic_machine=i370-ibm ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 @@ -732,11 +786,15 @@ basic_machine=ns32k-utek os=-sysv ;; - microblaze) + microblaze*) basic_machine=microblaze-xilinx ;; + mingw64) + basic_machine=x86_64-pc + os=-mingw64 + ;; mingw32) - basic_machine=i386-pc + basic_machine=i686-pc os=-mingw32 ;; mingw32ce) @@ -771,10 +829,18 @@ ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; + msys) + basic_machine=i686-pc + os=-msys + ;; mvs) basic_machine=i370-ibm os=-mvs ;; + nacl) + basic_machine=le32-unknown + os=-nacl + ;; ncr3000) basic_machine=i486-ncr os=-sysv4 @@ -839,6 +905,12 @@ np1) basic_machine=np1-gould ;; + neo-tandem) + basic_machine=neo-tandem + ;; + nse-tandem) + basic_machine=nse-tandem + ;; nsr-tandem) basic_machine=nsr-tandem ;; @@ -921,9 +993,10 @@ ;; power) basic_machine=power-ibm ;; - ppc) basic_machine=powerpc-unknown + ppc | ppcbe) basic_machine=powerpc-unknown ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ppc-* | ppcbe-*) + basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown @@ -948,7 +1021,11 @@ basic_machine=i586-unknown os=-pw32 ;; - rdos) + rdos | rdos64) + basic_machine=x86_64-pc + os=-rdos + ;; + rdos32) basic_machine=i386-pc os=-rdos ;; @@ -1017,6 +1094,9 @@ basic_machine=i860-stratus os=-sysv4 ;; + strongarm-* | thumb-*) + basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; sun2) basic_machine=m68000-sun ;; @@ -1073,20 +1153,8 @@ basic_machine=t90-cray os=-unicos ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff - ;; tile*) - basic_machine=tile-unknown + basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) @@ -1156,6 +1224,9 @@ xps | xps100) basic_machine=xps100-honeywell ;; + xscale-* | xscalee[bl]-*) + basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` + ;; ymp) basic_machine=ymp-cray os=-unicos @@ -1253,11 +1324,11 @@ if [ x"$os" != x"" ] then case $os in - # First match some system type aliases - # that might get confused with valid system types. + # First match some system type aliases + # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. - -auroraux) - os=-auroraux + -auroraux) + os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` @@ -1281,20 +1352,21 @@ -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ - | -sym* | -kopensolaris* \ + | -sym* | -kopensolaris* | -plan9* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ - | -openbsd* | -solidbsd* \ + | -bitrig* | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ @@ -1341,7 +1413,7 @@ -opened*) os=-openedition ;; - -os400*) + -os400*) os=-os400 ;; -wince*) @@ -1390,7 +1462,7 @@ -sinix*) os=-sysv4 ;; - -tpf*) + -tpf*) os=-tpf ;; -triton*) @@ -1426,15 +1498,14 @@ -aros*) os=-aros ;; - -kaos*) - os=-kaos - ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; + -nacl*) + ;; -none) ;; *) @@ -1457,10 +1528,10 @@ # system, and we'll never get to this point. case $basic_machine in - score-*) + score-*) os=-elf ;; - spu-*) + spu-*) os=-elf ;; *-acorn) @@ -1472,8 +1543,23 @@ arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff + c4x-* | tic4x-*) + os=-coff + ;; + c8051-*) + os=-elf + ;; + hexagon-*) + os=-elf + ;; + tic54x-*) + os=-coff + ;; + tic55x-*) + os=-coff + ;; + tic6x-*) + os=-coff ;; # This must come before the *-dec entry. pdp10-*) @@ -1493,14 +1579,11 @@ ;; m68000-sun) os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 ;; m68*-cisco) os=-aout ;; - mep-*) + mep-*) os=-elf ;; mips*-cisco) @@ -1509,6 +1592,9 @@ mips*-*) os=-elf ;; + or1k-*) + os=-elf + ;; or32-*) os=-coff ;; @@ -1527,7 +1613,7 @@ *-ibm) os=-aix ;; - *-knuth) + *-knuth) os=-mmixware ;; *-wec) Index: b/m4/libtool.m4 =================================================================== --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1281,7 +1281,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_i386" ;; - ppc64-*linux*|powerpc64-*linux*) + powerpc64le-*) + LD="${LD-ld} -m elf32lppclinux" + ;; + powerpc64-*) LD="${LD-ld} -m elf32ppclinux" ;; s390x-*linux*) @@ -1300,7 +1303,10 @@ x86_64-*linux*) LD="${LD-ld} -m elf_x86_64" ;; - ppc*-*linux*|powerpc*-*linux*) + powerpcle-*) + LD="${LD-ld} -m elf64lppc" + ;; + powerpc-*) LD="${LD-ld} -m elf64ppc" ;; s390*-*linux*|s390*-*tpf*) diff -paur oprofile-0.9.9/configure.ac oprofile-0.9.9_ppc64le/configure.ac --- oprofile-0.9.9/configure.ac 2013-07-29 10:55:26.000000000 -0500 +++ oprofile-0.9.9_ppc64le/configure.ac 2014-01-09 16:12:44.202125082 -0600 @@ -184,7 +184,7 @@ AC_DEFINE_UNQUOTED(HAVE_PERF_EVENTS, $HA AC_CANONICAL_HOST if test "$HAVE_PERF_EVENTS" = "1"; then PFM_LIB= - if test "$host_cpu" = "powerpc64"; then + if test "$host_cpu" = "powerpc64le" -o "$host_cpu" = "powerpc64"; then AC_CHECK_HEADER(perfmon/pfmlib.h,,[AC_MSG_ERROR([pfmlib.h not found; usually provided in 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', Only in oprofile-0.9.9_ppc64le: configure.ac.orig diff -paur oprofile-0.9.9/libop/op_cpu_type.c oprofile-0.9.9_ppc64le/libop/op_cpu_type.c --- oprofile-0.9.9/libop/op_cpu_type.c 2013-07-29 10:55:07.000000000 -0500 +++ oprofile-0.9.9_ppc64le/libop/op_cpu_type.c 2014-01-09 16:08:26.516094402 -0600 @@ -592,7 +592,8 @@ static op_cpu __get_cpu_type_alt_method( fnmatch("i?86", uname_info.machine, 0) == 0) { return _get_x86_64_cpu_type(); } - if (strncmp(uname_info.machine, "ppc64", 5) == 0) { + if ((strncmp(uname_info.machine, "ppc64", 5) == 0) || + (strncmp(uname_info.machine, "ppc64le", 7) == 0)) { return _get_ppc64_cpu_type(); } if (strncmp(uname_info.machine, "arm", 3) == 0) { diff -paur oprofile-0.9.9/libutil++/bfd_support.cpp oprofile-0.9.9_ppc64le/libutil++/bfd_support.cpp --- oprofile-0.9.9/libutil++/bfd_support.cpp 2013-07-29 10:55:06.000000000 -0500 +++ oprofile-0.9.9_ppc64le/libutil++/bfd_support.cpp 2014-01-09 16:08:26.519094393 -0600 @@ -634,9 +634,7 @@ void bfd_info::translate_debuginfo_syms( bool bfd_info::get_synth_symbols() { extern const bfd_target bfd_elf64_powerpc_vec; - extern const bfd_target bfd_elf64_powerpcle_vec; - bool is_elf64_powerpc_target = (abfd->xvec == &bfd_elf64_powerpc_vec) - || (abfd->xvec == &bfd_elf64_powerpcle_vec); + bool is_elf64_powerpc_target = (abfd->xvec == &bfd_elf64_powerpc_vec); if (!is_elf64_powerpc_target) return false; debian/patches/changelog-move-to-git-log.patch0000664000000000000000000000043412033252220016503 0ustar --- /dev/null +++ b/ChangeLog @@ -0,0 +1,7 @@ +2011-02-25 Maynard Johnson + + From this date forward, ChangeLog entries will not + be necessary, since 'git log' can now be used to show + changes in the repository. + +See ChangeLog-2010 for earlier changelogs. debian/README.Debian0000664000000000000000000000074112030255355011233 0ustar If you are running Ubuntu and wish to gather profiling information about your kernel, you will need to install the linux-image-debug package corresponding to your running kernel version. Those packages are large, and currently not available through the normal Ubuntu package repositories. Instead, please go to http://ddebs.ubuntu.com/pool/main/l/linux/ and download the linux-image-debug corresponding to your running kernel. The *.ddeb has to be installed via dpkg or gdebi.