diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2010-11-16 15:39:43 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:09:39 -0700 |
commit | e64be6fb7ce20ff8ae722200a28f220619af6589 (patch) | |
tree | af810888f64265db00ed6cc5237e895a21e28784 /drivers/misc | |
parent | c6fba16d4130b1bb0856b20c89072e9532944cbb (diff) | |
download | kernel_samsung_tuna-e64be6fb7ce20ff8ae722200a28f220619af6589.zip kernel_samsung_tuna-e64be6fb7ce20ff8ae722200a28f220619af6589.tar.gz kernel_samsung_tuna-e64be6fb7ce20ff8ae722200a28f220619af6589.tar.bz2 |
misc: kernel_debugger: Add help command
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/kernel_debugger.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/kernel_debugger.c b/drivers/misc/kernel_debugger.c index 20e1abb..4a9fef6 100644 --- a/drivers/misc/kernel_debugger.c +++ b/drivers/misc/kernel_debugger.c @@ -65,6 +65,14 @@ static void do_sysrq(struct kdbg_ctxt *ctxt, char rq) } } +static void do_help(struct kdbg_ctxt *ctxt) +{ + dprintf("Kernel Debugger commands:\n"); + dprintf(" ps Process list\n"); + dprintf(" sysrq sysrq options\n"); + dprintf(" sysrq <param> Execute sysrq with <param>\n"); +} + int kernel_debugger(struct kdbg_ctxt *ctxt, char *cmd) { if (!strcmp(cmd, "ps")) @@ -73,6 +81,8 @@ int kernel_debugger(struct kdbg_ctxt *ctxt, char *cmd) do_sysrq(ctxt, 'h'); if (!strncmp(cmd, "sysrq ", 6)) do_sysrq(ctxt, cmd[6]); + if (!strcmp(cmd, "help")) + do_help(ctxt); return 0; } |