Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I debug Ubuntu's kernel? Are there any debug symbols available, or should I recompile the kernel with debug info?

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

The kernel team have a wonderful wiki page.

it has a kernel debugging page where you can find :

  • Debugging Scenarios
  • Debugging Guides
  • Debugging Tools/Information

To determine which guides are relevant to your problem see the Kernel/Debugging/Symptom based debugging guide .

share|improve this answer
    
-1 , you don't actually answer the question "Are there any debug symbols available, or should I recompile the kernel with debug info?". Which of the guides on the wiki page is for generic Kernel debugging with common tools like perf? –  Stefan Lasiewski Sep 20 '12 at 22:06
add comment

Useful information can be found on this page

https://wiki.ubuntu.com/Kernel/Systemtap

Specifically

sudo tee /etc/apt/sources.list.d/ddebs.list << EOF
deb http://ddebs.ubuntu.com/ precise          main restricted universe multiverse
deb http://ddebs.ubuntu.com/ precise-security main restricted universe multiverse
deb http://ddebs.ubuntu.com/ precise-updates  main restricted universe multiverse
deb http://ddebs.ubuntu.com/ precise-proposed main restricted universe multiverse
EOF

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ECDCAD72428D7C01
sudo apt-get update
sudo apt-get install linux-image-$(uname -r)-dbgsym

Now I just need to figure out the Debian equivalent.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.