summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorgnn <gnn@FreeBSD.org>2013-04-15 17:21:02 +0000
committergnn <gnn@FreeBSD.org>2013-04-15 17:21:02 +0000
commit59c782b807d47a663c8f3c0adbd7f301975d61c8 (patch)
tree66fe605c17f5c8af6367094d455492de47b62d1e /sys/kern
parent489cecec20bd5db6c94072e050f6496a28f8ef2e (diff)
downloadFreeBSD-src-59c782b807d47a663c8f3c0adbd7f301975d61c8.zip
FreeBSD-src-59c782b807d47a663c8f3c0adbd7f301975d61c8.tar.gz
Point args[0] not at the thread that is ending but at the one that
is starting. This is in line with practice in OpenSolaris. Note that this change is only in ULE and not in the 4BSD scheduler. Once this change settles in (MFC timeout has expired) we'll try it out on 4BSD as well. PR: 177706 Submitted by: Tiwei Bie MFC after: 1 month
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/sched_ule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c
index 107a15d..95105d8 100644
--- a/sys/kern/sched_ule.c
+++ b/sys/kern/sched_ule.c
@@ -1930,7 +1930,7 @@ sched_switch(struct thread *td, struct thread *newtd, int flags)
if (PMC_PROC_IS_USING_PMCS(td->td_proc))
PMC_SWITCH_CONTEXT(td, PMC_FN_CSW_OUT);
#endif
- SDT_PROBE2(sched, , , off_cpu, td, td->td_proc);
+ SDT_PROBE2(sched, , , off_cpu, newtd, newtd->td_proc);
lock_profile_release_lock(&TDQ_LOCKPTR(tdq)->lock_object);
TDQ_LOCKPTR(tdq)->mtx_lock = (uintptr_t)newtd;
sched_pctcpu_update(newtd->td_sched, 0);
OpenPOWER on IntegriCloud