kdb_cmds 833 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Initial commands for kdb, alter to suit your needs.
  2. # These commands are executed in kdb_init() context, no SMP, no
  3. # processes. Commands that require process data (including stack or
  4. # registers) are not reliable this early. set and bp commands should
  5. # be safe. Global breakpoint commands affect each cpu as it is booted.
  6. # Standard debugging information for first level support, just type archkdb
  7. # or archkdbcpu or archkdbshort at the kdb prompt.
  8. defcmd dumpcommon "" "Common kdb debugging"
  9. set BTAPROMPT 0
  10. set LINES 10000
  11. -summary
  12. -cpu
  13. -ps
  14. -dmesg 600
  15. -bt
  16. endefcmd
  17. defcmd dumpall "" "First line debugging"
  18. set BTSYMARG 1
  19. set BTARGS 9
  20. pid R
  21. -dumpcommon
  22. -bta
  23. endefcmd
  24. defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
  25. set BTSYMARG 1
  26. set BTARGS 9
  27. pid R
  28. -dumpcommon
  29. -btc
  30. endefcmd