summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-07-03 07:39:06 +0000
committerjhb <jhb@FreeBSD.org>2001-07-03 07:39:06 +0000
commitd5b88d12934a97fb08c692d36246cb70c2a8464b (patch)
tree77d61b21c2a3446a67e74c57f0d687f607a23433 /sys
parent34ed38abdcda539c52735648d8150003f0e12a28 (diff)
downloadFreeBSD-src-d5b88d12934a97fb08c692d36246cb70c2a8464b.zip
FreeBSD-src-d5b88d12934a97fb08c692d36246cb70c2a8464b.tar.gz
Include the wait message and channel for msleep() in the KTR tracepoint.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_synch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 344719d..670b797 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -425,7 +425,8 @@ msleep(ident, mtx, priority, wmesg, timo)
p->p_wmesg = wmesg;
p->p_slptime = 0;
p->p_pri.pri_level = priority & PRIMASK;
- CTR3(KTR_PROC, "msleep: proc %p (pid %d, %s)", p, p->p_pid, p->p_comm);
+ CTR5(KTR_PROC, "msleep: proc %p (pid %d, %s) on %s (%p)", p, p->p_pid,
+ p->p_comm, wmesg, ident);
TAILQ_INSERT_TAIL(&slpque[LOOKUP(ident)], p, p_slpq);
if (timo)
callout_reset(&p->p_slpcallout, timo, endtsleep, p);
OpenPOWER on IntegriCloud