Linux – Kernel debugging

debuggingdriverskernellinux

I would like to study the flow of some linux device drivers and some minimal flow of kernel (threading cum context switching and interrupt management).

How can I debug the linux kernel? What are the basic steps for doing that?

Recently i successfully compiled and integrated new kernel (2.6.34.7) into my machine running the 2.6.29 kernel.

Best Answer

It depends on what you really need. Probably simple printk() function is gonna be OK for the beginning. There is also the /proc interface you can use to get useful information from kernel.

If you need something more complicated, use KGDB (kernel debugger).

Related Question