diff options
Diffstat (limited to 'kernel/debug/kdb/kdb_cmds')
-rw-r--r-- | kernel/debug/kdb/kdb_cmds | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/kernel/debug/kdb/kdb_cmds b/kernel/debug/kdb/kdb_cmds new file mode 100644 index 000000000000..56c88e4db309 --- /dev/null +++ b/kernel/debug/kdb/kdb_cmds | |||
@@ -0,0 +1,35 @@ | |||
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 | |||
7 | # Standard debugging information for first level support, just type archkdb | ||
8 | # or archkdbcpu or archkdbshort at the kdb prompt. | ||
9 | |||
10 | defcmd dumpcommon "" "Common kdb debugging" | ||
11 | set BTAPROMPT 0 | ||
12 | set LINES 10000 | ||
13 | -summary | ||
14 | -cpu | ||
15 | -ps | ||
16 | -dmesg 600 | ||
17 | -bt | ||
18 | endefcmd | ||
19 | |||
20 | defcmd dumpall "" "First line debugging" | ||
21 | set BTSYMARG 1 | ||
22 | set BTARGS 9 | ||
23 | pid R | ||
24 | -dumpcommon | ||
25 | -bta | ||
26 | endefcmd | ||
27 | |||
28 | defcmd dumpcpu "" "Same as dumpall but only tasks on cpus" | ||
29 | set BTSYMARG 1 | ||
30 | set BTARGS 9 | ||
31 | pid R | ||
32 | -dumpcommon | ||
33 | -btc | ||
34 | endefcmd | ||
35 | |||