Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

What's the recommended method of examining kernel memory?

I'm not finding any packages with names like "kdb", "kgdb", or "ddb" that I know from other OS or other Linux distributions. I did find and install "crash", but it is giving me an error message when I try to examine the contents of an address which I know to be valid:

crash> rd -32 0xf840aa68 0x50  
rd: read error: kernel virtual address: f840aa68  type: "32-bit KVADDR"

I know the address is correct because I added a printk (in the module I'm trying to debug) to print out the address where it is storing its diagnostic data.

share|improve this question
I am not that familiar with crash, but I think it has a module that will allow you to run any gdb command. For more info see here: dedoimedo.com/computers/www.dedoimedo.com-crash-book.pdf – Mik Jul 13 '12 at 13:12

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.