OBS User unknown 2007-01-12 00:32:05 +00:00 committed by Git OBS Bridge
commit 5ad216316e
9 changed files with 602 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

36
doc-update.diff Normal file
View File

@ -0,0 +1,36 @@
diff -paur ../sles10_src/doc/opcontrol.1.in ./doc/opcontrol.1.in
--- ../sles10_src/doc/opcontrol.1.in 2006-11-22 16:03:20.000000000 -0600
+++ ./doc/opcontrol.1.in 2006-11-22 16:09:50.000000000 -0600
@@ -104,8 +104,9 @@ options and 'none' turns off separation.
.TP
.BI "--callgraph=#depth"
Enable callgraph sample collection with a maximum depth. Use 0 to disable
-callgraph profiling. This option is currently only usable on x86, using a
-2.6+ kernel with callgraph support enabled.
+callgraph profiling. This option is available on x86 using a
+2.6+ kernel with callgraph support enabled. It is also available
+on PowerPC using a 2.6.17+ kernel.
.br
.TP
.BI "--image="[name,name...|"all"]
diff -paur ../sles10_src/doc/oprofile.xml ./doc/oprofile.xml
--- ../sles10_src/doc/oprofile.xml 2006-11-22 16:03:20.000000000 -0600
+++ ./doc/oprofile.xml 2006-11-22 16:05:33.000000000 -0600
@@ -619,8 +619,15 @@ is required. These settings are stored i
<term><option>--callgraph=</option>#depth</term>
<listitem><para>
Enable call-graph sample collection with a maximum depth. Use 0 to disable
- callgraph profiling. Currently this requires a recent
- 2.6 kernel, and x86.
+ callgraph profiling. NOTE: Callgraph support is available on a limited
+ number of platforms at this time; for example:
+ <para>
+ <itemizedlist>
+ <listitem><para>x86 with recent 2.6 kernel</para></listitem>
+ <listitem><para>ARM with recent 2.6 kernel</para></listitem>
+ <listitem><para>PowerPC with 2.6.17 kernel</para></listitem>
+ </itemizedlist>
+ </para>
</para></listitem>
</varlistentry>
<varlistentry>

58
oprofile-0.9.2.diff Normal file
View File

@ -0,0 +1,58 @@
--- libregex/op_regex.cpp
+++ libregex/op_regex.cpp
@@ -282,15 +282,15 @@
string left = line;
left_rule.execute(left);
if (left == line) {
- throw bad_regex("invalid input file: " +
- '"' + line + '"');
+ throw bad_regex("invalid input file: \"" +
+ line + '"');
}
string right = line;
right_rule.execute(right);
if (right == line) {
- throw bad_regex("invalid input file: "
- + '"' + line + '"');
+ throw bad_regex("invalid input file: \""
+ + line + '"');
}
regex.add_pattern(left, right);
@@ -301,8 +301,8 @@
string var_value = line;
var_value_rule.execute(var_value);
if (var_value == line) {
- throw bad_regex("invalid input file: " +
- '"' + line + '"');
+ throw bad_regex("invalid input file: \"" +
+ line + '"');
}
regex.add_definition(var_name, var_value);
--- utils/opcontrol
+++ utils/opcontrol
@@ -452,11 +452,20 @@
return;
fi
+ kernel_file=$FILE_IMAGE
+ case $(file -L $kernel_file) in
+ *"gzip compressed"*)
+ kernel_file=$(mktemp /tmp/opcXXXXXX) || exit 1
+ trap "rm -f $kernel_file" EXIT
+ gzip -cd $FILE_IMAGE > $kernel_file
+ ;;
+ esac
+
# start at the start of .text and then continue to the end
- range_info=`objdump -h $FILE_IMAGE 2>/dev/null | grep " .text "`
+ range_info=`objdump -h $kernel_file 2>/dev/null | grep " .text "`
tmp1=`echo $range_info | awk '{print $4}'`
tmp_length=`echo $range_info | awk '{print $3}'`
- tmp2=`objdump -h $FILE_IMAGE --adjust-vma=0x$tmp_length 2>/dev/null | grep " .text " | awk '{print $4}'`
+ tmp2=`objdump -h $kernel_file --adjust-vma=0x$tmp_length 2>/dev/null | grep " .text " | awk '{print $4}'`
if test -z "$tmp1" -o -z "$tmp2"; then
echo "The specified file $FILE_IMAGE does not seem to be valid" >&2

3
oprofile-0.9.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4b3780ee09efe665a69151c994e0e5f01a56c57338660c18df30916904df83a6
size 741870

259
oprofile.changes Normal file
View File

