In thread_exit(), include more information about the thread/process

context in the KTR trace record.  In particular, include the same
information as passed for mi_switch() and fork_exit() KTR trace
records.
This commit is contained in:
Robert Watson 2004-08-06 22:06:14 +00:00
parent 5dd3a4ed6c
commit cc701b73b8

View File

@ -613,7 +613,8 @@ thread_exit(void)
KASSERT(ke != NULL, ("thread exiting without a kse"));
KASSERT(kg != NULL, ("thread exiting without a kse group"));
PROC_LOCK_ASSERT(p, MA_OWNED);
CTR1(KTR_PROC, "thread_exit: thread %p", td);
CTR3(KTR_PROC, "thread_exit: thread %p (pid %ld, %s)", td,
(long)p->p_pid, p->p_comm);
mtx_assert(&Giant, MA_NOTOWNED);
if (td->td_standin != NULL) {