Hello community,
here is the log from the commit of package itrace
checked in at Thu Feb 28 18:16:16 CET 2008.
--------
--- arch/ppc/itrace/itrace.changes 2007-11-28 11:47:09.000000000 +0100
+++ /mounts/work_src_done/STABLE/itrace/itrace.changes 2008-02-28 11:18:54.000000000 +0100
@@ -1,0 +2,5 @@
+Thu Feb 28 11:18:22 CET 2008 - olh(a)suse.de
+
+- fix plt bug (bnc#365404 - LTC41799)
+
+-------------------------------------------------------------------
New:
----
itrace.plt.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ itrace.spec ++++++
--- /var/tmp/diff_new_pack.qB2847/_old 2008-02-28 18:15:41.000000000 +0100
+++ /var/tmp/diff_new_pack.qB2847/_new 2008-02-28 18:15:41.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package itrace (Version 0.9)
#
-# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2008 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.
#
@@ -10,9 +10,10 @@
# norootforbuild
+
Name: itrace
Version: 0.9
-Release: 116
+Release: 136
%if 0%{?suse_version} > 1020
BuildRequires: binutils-devel
%endif
@@ -40,6 +41,7 @@
Patch15: itrace.unregister_chrdev-return.patch
Patch16: itrace.get_property.patch
Patch17: itrace.get_kernel_vsid.patch
+Patch18: itrace.plt.patch
ExclusiveArch: ppc ppc64
Requires: itrace-kmp-ppc64
%suse_kernel_module_package kdump um xen xenpae default smp debug bigsmp iseries64
@@ -106,6 +108,7 @@
%patch15 -p1
%patch16 -p1
%patch17 -p1
+%patch18 -p1
%build
autoreconf -i --force
@@ -156,71 +159,73 @@
%{_mandir}/*/*
%changelog
-* Wed Nov 28 2007 - olh(a)suse.de
+* Thu Feb 28 2008 olh(a)suse.de
+- fix plt bug (bnc#365404 - LTC41799)
+* Wed Nov 28 2007 olh(a)suse.de
- update for 2.6.24 API changes
-* Tue Oct 16 2007 - olh(a)suse.de
+* Tue Oct 16 2007 olh(a)suse.de
- fix compile error, unregister_chrdev has no return value
-* Mon Oct 15 2007 - olh(a)suse.de
+* Mon Oct 15 2007 olh(a)suse.de
- add power6 support (333483, fate 302745)
-* Sun Aug 05 2007 - olh(a)suse.de
+* Mon Aug 06 2007 olh(a)suse.de
- remove inclusion of linux/threads.h
-* Thu Jul 05 2007 - olh(a)suse.de
+* Thu Jul 05 2007 olh(a)suse.de
- replace find_type_devices with of_find_node_by_type
run ldconfig in post/postun
-* Sun Apr 15 2007 - olh(a)suse.de
+* Sun Apr 15 2007 olh(a)suse.de
- add module-init-tools to buildrequires
-* Thu Jan 25 2007 - olh(a)suse.de
+* Thu Jan 25 2007 olh(a)suse.de
- add binutils-devel to buildrequires
- linux/config.h is gone in 2.6.20
-* Tue Oct 17 2006 - olh(a)suse.de
+* Tue Oct 17 2006 olh(a)suse.de
- fix buffer overflow in post (212916)
-* Tue Oct 17 2006 - olh(a)suse.de
+* Tue Oct 17 2006 olh(a)suse.de
- fix swtrace typo in README
make modprobe errors non-fatal in pi_load.sh
-* Fri Sep 08 2006 - olh(a)suse.de
+* Fri Sep 08 2006 olh(a)suse.de
- fix build warnings
-* Wed Aug 16 2006 - olh(a)suse.de
+* Wed Aug 16 2006 olh(a)suse.de
- enable is_stepping_safe_ss r13 exception hack for all kernels
-* Fri Aug 11 2006 - olh(a)suse.de
+* Fri Aug 11 2006 olh(a)suse.de
- disable last change, kprobes are fixed in the kernel
-* Wed Jun 14 2006 - olh(a)suse.de
+* Wed Jun 14 2006 olh(a)suse.de
- allow itrace only on POWER5 for the time being (171699 - LTC23555)
correct setting of pvr in driver_info.cpu_model in pitrace_cpu_init
-* Fri Jun 09 2006 - olh(a)suse.de
+* Fri Jun 09 2006 olh(a)suse.de
- remove the buildrequires for glibc-devel-32bit on ppc64 (177064 - LTC23995)
It was a temporary workaround for abuild breakage.
-* Thu May 04 2006 - olh(a)suse.de
+* Thu May 04 2006 olh(a)suse.de
- fix wrong use of %%p (172541 - LTC23597)
-* Thu Apr 20 2006 - olh(a)suse.de
+* Thu Apr 20 2006 olh(a)suse.de
- handle symbol changes in ELF64 (166171 - LTC23205)
-* Tue Apr 11 2006 - olh(a)suse.de
+* Tue Apr 11 2006 olh(a)suse.de
- remove hardcoded -m32 from CFLAGS
-* Tue Mar 28 2006 - olh(a)suse.de
+* Tue Mar 28 2006 olh(a)suse.de
- add Requires: itrace-kmp-ppc64, pseries is the only supported kernel
-* Wed Mar 22 2006 - olh(a)suse.de
+* Wed Mar 22 2006 olh(a)suse.de
- use modprobe to load the kernel module (153529 - LTC21991)
-* Mon Mar 20 2006 - olh(a)suse.de
+* Mon Mar 20 2006 olh(a)suse.de
- update to version 0.9
-* Tue Feb 28 2006 - olh(a)suse.de
+* Wed Mar 01 2006 olh(a)suse.de
- turn km_itrace into a KMP
-* Wed Jan 25 2006 - mls(a)suse.de
+* Wed Jan 25 2006 mls(a)suse.de
- converted neededforbuild to BuildRequires
-* Sat Oct 22 2005 - od(a)suse.de
+* Sat Oct 22 2005 od(a)suse.de
- fixed building with debuginfo switched on: changed %%files
section
-* Wed Oct 05 2005 - od(a)suse.de
+* Wed Oct 05 2005 od(a)suse.de
- removed superfluous "%%x" in printf in src/mpost/main.c:1564 for
autobuild
-* Fri Jun 24 2005 - od(a)suse.de
+* Fri Jun 24 2005 od(a)suse.de
- for ppc, set HOSTTYPE variable to ppc64 (LTC16341 - SUSE87292)
-* Mon Jun 13 2005 - od(a)suse.de
+* Mon Jun 13 2005 od(a)suse.de
- update to version 0.8:
- add perfutil.h (LTC16343 - SUSE87261)
- set HOSTTYPE variable to %%_arch (LTC16341 - SUSE87292)
-* Mon May 23 2005 - od(a)suse.de
+* Mon May 23 2005 od(a)suse.de
- update to version 0.7 (LTC14260 - SUSE67200)
-* Wed May 11 2005 - od(a)suse.de
+* Wed May 11 2005 od(a)suse.de
- fixed return values in swtrace.c and perfutil.c to pass compile
checks
-* Tue May 10 2005 - od(a)suse.de
+* Tue May 10 2005 od(a)suse.de
- new package
++++++ itrace.get_kernel_vsid.patch ++++++
--- /var/tmp/diff_new_pack.qB2847/_old 2008-02-28 18:15:41.000000000 +0100
+++ /var/tmp/diff_new_pack.qB2847/_new 2008-02-28 18:15:41.000000000 +0100
@@ -1,17 +1,22 @@
---
- src/driver/ppc64/pi_itrace.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
+ src/driver/ppc64/pi_itrace.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
--- a/src/driver/ppc64/pi_itrace.c
+++ b/src/driver/ppc64/pi_itrace.c
-@@ -77,8 +77,8 @@ struct kprobe irq_hook;
+@@ -76,9 +76,15 @@ struct kprobe page_fault_hook;
+ struct kprobe irq_hook;
struct kprobe exit_hook;
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)
#define GET_VSID(addr) (REGION_ID(addr) >= KERNEL_REGION_ID) ? \
-- get_kernel_vsid(addr) : \
-- get_vsid(current->mm->context.id, addr)
+ get_kernel_vsid(addr) : \
+ get_vsid(current->mm->context.id, addr)
++#else
++#define GET_VSID(addr) (REGION_ID(addr) >= KERNEL_REGION_ID) ? \
+ get_kernel_vsid(addr, MMU_SEGSIZE_256M) : \
+ get_vsid(current->mm->context.id, addr, user_segment_size(addr))
++#endif
/* Populate the passed psthook with instruction address, previous instruction
* address, and instruction count. */
++++++ itrace.plt.patch ++++++
---
src/a2n/a2n.c | 2 +-
src/post/qtrace.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
--- a/src/a2n/a2n.c
+++ b/src/a2n/a2n.c
@@ -948,7 +948,7 @@ LookupSymbol:
// If there's code calculate the (local) address to the code stream.
if (cn != NULL && cn->code != NULL) {
- code_offset = (unsigned int)PtrSub(addr, PtrAdd(lmn->start_addr, cn->offset_start));
+ code_offset = (unsigned int)PtrSub(addr, cn->start_addr);
sd->code = (char *)PtrAdd(cn->code, code_offset);
sym_code = (void *)cn->code; // >>>>> Remember code at start of symbol <<<<<
}
--- a/src/post/qtrace.c
+++ b/src/post/qtrace.c
@@ -605,6 +605,7 @@ void write_single_steps(trace_t *tr, uns
if (!(status.header_written)) {
write_qheader(addr, qtfile);
status.header_written = 1;
+ status.prev_ss = addr;
} else if (sensible_single_step_range(status.prev_ss, addr)) {
if (status.curr_qrecord_addr) {
@@ -632,8 +633,8 @@ void write_single_steps(trace_t *tr, uns
populate_qrecord(&status.curr_qrecord, inst);
special_qrecord(&status.curr_qrecord, tr, pid);
status.curr_qrecord_addr = addr;
+ status.prev_ss = addr;
}
- status.prev_ss = addr;
}
/* ----------------------------------------------------------------------- */
void update_status(trace_t *tr)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-commit+help(a)opensuse.org