On Tue, 12 Aug 2003 15:59:00 +1000,
Martin Pool <[EMAIL PROTECTED]> wrote:
>--- linux-2.6.0test2-ia64-kdb-orig/kdb/kdbmain.c 2003-08-12 15:46:44.000000000
>+1000
>+++ linux-2.6.0test2-ia64-kdb/kdb/kdbmain.c 2003-08-12 15:30:52.000000000 +1000
>@@ -2959,12 +2959,20 @@ kdb_ps(int argc, const char **argv, cons
> mask = kdb_task_state_string(argc, argv, envp);
> /* Run the active tasks first */
> for (cpu = 0; cpu < NR_CPUS; ++cpu) {
That line is wrong. In kdb v4.3 it reads
for (cpu = 0; cpu < smp_num_cpus; ++cpu) {
which, together with code in sched.c that ensures kdb_active_task[cpu]
is always set, removes the need for the other tests. IOW,
kdb_active_task[cpu] is always defined.
>+ /* FIXME: Running tasks are printed out twice: once above for
>+ * the CPU, and then again here. */
Deliberately so. The first bit displays the tasks that own the cpus,
the second bit displays all of the tasks. It is harder for the user if
they have to hunt between the two sections to find processes, a little
bit of duplication to assist the user is no big deal.