summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorNitin Kumbhar <nkumbhar@nvidia.com>2010-11-18 11:14:39 +0530
committerNitin Kumbhar <nkumbhar@nvidia.com>2010-11-18 11:14:39 +0530
commitcfb26ef11de2e16cb7e3e4be2b60513323769a47 (patch)
treeb400e10d51948ec0ed16aada09cd2078c41416d8 /drivers/misc
parenteab94951f140beb6ed5465208cf0b0bd518b7bdc (diff)
parent3f396ff1233b0bb54ae492e89293e2204ffa0936 (diff)
Merge branch android-tegra-2.6.36 into git-master/linux-2.6/android-tegra-2.6.36
Change-Id: Ib01f171e7159768fc5ed3509b5a3e0b987dc57ef
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/kernel_debugger.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/misc/kernel_debugger.c b/drivers/misc/kernel_debugger.c
index 20e1abbfbec7..4a9fef6244ed 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;
}