11/17/2007
Data Test Program (dt)
46
AIX Kernel Debugger
nThe AIX kernel debugger (kdb) can be used on both crash dumps and a live system to map a process and obtain a stack trace.
n
nExample:
u# kdb
u(0)> p * | fgrep dt 
upvproc+00B400   45 dt       ACTIVE 002D028 0000001 00000000704D8400   0 0001 ...
u(0)> tpid 002D028
u                SLOT NAME     STATE    TID PRI   RQ CPUID  CL  WCHAN
upvthread+00CE00  206 dt       SLEEP 0CE0F5 03C    0         0 
u(0)> sw 206
uSwitch to  thread: <pvthread+00CE00>
u(0)> f
upvthread+00CE00 STACK:
u[000535A4]et_wait+0002B0 (0000000010007558, 000000000000D0B2,
u   0000000000000000 [??])
u[001B78D4]uphyswait+000158 (??, ??, ??, ??)
u[00457B4C]uphysio+000474 (??, ??, ??, ??, ??, ??, ??)
u[03FC882C]scsidisk_rdwr+000174 (??, ??, ??, ??, ??)
u[03FC8B60]scsidisk_read+000080 (??, ??, ??, ??)
u ...
u(0)>
n