Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2014 05:07:43 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262014 - stable/10/sys/kern
Message-ID:  <201402170507.s1H57hRX054884@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Feb 17 05:07:43 2014
New Revision: 262014
URL: http://svnweb.freebsd.org/changeset/base/262014

Log:
  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.

Modified:
  stable/10/sys/kern/sched_4bsd.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/kern/sched_4bsd.c
==============================================================================
--- stable/10/sys/kern/sched_4bsd.c	Mon Feb 17 05:07:09 2014	(r262013)
+++ stable/10/sys/kern/sched_4bsd.c	Mon Feb 17 05:07:43 2014	(r262014)
@@ -1033,7 +1033,7 @@ sched_switch(struct thread *td, struct t
 			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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402170507.s1H57hRX054884>