From b2732e0c22b45ce7f1225a9c12834ec8c6bf9dda Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 14 Nov 2007 06:21:24 +0000 Subject: 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. --- sys/kern/kern_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/kern_clock.c') diff --git a/sys/kern/kern_clock.c b/sys/kern/kern_clock.c index 210f5d3..506b5a2 100644 --- a/sys/kern/kern_clock.c +++ b/sys/kern/kern_clock.c @@ -465,7 +465,7 @@ statclock(int usermode) if (ru->ru_maxrss < rss) ru->ru_maxrss = rss; CTR4(KTR_SCHED, "statclock: %p(%s) prio %d stathz %d", - td, td->td_proc->p_comm, td->td_priority, (stathz)?stathz:hz); + td, td->td_name, td->td_priority, (stathz)?stathz:hz); sched_clock(td); thread_unlock(td); } -- cgit v1.1