summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorfche <fche>2006-06-14 15:14:30 +0000
committerfche <fche>2006-06-14 15:14:30 +0000
commit203a3d5babcbf80f41a648506b17804840c06a93 (patch)
tree2c2abc992d9940ecb401c0f0a4ca8d5b5811991b /README
parentf7537e1e8baeb5d84f8ac3f4a5fc49d91771ba41 (diff)
downloadsystemtap-steved-203a3d5babcbf80f41a648506b17804840c06a93.tar.gz
systemtap-steved-203a3d5babcbf80f41a648506b17804840c06a93.tar.xz
systemtap-steved-203a3d5babcbf80f41a648506b17804840c06a93.zip
2006-06-14 Frank Ch. Eigler <fche@elastic.org>
* README: Add kernel.org blurb based on text from Chuck Ebbert <76306.1226@compuserve.com>.
Diffstat (limited to 'README')
-rw-r--r--README40
1 files changed, 33 insertions, 7 deletions
diff --git a/README b/README
index 87861054..2c47ee7a 100644
--- a/README
+++ b/README
@@ -20,31 +20,57 @@ Prerequisites:
Installation steps:
-- Install the kernel-debuginfo, kernel-[smp-]devel, gcc packages
+- Install the kernel-debuginfo, kernel-[smp-]devel, gcc packages.
- Install the systemtap package, if one already exists.
Build steps:
-- Install the kernel-debuginfo, kernel-[smp-]devel, gcc packages.
-- Download the latest elfutils snapshot
+- Install the kernel-debuginfo, kernel-[smp-]devel, gcc packages
+ (or see below if you are building your own kernels from source).
+- 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 patch (don't ask, long story)
-- Download systemtap sources snapshot or from CVS
+- 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
-- Build it
+- Build it:
cd src
./configure --with-elfutils=PATCHED-ELFUTILS-DIR [other autoconf options]
make all check
make install
-Tips :
+Tips:
-- systemtap looks for the debug info in these locations:
+- Systemtap looks for the debug info in these locations:
/boot/vmlinux-`uname -r`
/usr/lib/debug/lib/modules/`uname -r`/vmlinux
/lib/modules/`uname -r`/vmlinux
+
+Building a kernel.org kernel:
+
+- Build the kernel using your normal procedures. Enable
+ CONFIG_DEBUG_INFO, CONFIG_KPROBES, and optionally CONFIG_RELAY.
+- Boot into the kernel.
+- Make sure the large unstripped kernel image 'vmlinux' from your
+ build can be found by systemtap (see above) You can just symlink
+ it to one of these locations.
+- Symlink your source directory to these two places, though systemtap
+ does not at present use such source code.
+ - /usr/src/kernels/`uname -r`
+ - /lib/modules/`uname -r`/source
+- Symlink your build directory to here:
+ - /lib/modules/`uname -r`/build
+- For example, if your kernel source is in /home/me/linux/2.6.17-rc6
+ and you build your kernel in the source directory, you would do
+ this (be sure you are running the right kernel or `uname -r`
+ will be wrong:)
+ ln -s /home/me/linux/2.6.17-rc6/vmlinux /boot/vmlinux-`uname -r`
+ mkdir /usr/src/kernels (if needed)
+ ln -s /home/me/linux/2.6.17-rc6 /usr/src/kernels/`uname -r`
+ mkdir /lib/modules/`uname -r` (if needed)
+ ln -s /home/me/linux/2.6.17-rc6 /lib/modules/`uname -r`/build
+ ln -s /home/me/linux/2.6.17-rc6 /lib/modules/`uname -r`/source