2011-02-12
Using systemtap with Debian sid.
I met the error in using systemtap with Debian sid.It was because kernel doesn't have debug symbols. So I was checking -dbg package of linux-kernel,but there was no -dbg package of i686 kernel in Debian sid.
Then I built the kernel package having debug symbols. I show how to make the kernel package applicable for system-tap below,
Step 1. aptitude install linux-source-2.6.32 kernel-package fakeroot
Step 2. cd /your/working/dir
Step 3. tar xf /usr/src/linux-source-2.6.32.tar.bz2
Step 4. cd linux-source-2.6.32
Step 5. cp /boot/config-2.6.32-your-arch-version .config
Step 6. vi .config, and add 'CONFIG_DEBUG_INFO=y' into .config.
Step 7. make oldconfig
Step 8. fakeroot make-kpkg -j <the total number of your cpu core> --append-to-version +debug --revision=<the revision number you prefer to. ex. 1> --initrd binary-arch
(ex. When you have 2 cores in your machine,and you prefer 1 for revision number,
you can type as below,
fakeroot make-kpkg -j 2 --append-to-version +debug --revision=1 --initrd binary-arch )
Step 9. cd ..
Step 10. sudo dpkg -i linux-image-2.6.32+debug_<rev>_i386.deb linux-headers-2.6.32+debug_<rev>_i386.deb
Step 11. reboot with linux-image-2.6.32+debug.
Step 12. try to stap command.
That's all. The system-tap commands worked fine.
- 62 http://pipes.yahoo.com/pipes/pipe.info?_id=tDfBdGWF3RGl9XNm1L3fcQ
- 16 http://pipes.yahoo.com/pipes/pipe.info?_id=12e453e301454b799b3ac6642aa089b5
- 14 http://sourceware.org/systemtap/wiki
- 5 http://forums.debian.net/viewtopic.php?f=6&t=40126
- 5 http://www.google.com/url?sa=t&source=web&cd=1&sqi=2&ved=0CBIQFjAA&url=http://d.hatena.ne.jp/nozzy123nozzy/20100505/1273046187&rct=j&q=debian disable nouveau&ei=zoBZTd_fKsimhAfk7Iy8DA&usg=AFQjCNF6k1Bp28abZj43Mx6VsMM_bbDYFA
- 3 http://www.google.com/url?sa=t&source=web&cd=1&sqi=2&ved=0CBMQFjAA&url=http://d.hatena.ne.jp/nozzy123nozzy/20100505/1273046187&rct=j&q=disable the Nouveau debian&ei=ocddTYqkA5KasAPOz-XICA&usg=AFQjCNF6k1Bp28abZj43Mx6VsMM_bbDYFA&sig2=jhWLM
- 3 http://www.linuxquestions.org/questions/linux-desktop-74/no-event-sounds-in-xfce-4-6-2-on-debian-sid-maybe-slackers-can-help-857879/
- 2 http://forum.debian.org.tr/index.php?topic=967.0
- 2 http://pipes.yahoo.com/pipes/pipe.info?_id=vpw6npu13rgko15vbrnmsa
- 2 http://translate.googleusercontent.com/translate_c?hl=en&sl=ja&u=http://d.hatena.ne.jp/nozzy123nozzy/20090314/1237009835&prev=/search?q=nvidia+debian+squeeze&hl=en&biw=1280&bih=630&prmd=ivns&rurl=translate.google.co.in&usg=ALkJrhgc