]> git.baikalelectronics.ru Git - kernel.git/commit
kdb: Categorize kdb commands (similar to SysRq categorization)
authorDaniel Thompson <daniel.thompson@linaro.org>
Thu, 6 Nov 2014 14:36:45 +0000 (14:36 +0000)
committerJason Wessel <jason.wessel@windriver.com>
Tue, 11 Nov 2014 15:31:52 +0000 (09:31 -0600)
commit6fd4db7a1281409910eb0f879e28abf235c3a9c9
tree7a218cc1706c3c3842f73b6c03d8afc6a34f61ae
parent15f53887ab2e64507542a96d0cfd6894c438e754
kdb: Categorize kdb commands (similar to SysRq categorization)

This patch introduces several new flags to collect kdb commands into
groups (later allowing them to be optionally disabled).

This follows similar prior art to enable/disable magic sysrq
commands.

The commands have been categorized as follows:

Always on:  go (w/o args), env, set, help, ?, cpu (w/o args), sr,
            dmesg, disable_nmi, defcmd, summary, grephelp
Mem read:   md, mdr, mdp, mds, ef, bt (with args), per_cpu
Mem write:  mm
Reg read:   rd
Reg write:  go (with args), rm
Inspect:    bt (w/o args), btp, bta, btc, btt, ps, pid, lsmod
Flow ctrl:  bp, bl, bph, bc, be, bd, ss
Signal:     kill
Reboot:     reboot
All:        cpu, kgdb, (and all of the above), nmi_console

Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
include/linux/kdb.h
kernel/debug/kdb/kdb_bp.c
kernel/debug/kdb/kdb_main.c
kernel/trace/trace_kdb.c