diff options
author | Julian Elischer <julian@FreeBSD.org> | 2007-11-14 06:21:24 +0000 |
---|---|---|
committer | Julian Elischer <julian@FreeBSD.org> | 2007-11-14 06:21:24 +0000 |
commit | 431f89061443375688abea4e01c0b01936f0f905 (patch) | |
tree | 55718e91180bcb3bddcd007fc62792945ab8ae97 /sys/kern/kern_switch.c | |
parent | ca081fdbc5aa456250f138fa6fe1444553664721 (diff) | |
download | src-431f89061443375688abea4e01c0b01936f0f905.tar.gz src-431f89061443375688abea4e01c0b01936f0f905.zip |
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.
Notes
Notes:
svn path=/head/; revision=173600
Diffstat (limited to 'sys/kern/kern_switch.c')
-rw-r--r-- | sys/kern/kern_switch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_switch.c b/sys/kern/kern_switch.c index 994e604b9fac..cdc5b8a68865 100644 --- a/sys/kern/kern_switch.c +++ b/sys/kern/kern_switch.c @@ -163,7 +163,7 @@ critical_enter(void) td = curthread; td->td_critnest++; CTR4(KTR_CRITICAL, "critical_enter by thread %p (%ld, %s) to %d", td, - (long)td->td_proc->p_pid, td->td_proc->p_comm, td->td_critnest); + (long)td->td_proc->p_pid, td->td_name, td->td_critnest); } void @@ -189,7 +189,7 @@ critical_exit(void) td->td_critnest--; CTR4(KTR_CRITICAL, "critical_exit by thread %p (%ld, %s) to %d", td, - (long)td->td_proc->p_pid, td->td_proc->p_comm, td->td_critnest); + (long)td->td_proc->p_pid, td->td_name, td->td_critnest); } /* @@ -260,7 +260,7 @@ maybe_preempt(struct thread *td) MPASS(TD_ON_RUNQ(td)); TD_SET_RUNNING(td); CTR3(KTR_PROC, "preempting to thread %p (pid %d, %s)\n", td, - td->td_proc->p_pid, td->td_proc->p_comm); + td->td_proc->p_pid, td->td_name); SCHED_STAT_INC(switch_preempt); mi_switch(SW_INVOL|SW_PREEMPT, td); /* |