From c2f0a734bb7439e250a81cc391a628813b7f2014 Mon Sep 17 00:00:00 2001 From: markj Date: Mon, 17 Feb 2014 05:07:43 +0000 Subject: [PATCH] MFC r260043: The arguments to sched:::off-cpu are the thread and associated process of the thread selected to run, not the currently running thread. git-svn-id: svn://svn.freebsd.org/base/stable/10@262014 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/kern/sched_4bsd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/sched_4bsd.c b/sys/kern/sched_4bsd.c index 93866c78e..ead0515d4 100644 --- a/sys/kern/sched_4bsd.c +++ b/sys/kern/sched_4bsd.c @@ -1033,7 +1033,7 @@ sched_switch(struct thread *td, struct thread *newtd, int flags) 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); /* I feel sleepy */ lock_profile_release_lock(&sched_lock.lock_object); -- 2.45.0