diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-08-06 22:06:14 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-08-06 22:06:14 +0000 |
commit | ee17f9503f9f951550c3d9c416538292ae1655fa (patch) | |
tree | 4774d4b61f4b517bf429833721e5b04d4319995b | |
parent | d6384e3daf0b12b8e22a89d8a3b6e758de4790d4 (diff) | |
download | FreeBSD-src-ee17f9503f9f951550c3d9c416538292ae1655fa.zip FreeBSD-src-ee17f9503f9f951550c3d9c416538292ae1655fa.tar.gz |
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.
-rw-r--r-- | sys/kern/kern_thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 7f6ef95..77df263 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -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) { |