[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel Extensions and Device Support Programming Concepts

Miscellaneous Subcommands for the KDB Kernel Debugger and kdb Command


time and debug Subcommands

Note: This subcommand is only available within the kdb command; it is not included in the KDB Kernel Debugger.

debug subcommand can be used to print additionnal information during KDB execution, in order to debug the debugger. time can be used to have print elapsed time.

Example

   KDB(4)> debug ? debug help
   vmm HW lookup debug... on with arg 'dbg1++', off with arg 'dbg1--'
   vmm tr/tv cmd debug... on with arg 'dbg2++', off with arg 'dbg2--'
   vmm SW lookup debug... on with arg 'dbg3++', off with arg 'dbg3--'
   symbol lookup debug... on with arg 'dbg4++', off with arg 'dbg4--'
   stack trace debug..... on with arg 'dbg5++', off with arg 'dbg5--'
   BRKPT debug (list).... on with arg 'dbg61++', off with arg 'dbg61--'
   BRKPT debug (instr)... on with arg 'dbg62++', off with arg 'dbg62--'
   BRKPT debug (suspend). on with arg 'dbg63++', off with arg 'dbg63--'
   BRKPT debug (phantom). on with arg 'dbg64++', off with arg 'dbg64--'
   BRKPT debug (context). on with arg 'dbg65++', off with arg 'dbg65--'
   DABR debug (address).. on with arg 'dbg71++', off with arg 'dbg71--'
   DABR debug (register). on with arg 'dbg72++', off with arg 'dbg72--'
   DABR debug (status)... on with arg 'dbg73++', off with arg 'dbg73--'
   BRAT debug (address).. on with arg 'dbg81++', off with arg 'dbg81--'
   BRAT debug (register). on with arg 'dbg82++', off with arg 'dbg82--'
   BRAT debug (status)... on with arg 'dbg83++', off with arg 'dbg83--'
   BRKPT debug (context). on this debug feature is enable
   KDB(4)> debug dbg5++ enable debug mode
   stack trace debug..... on
   KDB(4)> f stack frame in debug mode
   thread+000180 STACK:
   === Look for traceback at 0x00015278
   === Got traceback at 0x00015280 (delta = 0x00000008)
   === has_tboff = 1, tb_off = 0xD8
   === Trying to find Stack Updade Code from 0x000151A8 to 0x00015278
   === Found 0x9421FFA0 at 0x000151B8
   === Trying to find Stack Restore Code from 0x000151A8 to 0x0001527C
   === Trying to find Registers Save Code from 0x000151A8 to 0x00015278
   [00015278]waitproc+0000D0 ()
   === Look for traceback at 0x00015274
   === Got traceback at 0x00015280 (delta = 0x0000000C)
   === has_tboff = 1, tb_off = 0xD8
   [00015274]waitproc+0000CC ()
   === Look for traceback at 0x0002F400
   === Got traceback at 0x0002F420 (delta = 0x00000020)
   === has_tboff = 1, tb_off = 0x30
   [0002F400]procentry+000010 (??, ??, ??, ??)

   KDB(4)> time time report
   No elapsed time to report
   ... later on
   KDB(7)> time time report
   Elapsed time since last leaving the debugger:
   0 upper ticks and 669242417 lower ticks.

[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]