Linux Kernel Debugging
By Dean A. Gereaux, November 01, 2005
Source Code Accompanies This Article. Download It Now.
Dean explains how to debug drivers with Linux Kernel Debugger, add hooks into KDB from your drivers, and create KDB modules.
November, 2005: Linux Kernel Debugging
[0]kdb> tkdata_drv 10
Dumping tank monitor data (numlines: 10)
Index Pressure Stretch
0000 38 19
0001 40 20
0002 42 21
0003 44 22a
0004 46 23
0005 48 24
0006 50 25
0007 52 26
0008 54 27
0009 56 28
[0]kdb> tankthrd
Tank Monitor thread is: STOPPED
DatumCount: 48
CurrentIndex: 48
Figure 3: Sample output of our custom KDB commands.