@ -0,0 +1,259 @@
-------------------------------------------------------------------
Thu Jan 11 11:19:25 CET 2007 - schwab@suse.de
- Add binutils-devel to BuildRequires.
-------------------------------------------------------------------
Mon Sep 18 19:17:15 CEST 2006 - schwab@suse.de
- Update to oprofile 0.9.2 (no summary available).
-------------------------------------------------------------------
Fri Aug 18 15:23:52 CEST 2006 - schwab@suse.de
- Avoid crash in find_nearest_line [#193622].
-------------------------------------------------------------------
Wed May 31 11:18:29 CEST 2006 - schwab@suse.de
- Fix invalid string operation.
-------------------------------------------------------------------
Thu May 4 14:52:58 CEST 2006 - schwab@suse.de
- Fix last change.
-------------------------------------------------------------------
Mon Feb 27 18:31:44 CET 2006 - schwab@suse.de
- Add events for power5+ [#152494].
-------------------------------------------------------------------
Fri Jan 27 02:18:47 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Wed Jan 25 18:58:19 CET 2006 - schwab@suse.de
- Integrate fixes for ppc64 events and groups [#130910, #137665].
-------------------------------------------------------------------
Mon Dec 12 15:06:45 CET 2005 - schwab@suse.de
- Update to oprofile 0.9.1.
-------------------------------------------------------------------
Tue Nov 8 14:40:30 CET 2005 - dmueller@suse.de
- don't build as root
-------------------------------------------------------------------
Wed Sep 28 21:25:23 CEST 2005 - schwab@suse.de
- Fix invalid C++.
-------------------------------------------------------------------
Wed Jul 6 15:02:31 CEST 2005 - schwab@suse.de
- Unpack compressed vmlinux [#52767].
- Use RPM_OPT_FLAGS.
-------------------------------------------------------------------
Tue Jun 7 15:58:48 CEST 2005 - schwab@suse.de
- Update to oprofile 0.9.
-------------------------------------------------------------------
Thu Mar 24 10:49:32 CET 2005 - schwab@suse.de
- Update to oprofile 0.8.2.
-------------------------------------------------------------------
Thu Nov 4 15:16:52 CET 2004 - schwab@suse.de
- Update to oprofile 0.8.1.
-------------------------------------------------------------------
Fri Sep 3 23:04:58 CEST 2004 - schwab@suse.de
- Update to oprofile 0.8.
-------------------------------------------------------------------
Mon Jun 28 14:25:15 CEST 2004 - skh@suse.de
- more fixes for #40468
- fixed print statement in op_help.c
- more power 4 events
- fixed incorrect event counter settings for power 4
-------------------------------------------------------------------
Tue Jun 8 15:44:19 CEST 2004 - skh@suse.de
- Update to fix for #40468: use correct event numbers for power5
events.
-------------------------------------------------------------------
Wed May 26 16:19:40 CEST 2004 - skh@suse.de
- Added default CYCLES event to the Power 4 and Power 5 event
files. (#40468)
-------------------------------------------------------------------
Tue May 25 15:38:05 CEST 2004 - skh@suse.de
- add user space support for ppc64 (#40468)
-------------------------------------------------------------------
Sun May 9 18:02:14 CEST 2004 - ak@suse.de
- 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)
-------------------------------------------------------------------
Sat Apr 10 18:12:25 CEST 2004 - aj@suse.de
- Remove kernel-source requirement.
-------------------------------------------------------------------
Wed Feb 4 19:47:37 CET 2004 - skh@suse.de
- 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.
-------------------------------------------------------------------
Mon Oct 6 14:44:12 CEST 2003 - ak@suse.de
- Check if APIC is enabled instead of crashing (#31774)
Needs updated kernel.
-------------------------------------------------------------------
Sat Aug 16 09:48:06 CEST 2003 - adrian@suse.de
- add desktop file
-------------------------------------------------------------------
Thu Jul 31 16:26:58 CEST 2003 - skh@suse.de
- Updated to 0.6
-------------------------------------------------------------------
Fri Jun 20 15:07:26 CEST 2003 - mmj@suse.de
- Up to 0.5.4
-------------------------------------------------------------------
Fri Jun 13 12:19:11 CEST 2003 - mmj@suse.de
- Package all dirs
-------------------------------------------------------------------
Wed Jun 4 14:12:03 CEST 2003 - mmj@suse.de
- Make sure we get the right location for qt.
-------------------------------------------------------------------
Wed May 28 11:57:29 CEST 2003 - mmj@suse.de
- Update to 0.5.3
-------------------------------------------------------------------
Tue May 13 14:06:49 CEST 2003 - mmj@suse.de
- Use %defattr
- Package forgotten files
-------------------------------------------------------------------
Mon Mar 31 13:18:26 CEST 2003 - mmj@suse.de
- Update to 0.5.2 including:
· Docu overhaul
· Feature additions
- Bzip2'ed sources
- Folded both automake patches into one patch
-------------------------------------------------------------------
Tue Mar 11 07:01:43 CET 2003 - kukuk@suse.de
- Don't call depmod
-------------------------------------------------------------------
Mon Mar 10 23:23:27 CET 2003 - ro@suse.de
- remove k_deflt from neededforbuild (cycle)
-------------------------------------------------------------------
Mon Mar 10 14:37:16 CET 2003 - mmj@suse.de
- Fix typo
-------------------------------------------------------------------
Sat Mar 8 00:51:48 CET 2003 - mmj@suse.de
- A go at fixing km_oprofile
-------------------------------------------------------------------
Mon Mar 3 17:56:14 CET 2003 - duwe@suse.de
- split off km_oprofile
- tiny version update includes patches
-------------------------------------------------------------------
Mon Feb 24 17:34:20 CET 2003 - mmj@suse.de
- Add patch from davej to make it not crash the box
-------------------------------------------------------------------
Sat Feb 15 16:29:30 CET 2003 - adrian@suse.de
- minor dependency clean up
-------------------------------------------------------------------
Fri Feb 7 18:12:45 CET 2003 - mmj@suse.de
- Really fix build on x86_64
-------------------------------------------------------------------
Tue Feb 4 21:29:58 CET 2003 - mmj@suse.de
- Fix build on x86_64
-------------------------------------------------------------------
Tue Feb 4 04:19:45 CET 2003 - mmj@suse.de
- Update to oprofile 0.5:
· Pentium IV support, including support for HyperThreading, is
supported for 2.5 kernels (currently only in the -mm patchset).
· Timer interrupt support for PA-RISC, ppc64, and sparc64 in 2.5
kernels is available. Userspace Alpha support has been added.
· 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.
· Support for the IA-64 architecture has been added for 2.4 kernels.
· OProfile's userspace now works correctly on all 64-bit platforms.
· 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.
· Fixed upstream to compile with gcc 3.3
· Several bugfixes
-------------------------------------------------------------------
Wed Jan 29 02:13:55 CET 2003 - ro@suse.de
- fix build with gcc-3.3 (sluggish c++)
-------------------------------------------------------------------
Thu Nov 7 15:51:19 CET 2002 - mmj@suse.de
- Update to 0.4 which now has kernel 2.5 support
-------------------------------------------------------------------
Thu Sep 12 13:28:38 CEST 2002 - mmj@suse.de
- Initial package, version 0.3 (x86 only for now)
-------------------------------------------------------------------

7
oprofile.desktop Normal file
View File

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Exec=oprof_start
Name=OProfile
GenericName=System Wide Profiler
X-KDE-SubstituteUID=true

215
oprofile.spec Normal file
View File

@ -0,0 +1,215 @@
#
# spec file for package oprofile (Version 0.9.2)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: oprofile
BuildRequires: binutils-devel libxslt popt-devel qt3-devel update-desktop-files
URL: http://oprofile.sourceforge.net/
License: GNU General Public License (GPL)
Group: Development/Tools/Other
Autoreqprov: on
Version: 0.9.2
Release: 31
Summary: System-Wide Profiler for Linux Systems
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: %{name}-%{version}.tar.gz
Source1: %{name}.desktop
Patch: %{name}-%{version}.diff
Patch1: doc-update.diff
Summary: System-Wide Profiler for Linux Systems
Group: Development/Tools/Other
%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.
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
%setup -q
%patch
%patch1
%build
./configure CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
--prefix=/usr --mandir=%{_mandir} \
--with-kernel-support=yes \
--with-qt-libraries=%_libdir/qt3/%_lib
make %{?jobs:-j%jobs}
%install
mkdir -p $RPM_BUILD_ROOT/usr/bin
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/oprofile
make DESTDIR=$RPM_BUILD_ROOT DOCDIR=$RPM_BUILD_ROOT%{_docdir}/oprofile install
rm -f $RPM_BUILD_ROOT/usr/share/doc/oprofile/oprofile.html
rm -f $RPM_BUILD_ROOT/usr/share/doc/oprofile/internals.html
%suse_update_desktop_file -i %name Development Profiling
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/bin/*
/usr/share/applications/*.desktop
/usr/share/oprofile
%doc %{_mandir}/man1/*
%doc doc/oprofile.html COPYING README TODO ChangeLog
%changelog -n oprofile
* Thu Jan 11 2007 - schwab@suse.de
- Add binutils-devel to BuildRequires.
* Mon Sep 18 2006 - schwab@suse.de
- Update to oprofile 0.9.2 (no summary available).
* Fri Aug 18 2006 - schwab@suse.de
- Avoid crash in find_nearest_line [#193622].
* Wed May 31 2006 - schwab@suse.de
- Fix invalid string operation.
* Thu May 04 2006 - schwab@suse.de
- Fix last change.
* Mon Feb 27 2006 - schwab@suse.de
- Add events for power5+ [#152494].
* Fri Jan 27 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Jan 25 2006 - schwab@suse.de
- Integrate fixes for ppc64 events and groups [#130910, #137665].
* Mon Dec 12 2005 - schwab@suse.de
- Update to oprofile 0.9.1.
* Tue Nov 08 2005 - dmueller@suse.de
- don't build as root
* Wed Sep 28 2005 - schwab@suse.de
- Fix invalid C++.
* Wed Jul 06 2005 - schwab@suse.de
- Unpack compressed vmlinux [#52767].
- Use RPM_OPT_FLAGS.
* Tue Jun 07 2005 - schwab@suse.de
- Update to oprofile 0.9.
* Thu Mar 24 2005 - schwab@suse.de
- Update to oprofile 0.8.2.
* Thu Nov 04 2004 - schwab@suse.de
- Update to oprofile 0.8.1.
* Fri Sep 03 2004 - schwab@suse.de
- Update to oprofile 0.8.
* Mon Jun 28 2004 - skh@suse.de
- more fixes for #40468
- fixed print statement in op_help.c
- more power 4 events
- fixed incorrect event counter settings for power 4
* Tue Jun 08 2004 - skh@suse.de
- Update to fix for #40468: use correct event numbers for power5
events.
* Wed May 26 2004 - skh@suse.de
- Added default CYCLES event to the Power 4 and Power 5 event
files. (#40468)
* Tue May 25 2004 - skh@suse.de
- add user space support for ppc64 (#40468)
* Sun May 09 2004 - ak@suse.de
- 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)
* Sat Apr 10 2004 - aj@suse.de
- Remove kernel-source requirement.
* Wed Feb 04 2004 - skh@suse.de
- 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.
* Mon Oct 06 2003 - ak@suse.de
- Check if APIC is enabled instead of crashing (#31774)
Needs updated kernel.
* Sat Aug 16 2003 - adrian@suse.de
- add desktop file
* Thu Jul 31 2003 - skh@suse.de
- Updated to 0.6
* Fri Jun 20 2003 - mmj@suse.de
- Up to 0.5.4
* Fri Jun 13 2003 - mmj@suse.de
- Package all dirs
* Wed Jun 04 2003 - mmj@suse.de
- Make sure we get the right location for qt.
* Wed May 28 2003 - mmj@suse.de
- Update to 0.5.3
* Tue May 13 2003 - mmj@suse.de
- Use %%defattr
- Package forgotten files
* Mon Mar 31 2003 - mmj@suse.de
- Update to 0.5.2 including:
· Docu overhaul
· Feature additions
- Bzip2'ed sources
- Folded both automake patches into one patch
* Tue Mar 11 2003 - kukuk@suse.de
- Don't call depmod
* Mon Mar 10 2003 - ro@suse.de
- remove k_deflt from neededforbuild (cycle)
* Mon Mar 10 2003 - mmj@suse.de
- Fix typo
* Sat Mar 08 2003 - mmj@suse.de
- A go at fixing km_oprofile
* Mon Mar 03 2003 - duwe@suse.de
- split off km_oprofile
- tiny version update includes patches
* Mon Feb 24 2003 - mmj@suse.de
- Add patch from davej to make it not crash the box
* Sat Feb 15 2003 - adrian@suse.de
- minor dependency clean up
* Fri Feb 07 2003 - mmj@suse.de
- Really fix build on x86_64
* Tue Feb 04 2003 - mmj@suse.de
- Fix build on x86_64
* Tue Feb 04 2003 - mmj@suse.de
- Update to oprofile 0.5:
· Pentium IV support, including support for HyperThreading, is
supported for 2.5 kernels (currently only in the -mm patchset).
· Timer interrupt support for PA-RISC, ppc64, and sparc64 in 2.5
kernels is available. Userspace Alpha support has been added.
· 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.
· Support for the IA-64 architecture has been added for 2.4 kernels.
· OProfile's userspace now works correctly on all 64-bit platforms.
· 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.
· Fixed upstream to compile with gcc 3.3
· Several bugfixes
* Wed Jan 29 2003 - ro@suse.de
- fix build with gcc-3.3 (sluggish c++)
* Thu Nov 07 2002 - mmj@suse.de
- Update to 0.4 which now has kernel 2.5 support
* Thu Sep 12 2002 - mmj@suse.de
- Initial package, version 0.3 (x86 only for now)

0
ready Normal file
View File