還沒試成功 - 查看是否有安裝 kprobe。 # 查看當前 ARCH 有無支援 kprobe。 $ grep CONFIG_HAVE_KPROBES /boot/config-2.6.32-5-versatile # 查看內核是否有編入 kprobe。 $ grep CONFIG_KPROBES /boot/config-2.6.32-5-versatile * [[http://askubuntu.com/questions/28047/where-can-i-get-the-11-04-kernel-config-file|Where can I get the 11.04 kernel .config file?]] - 重新編譯內核。 # 查看需要安裝那些套件。 $ zless /usr/share/doc/kernel-package/README.gz $ apt-get update $ apt-get install kernel-package libncurses5-dev fakeroot wget bzip2 build-essential binutils-dev $ cd /usr/bin $ ln -s ld arm-linux-gnueabi-ld $ ln -s ar arm-linux-gnueabi-ar $ ln -s nm arm-linux-gnueabi-nm $ ln -s objdump arm-linux-gnueabi-objdump $ ln -s objcopy arm-linux-gnueabi-objcopy $ ln -s strip arm-linux-gnueabi-strip $ cd /usr/src $ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.32.5.tar.gz; tar xvf linux-2.6.32.5.tar.gz $ ln -s linux-2.6.32.5 linux $ cd linux $ cp /boot/System.map-2.6.32-5-versatile System.map $ make clean && make mrproper $ cp /boot/config-`uname -r` ./.config $ make menuconfig $ make-kpkg clean $ fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers $ cd /usr/src $ ls -l $ dpkg -i linux-headers-2.6.32.5-custom_2.6.32.5-custom-10.00.Custom_armel.deb $ dpkg -i linux-image-2.6.32.5-custom_2.6.32.5-custom-10.00.Custom_armel.deb $ shutdown -r now * [[http://www.debian.org/releases/stable/i386/ch08s06.html.en|8.6. Compiling a New Kernel]] * [[http://www.howtoforge.com/kernel_compilation_debian_etch|How To Compile A Kernel - Debian Etch]] - 安裝 SystemTap。 $ apt-get install systemtap $ apt-cache search linux-headers-$(uname -r) $ apt-get install linux-headers-2.6.32-5-versatile * [[http://www.cyberciti.biz/faq/howto-install-kernel-headers-package/|Debian / Ubuntu linux install kernel headers package]] * [[http://sourceware.org/systemtap/SystemTap_Beginners_Guide/errors.html|Chapter 6. Understanding SystemTap Errors]] ====== 外部連結 ====== * [[http://sourceware.org/systemtap/|SystemTap]] * [[wp>SystemTap]] * [[http://sourceware.org/systemtap/wiki/LPC2008SystemTapTutorial?action=AttachFile&do=get&target=LPC_2008_stap.pdf|SystemTap Tutorial]]