rpms/stapitrace/devel itrace-f11-fixes-private.patch, NONE, 1.1 stapitrace.spec, 1.24, 1.25 .cvsignore, 1.2, 1.3 sources, 1.3, 1.4
Maynard Johnson
maynardj at fedoraproject.org
Thu Apr 2 17:56:56 UTC 2009
Author: maynardj
Update of /cvs/pkgs/rpms/stapitrace/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv12793
Modified Files:
.cvsignore sources
Added Files:
itrace-f11-fixes-private.patch stapitrace.spec
Log Message:
Updating stapitrace source to use SystemTap built-in insn probe
itrace-f11-fixes-private.patch:
--- NEW FILE itrace-f11-fixes-private.patch ---
diff -paur Dpiperf/src/driver/Makefile Dpiperf-fixes/src/driver/Makefile
--- Dpiperf/src/driver/Makefile 2009-01-19 11:57:20.000000000 -0500
+++ Dpiperf-fixes/src/driver/Makefile 2009-03-12 12:52:45.000000000 -0400
@@ -5,7 +5,7 @@
# The first time invokes the kernel build system
# The second time does the work.
-EXTRA_CFLAGS += -D_LINUX -fomit-frame-pointer
+EXTRA_CFLAGS += -D_LINUX
ifneq (${KERNELRELEASE},)
EXTRA_CFLAGS += -DPI_TPROF
diff -paur Dpiperf/src/driver/pi_btrace.c Dpiperf-fixes/src/driver/pi_btrace.c
--- Dpiperf/src/driver/pi_btrace.c 2009-01-19 11:57:20.000000000 -0500
+++ Dpiperf-fixes/src/driver/pi_btrace.c 2009-03-12 12:53:15.000000000 -0400
@@ -325,7 +325,7 @@ int SoftTraceOn(void)
union perf_addr addr;
#endif
-#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,25)
+#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,99)
struct mm_struct * p_init_mm = (struct mm_struct *)pi_init_mm_address;
#else
struct mm_struct * p_init_mm = &init_mm;
Index: stapitrace.spec
===================================================================
RCS file: stapitrace.spec
diff -N stapitrace.spec
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ stapitrace.spec 2 Apr 2009 17:56:26 -0000 1.25
@@ -0,0 +1,94 @@
+#
+# spec file for package itrace
+#
+
+%define alphatag 20090402cvs_alpha
+Name: stapitrace
+Summary: Instruction Tracing Tool
+Version: 2.0.1
+Release: 0.%{alphatag}%{?dist}
+License: GPLv2+
+Group: Development/Tools
+URL: http://sourceforge.net/projects/perfinsp
+Source0: %{name}-%{version}.%{alphatag}.tar.gz
+Patch0: itrace-f11-fixes-private.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+Requires: systemtap systemtap-runtime binutils binutils-devel
+BuildRequires: binutils binutils-devel autoconf automake zlib-devel
+ExclusiveArch: ppc ppc64
+
+%description
+ITrace is a software tracing mechanism that runs on Linux. ITrace traces
+through user application code using the SystemTap user instruction tracing
+support and can produce human-readable ASCII output or qtrace output suitable
+for analysis by packages, such as the IBM Performance Simulator for Linux
+on POWER (simppc).
+
+It is based on and shares code from PerformanceInspector's ITRACE tool.
+
+%define systap %{_datadir}/systemtap
+%define tap %{systap}/tapset
+%define tap64 %{tap}/ppc64
+%define post src/post
+%define a2n src/a2n
+%define stap src/stap
+
+%prep
+%setup -q -n Dpiperf
+%patch0 -p1
+
+%build
+autoreconf -i --force
+# override -m64
+export CFLAGS="%{__global_cflags} -mminimal-toc"
+export CXXFLAGS="%{__global_cflags} -mminimal-toc"
+
+%configure --enable-build_stap=yes --enable-lib32on64 --disable-dependency-tracking
+%{__make} DESTDIR=""
+
+%install
+%{__rm} -rf $RPM_BUILD_ROOT
+%{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir}
+%{__mkdir_p} $RPM_BUILD_ROOT/usr/lib
+%{__mkdir_p} $RPM_BUILD_ROOT/%{_mandir}/man1
+%{__mkdir_p} $RPM_BUILD_ROOT/%{systap}
+%{__mkdir_p} $RPM_BUILD_ROOT/%{systap}/runtime
+%{__mkdir_p} $RPM_BUILD_ROOT/%{tap}
+%{__mkdir_p} $RPM_BUILD_ROOT/%{tap64}
+%{__install} -m 755 %{post}/post $RPM_BUILD_ROOT/%{_bindir}/post
+cd src/stap
+%{__install} -m 644 itrace.1 $RPM_BUILD_ROOT/%{_mandir}/man1/itrace.1
+%{__install} -m 644 post.1 $RPM_BUILD_ROOT/%{_mandir}/man1/post.1
+%{__install} -m 755 itrace $RPM_BUILD_ROOT/%{_bindir}/itrace
+%{__install} -m 644 pi_itrace.stp $RPM_BUILD_ROOT/%{tap}/pi_itrace.stp
+%{__install} -m 644 ppc_pi_itrace.stp $RPM_BUILD_ROOT/%{tap64}/ppc_pi_itrace.stp
+
+
+%clean
+%{__rm} -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%{tap}/pi_itrace.stp
+%{tap64}/ppc_pi_itrace.stp
+%{_mandir}/man1/itrace.1.gz
+%{_mandir}/man1/post.1.gz
+%{_bindir}/post
+%{_bindir}/itrace
+
+%changelog -n itrace
+* Wed Mar 11 2009 Maynard Johnson <maynardj at us.ibm.com>
+- Change to using Systemtap's built-in itrace probe point
+
+* Wed Oct 15 2008 Dave Nomura <dcnltc at us.ibm.com>
+- upgrade to utrace2
+
+* Fri Sep 12 2008 Josh Boyer <jwboyer at gmail.com>
+- Fix bfd configure test as binutils now requires zlib for compressed
+ sections
+
+* Tue May 27 2008 Dave Nomura <dcnltc at us.ibm.com>
+- removed liba2n.so dependency and changed to all apps to 32-bit
+
+* Mon Apr 07 2008 Dave Nomura <dcnltc at us.ibm.com>
+- new package
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/stapitrace/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore 21 Jul 2008 21:41:47 -0000 1.2
+++ .cvsignore 2 Apr 2009 17:56:26 -0000 1.3
@@ -1 +1 @@
-stapitrace-1.0.0.20080622cvs_alpha.tar.gz
+stapitrace-2.0.1.20090402cvs_alpha.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/stapitrace/devel/sources,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sources 22 Jul 2008 16:08:36 -0000 1.3
+++ sources 2 Apr 2009 17:56:26 -0000 1.4
@@ -1 +1 @@
-a4923a1d512f79175548d9fd1d57c548 stapitrace-1.0.0.20080622cvs_alpha.tar.gz
+a5302e521d56b148b766acf48e5f6206 stapitrace-2.0.1.20090402cvs_alpha.tar.gz
More information about the scm-commits
mailing list