Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/sparc LWPify cpu_debug_dump().



details:   https://anonhg.NetBSD.org/src/rev/c329e0829888
branches:  trunk
changeset: 542177:c329e0829888
user:      pk <pk%NetBSD.org@localhost>
date:      Thu Jan 23 11:50:50 2003 +0000

description:
LWPify cpu_debug_dump().

diffstat:

 sys/arch/sparc/sparc/cpu.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 7b6ec517fcd8 -r c329e0829888 sys/arch/sparc/sparc/cpu.c
--- a/sys/arch/sparc/sparc/cpu.c        Thu Jan 23 08:53:46 2003 +0000
+++ b/sys/arch/sparc/sparc/cpu.c        Thu Jan 23 11:50:50 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.170 2003/01/21 06:18:41 sjg Exp $ */
+/*     $NetBSD: cpu.c,v 1.171 2003/01/23 11:50:50 pk Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -2164,13 +2164,15 @@
        struct cpu_info *ci;
        CPU_INFO_ITERATOR cii;
 
-       db_printf("addr         cpuid   flags   curproc         fpproc\n");
+       db_printf("%-4s %-10s %-8s %-10s %-10s %-10s\n",
+                   "CPU#", "CPUINFO", "FLAGS", "CURLWP", "CURPROC", "FPLWP");
        for (CPU_INFO_FOREACH(cii, ci)) {
-               db_printf("%p   %d      %x      %10p    %10p\n",
+               db_printf("%-4d %-10p %-8x %-10p %-10p %-10p\n",
+                   ci->ci_cpuid,
                    ci,
-                   ci->ci_cpuid,
                    ci->flags,
                    ci->ci_curlwp,
+                   ci->ci_curlwp == NULL ? NULL : ci->ci_curlwp->l_proc,
                    ci->fplwp);
        }
 }



Home | Main Index | Thread Index | Old Index