summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_synch.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2004-08-09 18:21:12 +0000
committerjulian <julian@FreeBSD.org>2004-08-09 18:21:12 +0000
commit61fada7840e0031c1ea485ad598d1368b9052ee9 (patch)
treee484c85519f8541c69c627ca0f305f7b5dcd0f51 /sys/kern/kern_synch.c
parent197114e321511b6704f9f173a2c769ffafd81610 (diff)
downloadFreeBSD-src-61fada7840e0031c1ea485ad598d1368b9052ee9.zip
FreeBSD-src-61fada7840e0031c1ea485ad598d1368b9052ee9.tar.gz
Increase the amount of data exported by KTR in the KTR_RUNQ setting.
This extra data is needed to really follow what is going on in the threaded case.
Diffstat (limited to 'sys/kern/kern_synch.c')
-rw-r--r--sys/kern/kern_synch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 2e48ef1..7830521 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -345,14 +345,14 @@ mi_switch(int flags, struct thread *newtd)
cnt.v_swtch++;
PCPU_SET(switchtime, new_switchtime);
PCPU_SET(switchticks, ticks);
- CTR3(KTR_PROC, "mi_switch: old thread %p (pid %ld, %s)",
- (void *)td, (long)p->p_pid, p->p_comm);
+ CTR4(KTR_PROC, "mi_switch: old thread %p (kse %p, pid %ld, %s)",
+ (void *)td, td->td_kse, (long)p->p_pid, p->p_comm);
if (td->td_proc->p_flag & P_SA)
thread_switchout(td);
sched_switch(td, newtd);
- CTR3(KTR_PROC, "mi_switch: new thread %p (pid %ld, %s)",
- (void *)td, (long)p->p_pid, p->p_comm);
+ CTR4(KTR_PROC, "mi_switch: new thread %p (kse %p, pid %ld, %s)",
+ (void *)td, td->td_kse, (long)p->p_pid, p->p_comm);
/*
* If the last thread was exiting, finish cleaning it up.
OpenPOWER on IntegriCloud