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/kern_synch.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/kern_synch.c')
-rw-r--r-- | sys/kern/kern_synch.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c index 71d5c27..ad797c1 100644 --- a/sys/kern/kern_synch.c +++ b/sys/kern/kern_synch.c @@ -419,16 +419,16 @@ mi_switch(int flags, struct thread *newtd) #if (KTR_COMPILE & KTR_SCHED) != 0 if (TD_IS_IDLETHREAD(td)) CTR3(KTR_SCHED, "mi_switch: %p(%s) prio %d idle", - td, td->td_proc->p_comm, td->td_priority); + td, td->td_name, td->td_priority); else if (newtd != NULL) CTR5(KTR_SCHED, "mi_switch: %p(%s) prio %d preempted by %p(%s)", - td, td->td_proc->p_comm, td->td_priority, newtd, - newtd->td_proc->p_comm); + td, td->td_name, td->td_priority, newtd, + newtd->td_name); else CTR6(KTR_SCHED, "mi_switch: %p(%s) prio %d inhibit %d wmesg %s lock %s", - td, td->td_proc->p_comm, td->td_priority, + td, td->td_name, td->td_priority, td->td_inhibitors, td->td_wmesg, td->td_lockname); #endif /* @@ -441,7 +441,7 @@ mi_switch(int flags, struct thread *newtd) #endif sched_switch(td, newtd, flags); CTR3(KTR_SCHED, "mi_switch: running %p(%s) prio %d", - td, td->td_proc->p_comm, td->td_priority); + td, td->td_name, td->td_priority); CTR4(KTR_PROC, "mi_switch: new thread %ld (kse %p, pid %ld, %s)", td->td_tid, td->td_sched, p->p_pid, p->p_comm); |