diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2008-12-03 13:36:32 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-12-03 13:36:32 -0500 |
commit | b5e66adadbad65fddc40a2143e3692e41cf6d1af (patch) | |
tree | c7bd2f51f3940c01ccf9d28ca91d71c7564bc421 /README | |
parent | a42876234df99f8523ddb2b21025352f37231c39 (diff) | |
download | systemtap-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-- | README | 29 |
1 files changed, 11 insertions, 18 deletions
@@ -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 |