1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
systemtap for Debian
====================
Currently Debian kernels do not contain debugging information, so it is
not possible to use systemtap with those kernels. It is however possible
to use systemtap on custom kernels. To compile kernel with included
debugging information option CONFIG_DEBUG_INFO should be enabled during
kernel configuration (it is available under menu "Kernel hacking",
"Compile the kernel with debug info"). You also should enable kprobes
(CONFIG_KPROBES) in kernel config, this option is located under
"Instrumentation support" menu and it is marked as EXPERIMENTAL. systemtap
also requires ELF image of the running kernel (vmlinux), you can copy it
to /boot manually or, if you are using kernel-package, you can add option
'install_vmlinux = YES' into /etc/kernel-pkg.conf .
To use systemtap as normal user you may want to modify /etc/sudoers file
to allow some users to execute 'staprun' as root. To do so run 'visudo' and
add a line like this:
auser ALL=(root) /usr/bin/staprun
(replace 'auser' with needed user name here).
NOTE: gcc-4.0 contains bug (#378628) that makes impossible to use
systemtap with kernels compiled by that compiler. Please, until that
bug is fixed, use other versions of gcc.
-- Eugeniy Meshcheryakov <eugen@debian.org> Sun, 1 Oct 2006 17:34:26 +0200
|