kdb
[Top] [All Lists]

[PATCH 010/18] kdb-ps-show-all

To: undisclosed-recipients:;
Subject: [PATCH 010/18] kdb-ps-show-all
From: quilt@xxxxxxxxxxxxxxxx
Date: Thu Jul 10 16:25:03 EDT 2008
Resent-date: Thu, 10 Jul 2008 16:53:36 -0400
Resent-from: joe.korty@xxxxxxxx
Resent-message-id: <200807102053.m6AKraOB031233@xxxxxxxxxxxxxx>
Resent-to: kdb@xxxxxxxxxxx
Sender: kdb-bounce@xxxxxxxxxxx
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 <joe.korty@xxxxxxxx>

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.
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 010/18] kdb-ps-show-all, quilt <=