summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2008-12-03 13:36:32 -0500
committerFrank Ch. Eigler <fche@elastic.org>2008-12-03 13:36:32 -0500
commitb5e66adadbad65fddc40a2143e3692e41cf6d1af (patch)
treec7bd2f51f3940c01ccf9d28ca91d71c7564bc421 /README
parenta42876234df99f8523ddb2b21025352f37231c39 (diff)
downloadsystemtap-steved-b5e66adadbad65fddc40a2143e3692e41cf6d1af.tar.gz
systemtap-steved-b5e66adadbad65fddc40a2143e3692e41cf6d1af.tar.xz
systemtap-steved-b5e66adadbad65fddc40a2143e3692e41cf6d1af.zip
PR5892: rename new -B /PATH to -r /PATH; merge functionality
Diffstat (limited to 'README')
-rw-r--r--README29
1 files changed, 11 insertions, 18 deletions
diff --git a/README b/README
index 59173166..2bb0ae79 100644
--- a/README
+++ b/README
@@ -90,25 +90,18 @@ Tips:
/lib/modules/`uname -r`/vmlinux
/lib/modules/`uname -r`/build/vmlinux
+
Building a kernel.org kernel:
- Build the kernel using your normal procedures. Enable
- CONFIG_DEBUG_INFO, CONFIG_KPROBES, and optionally CONFIG_RELAY and
- CONFIG_DEBUG_FS.
-- Run "make install modules_install headers_install" as needed.
+ CONFIG_DEBUG_INFO, CONFIG_KPROBES, CONFIG_RELAY and CONFIG_DEBUG_FS.
+- % make modules_install install headers_install
- 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 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
+
+- If you wish to leave the kernel build tree in place, simply run
+ % stap -r /path/to/kernel/build/tree [...]
+ You're done.
+
+- Or else, if you wish to install the kernel build/debuginfo data into
+ a place where systemtap will find it without the "-r" option:
+ % ln -s /path/to/kernel/build/tree /lib/modules/RELEASE/build