summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-05-21 17:17:56 +0000
committerjhb <jhb@FreeBSD.org>2010-05-21 17:17:56 +0000
commitcf780ce2673bbe22eebc547b9fcc51ba023bf5b7 (patch)
tree169c777469774e08c88e16f2820d11d6f8e15a22 /sys/kern
parentce208e1f416b3cd9a575871ae3bf80ee8d52d960 (diff)
downloadFreeBSD-src-cf780ce2673bbe22eebc547b9fcc51ba023bf5b7.zip
FreeBSD-src-cf780ce2673bbe22eebc547b9fcc51ba023bf5b7.tar.gz
- Adjust the whitespace for the lines that output fields in 'show pcpu' in
DDB so that all the fields line up. - Print out the tid of the per-CPU idlethread instead of the pid since the idle process is now shared across all idle threads. MFC after: 1 month
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_pcpu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/subr_pcpu.c b/sys/kern/subr_pcpu.c
index c63a971..ef69ff6 100644
--- a/sys/kern/subr_pcpu.c
+++ b/sys/kern/subr_pcpu.c
@@ -332,7 +332,7 @@ show_pcpu(struct pcpu *pc)
struct thread *td;
db_printf("cpuid = %d\n", pc->pc_cpuid);
- db_printf("dynamic pcpu = %p\n", (void *)pc->pc_dynamic);
+ db_printf("dynamic pcpu = %p\n", (void *)pc->pc_dynamic);
db_printf("curthread = ");
td = pc->pc_curthread;
if (td != NULL)
@@ -351,12 +351,11 @@ show_pcpu(struct pcpu *pc)
db_printf("idlethread = ");
td = pc->pc_idlethread;
if (td != NULL)
- db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid,
- td->td_name);
+ db_printf("%p: tid %d \"%s\"\n", td, td->td_tid, td->td_name);
else
db_printf("none\n");
db_show_mdpcpu(pc);
-
+
#ifdef VIMAGE
db_printf("curvnet = %p\n", pc->pc_curthread->td_vnet);
#endif
OpenPOWER on IntegriCloud