2007-01-12 01:32:05 +01:00
|
|
|
|
#
|
2008-07-19 00:32:25 +02:00
|
|
|
|
# spec file for package oprofile (Version 0.9.4)
|
2007-01-12 01:32:05 +01:00
|
|
|
|
#
|
2008-07-11 21:26:54 +02:00
|
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-12 01:32:05 +01:00
|
|
|
|
#
|
2008-10-23 12:27:14 +02:00
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2007-01-12 01:32:05 +01:00
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
2008-07-11 21:26:54 +02:00
|
|
|
|
|
2007-01-12 01:32:05 +01:00
|
|
|
|
|
|
|
|
|
Name: oprofile
|
2008-07-19 00:32:25 +02:00
|
|
|
|
BuildRequires: binutils-devel java2-devel-packages libxslt popt-devel qt3-devel update-desktop-files
|
2007-10-12 01:06:51 +02:00
|
|
|
|
Url: http://oprofile.sourceforge.net/
|
2007-07-04 23:42:58 +02:00
|
|
|
|
License: GPL v2 or later
|
2007-01-12 01:32:05 +01:00
|
|
|
|
Group: Development/Tools/Other
|
2007-10-12 01:06:51 +02:00
|
|
|
|
AutoReqProv: on
|
2008-07-19 00:32:25 +02:00
|
|
|
|
PreReq: /usr/sbin/groupadd /usr/sbin/useradd
|
|
|
|
|
Version: 0.9.4
|
2008-10-23 12:27:14 +02:00
|
|
|
|
Release: 46
|
2007-01-12 01:32:05 +01:00
|
|
|
|
Summary: System-Wide Profiler for Linux Systems
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-07-18 22:17:43 +02:00
|
|
|
|
Source: %{name}-%{version}.tar.gz
|
2007-01-12 01:32:05 +01:00
|
|
|
|
Source1: %{name}.desktop
|
2007-07-18 22:17:43 +02:00
|
|
|
|
Patch: %{name}-%{version}.diff
|
2007-01-12 01:32:05 +01:00
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
OProfile is a system-wide profiler for Linux systems, capable of
|
|
|
|
|
profiling all running code at low overhead. OProfile is released under
|
|
|
|
|
the GNU GPL.
|
|
|
|
|
|
|
|
|
|
It consists of a kernel module and a daemon for collecting sample data,
|
|
|
|
|
and several post-profiling tools for turning data into information.
|
|
|
|
|
|
|
|
|
|
OProfile leverages the CPU hardware performance counters 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).
|
|
|
|
|
|
|
|
|
|
OProfile is currently in alpha status; however it has proven stable
|
|
|
|
|
over a large number of differing configurations. As always, there is no
|
|
|
|
|
warranty.
|
|
|
|
|
|
|
|
|
|
This is the package containing the userspace tools.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2008-07-19 00:32:25 +02:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
|
Philippe Elie <phil_e@clubinternet.fr>
|
|
|
|
|
Dave Jones <davej@suse.de>
|
|
|
|
|
Bob Montgomery <bobm@fc.hp.com>
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: System-Wide Profiler for Linux Systems
|
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
License: GPL v2 or later; LGPL v2.1 or later
|
|
|
|
|
AutoReqProv: on
|
|
|
|
|
Requires: oprofile = %{version}-%{release} binutils-devel
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
OProfile is a system-wide profiler for Linux systems, capable of
|
|
|
|
|
profiling all running code at low overhead. OProfile is released under
|
|
|
|
|
the GNU GPL.
|
|
|
|
|
|
|
|
|
|
It consists of a kernel module and a daemon for collecting sample data,
|
|
|
|
|
and several post-profiling tools for turning data into information.
|
|
|
|
|
|
|
|
|
|
OProfile leverages the CPU hardware performance counters 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).
|
|
|
|
|
|
|
|
|
|
OProfile is currently in alpha status; however it has proven stable
|
|
|
|
|
over a large number of differing configurations. As always, there is no
|
|
|
|
|
warranty.
|
|
|
|
|
|
2008-10-23 12:27:14 +02:00
|
|
|
|
This package contains the files needed to develop JIT agents for other
|
|
|
|
|
virtual machines.
|
2008-07-19 00:32:25 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-12 01:32:05 +01:00
|
|
|
|
Authors:
|
|
|
|
|
--------
|
|
|
|
|
John Levon <moz@compsoc.man.ac.uk>
|
|
|
|
|
Philippe Elie <phil_e@clubinternet.fr>
|
|
|
|
|
Dave Jones <davej@suse.de>
|
|
|
|
|
Bob Montgomery <bobm@fc.hp.com>
|
|
|
|
|
|
|
|
|
|
%prep
|
2007-07-18 22:17:43 +02:00
|
|
|
|
%setup -q
|
2007-01-12 01:32:05 +01:00
|
|
|
|
%patch
|
|
|
|
|
|
|
|
|
|
%build
|
2008-07-11 21:26:54 +02:00
|
|
|
|
autoreconf -fi
|
2007-01-12 01:32:05 +01:00
|
|
|
|
./configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
|
2008-07-19 00:32:25 +02:00
|
|
|
|
--prefix=/usr --mandir=%{_mandir} --libdir=%{_libdir} \
|
|
|
|
|
--with-kernel-support --with-java=%_libdir/jvm/java \
|
2007-01-12 01:32:05 +01:00
|
|
|
|
--with-qt-libraries=%_libdir/qt3/%_lib
|
|
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
|
|
%install
|
2007-06-18 18:27:23 +02:00
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT htmldir=%{_docdir}/oprofile install
|
2007-01-12 01:32:05 +01:00
|
|
|
|
%suse_update_desktop_file -i %name Development Profiling
|
|
|
|
|
|
2008-07-19 00:32:25 +02:00
|
|
|
|
%pre
|
|
|
|
|
/usr/sbin/groupadd -r oprofile 2>/dev/null || :
|
|
|
|
|
/usr/sbin/useradd -r -g oprofile -d /var/lib/empty -s /bin/false -c "Special user account to be used by OProfile" oprofile 2>/dev/null || :
|
|
|
|
|
|
2008-10-23 12:27:14 +02:00
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
2007-01-12 01:32:05 +01:00
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
/usr/bin/*
|
|
|
|
|
/usr/share/applications/*.desktop
|
|
|
|
|
/usr/share/oprofile
|
2008-10-23 12:27:14 +02:00
|
|
|
|
%{_libdir}/*.so*
|
|
|
|
|
%exclude %{_libdir}/libopagent.so
|
2007-06-18 18:27:23 +02:00
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
%doc doc/oprofile.html doc/internals.html doc/opreport.xsd
|
|
|
|
|
%doc COPYING README TODO ChangeLog
|
2007-11-26 20:58:01 +01:00
|
|
|
|
|
2008-07-19 00:32:25 +02:00
|
|
|
|
%files devel
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
/usr/include/*
|
|
|
|
|
%doc doc/op-jit-devel.html
|
2008-10-23 12:27:14 +02:00
|
|
|
|
%{_libdir}/*.*a
|
|
|
|
|
%{_libdir}/libopagent.so
|
2008-07-19 00:32:25 +02:00
|
|
|
|
|
2007-06-18 18:27:23 +02:00
|
|
|
|
%changelog
|
2008-10-23 12:27:14 +02:00
|
|
|
|
* Tue Oct 21 2008 schwab@suse.de
|
|
|
|
|
- Fix jvm agent libs.
|
2008-07-19 00:32:25 +02:00
|
|
|
|
* Fri Jul 18 2008 schwab@suse.de
|
|
|
|
|
- Update to oprofile 0.9.4.
|
|
|
|
|
http://oprofile.sourceforge.net/release-notes/oprofile-0.9.4
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Fri Jul 11 2008 schwab@suse.de
|
|
|
|
|
- Update binutils check.
|
|
|
|
|
* Mon Nov 26 2007 schwab@suse.de
|
2007-11-26 20:58:01 +01:00
|
|
|
|
- Fix open call.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Oct 16 2007 schwab@suse.de
|
2007-10-16 18:23:47 +02:00
|
|
|
|
- Fix event mapping on 970MP [#333487].
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu Oct 11 2007 schwab@suse.de
|
2007-10-12 01:06:51 +02:00
|
|
|
|
- Fix missing includes.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Jul 17 2007 schwab@suse.de
|
2007-07-18 22:17:43 +02:00
|
|
|
|
- Update to oprofile 0.9.3.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed Jul 04 2007 schwab@suse.de
|
2007-07-04 23:42:58 +02:00
|
|
|
|
- Update to oprofile 0.9.3-rc2.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Jun 18 2007 schwab@suse.de
|
2007-06-18 18:27:23 +02:00
|
|
|
|
- Update to oprofile 0.9.3-rc1.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu Jan 11 2007 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Add binutils-devel to BuildRequires.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Sep 18 2006 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to oprofile 0.9.2 (no summary available).
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Fri Aug 18 2006 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Avoid crash in find_nearest_line [#193622].
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed May 31 2006 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Fix invalid string operation.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu May 04 2006 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Fix last change.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Feb 27 2006 schwab@suse.de
|
2007-10-12 01:06:51 +02:00
|
|
|
|
- Add events for Power5+ [#152494].
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Fri Jan 27 2006 mls@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- converted neededforbuild to BuildRequires
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed Jan 25 2006 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Integrate fixes for ppc64 events and groups [#130910, #137665].
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Dec 12 2005 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to oprofile 0.9.1.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Nov 08 2005 dmueller@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- don't build as root
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed Sep 28 2005 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Fix invalid C++.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed Jul 06 2005 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Unpack compressed vmlinux [#52767].
|
|
|
|
|
- Use RPM_OPT_FLAGS.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Jun 07 2005 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to oprofile 0.9.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu Mar 24 2005 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to oprofile 0.8.2.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu Nov 04 2004 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to oprofile 0.8.1.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Sat Sep 04 2004 schwab@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to oprofile 0.8.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Jun 28 2004 skh@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- more fixes for #40468
|
|
|
|
|
- fixed print statement in op_help.c
|
|
|
|
|
- more power 4 events
|
|
|
|
|
- fixed incorrect event counter settings for power 4
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Jun 08 2004 skh@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to fix for #40468: use correct event numbers for power5
|
|
|
|
|
events.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed May 26 2004 skh@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Added default CYCLES event to the Power 4 and Power 5 event
|
|
|
|
|
files. (#40468)
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue May 25 2004 skh@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- add user space support for ppc64 (#40468)
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Sun May 09 2004 ak@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Increase minimum count on P4 to 5000 for all events
|
|
|
|
|
- Automatically add the module path of the current kernel to oprofpp
|
|
|
|
|
(#36825)
|
|
|
|
|
- Fix 64bit uncleanness in symbol resolution (#36825)
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Sat Apr 10 2004 aj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Remove kernel-source requirement.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed Feb 04 2004 skh@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Updated to version 0.7.1
|
|
|
|
|
- Removed subpackage km_oprofile (it is part of the main kernel
|
|
|
|
|
distribution as of kernel 2.6)
|
|
|
|
|
- Don't build as root.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Oct 06 2003 ak@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Check if APIC is enabled instead of crashing (#31774)
|
|
|
|
|
Needs updated kernel.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Sat Aug 16 2003 adrian@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- add desktop file
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu Jul 31 2003 skh@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Updated to 0.6
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Fri Jun 20 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Up to 0.5.4
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Fri Jun 13 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Package all dirs
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed Jun 04 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Make sure we get the right location for qt.
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed May 28 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to 0.5.3
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue May 13 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Use %%defattr
|
|
|
|
|
- Package forgotten files
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Mar 31 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to 0.5.2 including:
|
|
|
|
|
<EFBFBD> Docu overhaul
|
|
|
|
|
<EFBFBD> Feature additions
|
|
|
|
|
- Bzip2'ed sources
|
|
|
|
|
- Folded both automake patches into one patch
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Mar 11 2003 kukuk@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Don't call depmod
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Mar 11 2003 ro@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- remove k_deflt from neededforbuild (cycle)
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Mar 10 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Fix typo
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Sat Mar 08 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- A go at fixing km_oprofile
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Mar 03 2003 duwe@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- split off km_oprofile
|
|
|
|
|
- tiny version update includes patches
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Mon Feb 24 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Add patch from davej to make it not crash the box
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Sat Feb 15 2003 adrian@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- minor dependency clean up
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Fri Feb 07 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Really fix build on x86_64
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Feb 04 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Fix build on x86_64
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Tue Feb 04 2003 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to oprofile 0.5:
|
|
|
|
|
<EFBFBD> Pentium IV support, including support for HyperThreading, is
|
|
|
|
|
supported for 2.5 kernels (currently only in the -mm patchset).
|
|
|
|
|
<EFBFBD> Timer interrupt support for PA-RISC, ppc64, and sparc64 in 2.5
|
|
|
|
|
kernels is available. Userspace Alpha support has been added.
|
|
|
|
|
<EFBFBD> HyperThreading support for Pentium IV on 2.4 kernels is not yet
|
|
|
|
|
available. Note that PA-RISC and Alpha require kernel patches
|
|
|
|
|
not yet available in a released kernel tree.
|
|
|
|
|
<EFBFBD> Support for the IA-64 architecture has been added for 2.4 kernels.
|
|
|
|
|
<EFBFBD> OProfile's userspace now works correctly on all 64-bit platforms.
|
|
|
|
|
<EFBFBD> A new script, opcontrol, has been added to unify control of the
|
|
|
|
|
OProfile daemon and sample files. On 2.5, this allows separate
|
|
|
|
|
daemon startup and starting/stopping profiling.
|
|
|
|
|
<EFBFBD> Fixed upstream to compile with gcc 3.3
|
|
|
|
|
<EFBFBD> Several bugfixes
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Wed Jan 29 2003 ro@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- fix build with gcc-3.3 (sluggish c++)
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu Nov 07 2002 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Update to 0.4 which now has kernel 2.5 support
|
2008-07-11 21:26:54 +02:00
|
|
|
|
* Thu Sep 12 2002 mmj@suse.de
|
2007-01-12 01:32:05 +01:00
|
|
|
|
- Initial package, version 0.3 (x86 only for now)
|