From 7d2034b089e895f5366b64697334cd7e3a1ab706 Mon Sep 17 00:00:00 2001 From: gnn Date: Fri, 21 Jun 2013 21:38:48 +0000 Subject: [PATCH] MFC: 249514 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 git-svn-id: svn://svn.freebsd.org/base/stable/9@252070 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/kern/sched_ule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_ule.c b/sys/kern/sched_ule.c index d05e73721..49e1f99da 100644 --- a/sys/kern/sched_ule.c +++ b/sys/kern/sched_ule.c @@ -1896,7 +1896,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); -- 2.45.0