guidance needed building systemtap
Tom Zanussi
zanussi@us.ibm.com
Wed Feb 15 02:39:00 GMT 2006
peterzbach@comcast.net writes:
> I have been struggling getting systemtap to work on SuSE 10.0
>
> I followed the previous suggestion in the README file, downloaded the elfutils, patched it, and configured and built the latest snapshot of systemtap.
>
> Everything compiles fine, but make check shows some errors.
Hi,
Here are my notes on what I needed to do to get systemtap to work on a
scratch installation of SLES10 and pass the testsuite. This is based
on installing the SLES10 kernel of the day, but since it looks like
you've already done everything except install the debug info, you
could probably ignore everything else and go to step 3 - you could
probably just use Yast to install the debug info for the default or
SMP kernel (look under Development|Debug in Package Groups) and be all
set. You'll probably need to check in /usr/lib/debug/boot for the
debug vmlinux and if it's compressed, uncompress it so systemtap can
use it, at least that's what I needed to do when I manually installed
the debug info rpm.
Hope that helps,
Tom
1) Install sles10, default configuration
2) Get and install the latest kernel of the day and the corresponding
debuginfo and source from suse ftp site (or mirrors ):
ftp://ftp.suse.com/pub/projects/kernel/kotd/i386/HEAD
For example:
# rpm -i kernel-smp-2.6.16_rc1_git3-20060201174415.i586.rpm
# rpm -i kernel-smp-debuginfo-2.6.16_rc1_git3-20060201174415.i586.rpm
# rpm -i kernel-source-2.6.16_rc1_git3-20060201174415.i586.rpm
3) In order for systemtap to be able to find the kernel debug info, it
needs to be uncompressed:
# gunzip /usr/lib/debug/boot/vmlinux-2.6.16-rc1-git3-20060201174415-smp.gz
4) In order to run the systemtap test suite, you need dejagnu. I
didn't find it on the sles10 DVD, so used the rpm I found at
ftp.suse.com:
ftp://ftp.suse.com/pub/suse/i386/9.3/suse/i586/dejagnu-1.4.4-4.i586.rpm
# rpm -i dejagnu-1.4.4-4.i586.rpm
5) Get and build systemtap:
- Download systemtap sources snapshot or from CVS:
ftp://sources.redhat.com/pub/systemtap/snapshots/
(or)
cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/systemtap login
# enter "anoncvs" as the password
cvs -d :pserver:anoncvs@sources.redhat.com:/cvs/systemtap co -c
- Download the latest elfutils snapshot:
ftp://sources.redhat.com/pub/systemtap/elfutils/elfutils-NNNN.tar.gz
ftp://sources.redhat.com/pub/systemtap/elfutils/elfutils-portability.patch
- Untar the snapshot in some new directory; apply portability patch
- apply the elfbuild.patch (attached, from Suse) to the elfutils code:
# cd systemtap/src/elfutils-0.119
# patch -p1 < elfbuild.patch
- apply the systap-elf-install.patch (attached, from Suse):
# cd systemtap/src
# patch -p1 < systap-elf-install.patch
- apply the sles10-sysemtap-relayfs.patch (attached):
# cd systemtap/src/runtime:
# patch -p1 < systap-elf-install.patch
- Build it
# cd src
# ./configure --with-elfutils=PATCHED-ELFUTILS-DIR [other autoconf options]
# make all check
# make install
6) Run the testsuite:
# cd systemtap/tests/testsuite
# runtest --tool=systemtap
You should see test output similar to the following:
.
.
.
Running ./systemtap.samples/sysopen.exp ...
Running ./systemtap.samples/transport.exp ...
Running ./systemtap.stress/current.exp ...
=== systemtap Summary ===
# of expected passes 128
kernel version: 2.6.16-rc1-git3-20060201174415-smp
systemtap translator version: version 0.5.3 built 2006-02-01
-------------- next part --------------
A non-text attachment was scrubbed...
Name: elfbuild.patch
Type: application/octet-stream
Size: 512 bytes
Desc: elfbuild patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20060215/f1861d65/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systap-elf-install.patch
Type: application/octet-stream
Size: 636 bytes
Desc: elfinstall patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20060215/f1861d65/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sles10-sysemtap-relayfs.patch
Type: application/octet-stream
Size: 501 bytes
Desc: sles10 new relayfs patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20060215/f1861d65/attachment-0002.obj>
More information about the Systemtap
mailing list