summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-08-06 22:06:14 +0000
committerrwatson <rwatson@FreeBSD.org>2004-08-06 22:06:14 +0000
commitee17f9503f9f951550c3d9c416538292ae1655fa (patch)
tree4774d4b61f4b517bf429833721e5b04d4319995b /sys/kern
parentd6384e3daf0b12b8e22a89d8a3b6e758de4790d4 (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_thread.c3
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) {
OpenPOWER on IntegriCloud