diff options
author | julian <julian@FreeBSD.org> | 2007-11-14 06:21:24 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2007-11-14 06:21:24 +0000 |
commit | b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda (patch) | |
tree | 55718e91180bcb3bddcd007fc62792945ab8ae97 /sys/kern/subr_pcpu.c | |
parent | b248158d8d9ce6732f5835ff5c90efc7eae9d38a (diff) | |
download | FreeBSD-src-b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda.zip FreeBSD-src-b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda.tar.gz |
generally we are interested in what thread did something as
opposed to what process. Since threads by default have teh name of the
process unless over-written with more useful information, just print the
thread name instead.
Diffstat (limited to 'sys/kern/subr_pcpu.c')
-rw-r--r-- | sys/kern/subr_pcpu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/subr_pcpu.c b/sys/kern/subr_pcpu.c index 1109b31..d0fd061 100644 --- a/sys/kern/subr_pcpu.c +++ b/sys/kern/subr_pcpu.c @@ -112,7 +112,7 @@ show_pcpu(struct pcpu *pc) td = pc->pc_curthread; if (td != NULL) db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, - td->td_proc->p_comm); + td->td_name); else db_printf("none\n"); db_printf("curpcb = %p\n", pc->pc_curpcb); @@ -120,14 +120,14 @@ show_pcpu(struct pcpu *pc) td = pc->pc_fpcurthread; if (td != NULL) db_printf("%p: pid %d \"%s\"\n", td, td->td_proc->p_pid, - td->td_proc->p_comm); + td->td_name); else db_printf("none\n"); 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_proc->p_comm); + td->td_name); else db_printf("none\n"); db_show_mdpcpu(pc); |