This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: scsi.stp won't run
downgrading back to elfutils-0.108-1
typo error? should be elftuls-0.118-1, right?
downloading systemtap-0.5.2-1.src.rpm
rpm -ivh SRPMS/systemtap-0.5.2-1.src.rpm
rpmbuild -ba SPECS/systemtap.spec
(something related to elfutils-0.118 happened as well
during this step,
2 systemtap testcases failed BTW)
rpm -ivh RPMS/i386/systemtap-0.5.2-1.i386.rpm
I am not sure whether I managed to followed your advice.
Do I need to change the systemtap.spec in order to the config option
you have mentioned?
I always download the latest source codes from CVS and then make
systemtap. Or you can just use the latest snapshot of systemtap source
codes. The later, the fewer bugs.
I am running a recently updated Fedora Core 4 system
(2.6.15-1.1823_FC4 #1 Fri Jan 6 17:54:53 EST 2006 i686 i686 i386).
I ran on RHEL(U2 & U3). I never tried FC4.
Since the problem seems to be related to the fact that I want
to place a probe in a module, what about rebuilding the kernel
with a built-in scsi_mod (as a workaround)?
It will do. Remember to modify the scsi.stp to change
module("scsi_mod").function("foo") to kernel.function("foo")
I would need to rebuild the kernel-debuginfo rpm as well. How do
I do the latter? What is about kernel-devel?
If you have the kernel src rpm package, then you can:
1. rpm -Uvh kernel-src-.rpm
2. vi /usr/src/redhat/SPECS/kernel-2.6.spec, uncomment unnecessary
options, e.g:
%define buildup 0
%define buildsmp 1
%define buildsource 0
%define buildhugemem 0
%define buildlargesmp 0
%define builddoc 0
%define kabi 1
3. You may need modify /usr/src/redhat/SPECS/kernel-2.6.spec
because of the bug
#1966(http://sourceware.org/bugzilla/show_bug.cgi?id=1966)
4. rpmbuild -ba /usr/src/redhat/SPECS/kernel-2.6.spec --target=i686
5. look at /usr/src/redhat/RPMS for the devel, debuginfo and kernel
rpm package
If you compile the kernel using mainline kernel src package for
kernel.org, you should:
1. enable "compile debuginfo for kernel" & "kprobe" when "make
menuconfig"
2. make & install the kernel
3. cp /usr/src/linux-2.6.15/vmlinux /boot/vmlinux-2.5.16