[PATCH 010/18] kdb-ps-show-all
[email protected] Thu, 10 Jul 2008 21:59:30 +0000 (UTC)
| Newsgroups | gmane.linux.kernel.debugging |
|---|---|
| Message-ID | <[email protected]> |
Better document that kdb's 'ps A' command can be used to show _all_ processes and threads, not just those that kdb has deemed 'important'. Signed-off-by: Joe Korty <[email protected]> Index: 2.6.26-rc9/kdb/kdbmain.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 13:27:05.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 13:31:28.000000000 -0400 @@ -3170,13 +3170,13 @@ } kdb_while_each_thread(g, p); if (idle || daemon) { if (idle) - kdb_printf("%d idle process%s (state I)%s", + kdb_printf("%d idle process%s (state I)%s\n", idle, idle == 1 ? "" : "es", daemon ? " and " : ""); if (daemon) kdb_printf("%d sleeping system daemon (state M) process%s", daemon, daemon == 1 ? "" : "es"); - kdb_printf(" suppressed\n"); + kdb_printf(" suppressed,\nuse 'ps A' to see all.\n"); } } @@ -3925,7 +3925,7 @@ kdb_register_repeat("help", kdb_help, "", "Display Help Message", 1, KDB_REPEAT_NONE); kdb_register_repeat("?", kdb_help, "", "Display Help Message", 0, KDB_REPEAT_NONE); kdb_register_repeat("cpu", kdb_cpu, "<cpunum>","Switch to new cpu", 0, KDB_REPEAT_NONE); - kdb_register_repeat("ps", kdb_ps, "", "Display active task list", 0, KDB_REPEAT_NONE); + kdb_register_repeat("ps", kdb_ps, "[<flags>|A]", "Display active task list", 0, KDB_REPEAT_NONE); kdb_register_repeat("pid", kdb_pid, "<pidnum>", "Switch to another task", 0, KDB_REPEAT_NONE); kdb_register_repeat("reboot", kdb_reboot, "", "Reboot the machine immediately", 0, KDB_REPEAT_NONE); #if defined(CONFIG_MODULES) --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.