rpms/oprofile/devel oprofile-ppc64-callgraph.patch, NONE, 1.1 oprofile-race.patch, NONE, 1.1 oprofile.spec, 1.50, 1.51

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Mar 21 14:45:57 UTC 2007


Author: wcohen

Update of /cvs/dist/rpms/oprofile/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv20758

Modified Files:
	oprofile.spec 
Added Files:
	oprofile-ppc64-callgraph.patch oprofile-race.patch 
Log Message:
- Correct description for package.
- Correct backtrace documentation. Resolves: rhbz#214793.
- Correct race condition. Resolves: rhbz#220116.



oprofile-ppc64-callgraph.patch:
 opcontrol.1.in |    6 +++---
 oprofile.xml   |   11 +++++++++--
 2 files changed, 12 insertions(+), 5 deletions(-)

--- NEW FILE oprofile-ppc64-callgraph.patch ---
Index: doc/oprofile.xml
===================================================================
RCS file: /cvsroot/oprofile/oprofile/doc/oprofile.xml,v
retrieving revision 1.153
retrieving revision 1.154
diff -u -r1.153 -r1.154
--- doc/oprofile.xml	17 Nov 2006 23:47:29 -0000	1.153
+++ doc/oprofile.xml	19 Nov 2006 17:24:30 -0000	1.154
@@ -620,8 +620,15 @@
 		<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>
Index: doc/opcontrol.1.in
===================================================================
RCS file: /cvsroot/oprofile/oprofile/doc/opcontrol.1.in,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- doc/opcontrol.1.in	16 Jan 2006 13:29:23 -0000	1.20
+++ doc/opcontrol.1.in	13 Oct 2006 19:17:57 -0000	1.21
@@ -111,9 +111,9 @@
 .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. This option is not yet supported
-on Xen.
+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.
+This option is not yet supported on Xen.
 .br
 .TP
 .BI "--image="[name,name...|"all"]

oprofile-race.patch:
 init.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

--- NEW FILE oprofile-race.patch ---
diff -paurN ../oprofile-0.9.2/daemon/init.c ./daemon/init.c
--- ../oprofile-0.9.2/daemon/init.c	2006-12-19 20:10:43.000000000 -0800
+++ ./daemon/init.c	2006-12-19 20:18:50.000000000 -0800
@@ -253,13 +253,14 @@ static void opd_26_init(void)
 		perror("oprofiled: couldn't set exit cleanup: ");
 		exit(EXIT_FAILURE);
 	}
+
+	/* trigger kernel module setup before returning control to opcontrol */
+	opd_open_files();
 }
 
 
 static void opd_26_start(void)
 {
-	opd_open_files();
-
 	/* simple sleep-then-process loop */
 	opd_do_read(sbuf, s_buf_bytesize);
 }


Index: oprofile.spec
===================================================================
RCS file: /cvs/dist/rpms/oprofile/devel/oprofile.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- oprofile.spec	3 Nov 2006 19:03:26 -0000	1.50
+++ oprofile.spec	21 Mar 2007 14:45:55 -0000	1.51
@@ -1,9 +1,9 @@
-%define DATE 20060919
+%define DATE 20070321
 %define oprofile_version 0.9.2
 Summary: System wide profiler
 Name: oprofile
 Version: 0.9.2
-Release: 3%{?dist}
+Release: 7%{?dist}
 License: GPL
 Group: Development/System
 #
@@ -15,6 +15,8 @@
 Patch83: oprofile-0.9.1-xen.patch
 Patch87: oprofile-power6.patch
 #Patch88: oprofile-core.patch
+Patch89: oprofile-ppc64-callgraph.patch
+Patch90: oprofile-race.patch
 
 URL: http://oprofile.sf.net
 ExclusiveArch: %{ix86} ia64 x86_64 ppc ppc64 s390 s390x alpha alphaev6 sparc sparc64
@@ -30,9 +32,9 @@
 BuildRoot: %{_tmppath}/%{name}-root
 
 %description
-oprofile is a profiling system for systems running Linux 2.2/2.4.
-Profiling runs transparently during the background, and profile data
-can be collected at any time. oprofile makes use of the hardware performance
+OProfile is a profiling system for systems running Linux. The
+profiling runs transparently during the background, and profile data
+can be collected at any time. OProfile makes use of the hardware performance
 counters provided on Intel P6, and AMD Athlon family processors, and can use
 the RTC for profiling on other x86 processor types.
 
@@ -63,6 +65,8 @@
 %patch83 -p1 -b .xen
 %patch87 -p1 -b .power6
 #%patch88 -p0 -b .core
+%patch89 -p0 -b .ppc64doc
+%patch90 -p0 -b .race
 
 ./autogen.sh
 
@@ -264,6 +268,12 @@
 %{_bindir}/oprof_start
 
 %changelog
+* Wed Mar 21 2007 Will Cohen <wcohen at redhat.com> - 0.9.2-7
+- Correct description for package.
+- Correct backtrace documentation. Resolves: rhbz#214793.
+- Correct race condition. Resolves: rhbz#220116.
+
+
 * Wed Sep 18 2006 Will Cohen <wcohen at redhat.com> - 0.9.2-3
 - Add dist tag to build.
 




More information about the fedora-cvs-commits mailing list