Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Dec 2013 17:08:30 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r260043 - head/sys/kern
Message-ID:  <201312291708.rBTH8UUx028083@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Sun Dec 29 17:08:30 2013
New Revision: 260043
URL: http://svnweb.freebsd.org/changeset/base/260043

Log:
  The arguments to sched:::off-cpu are the thread and associated process of
  the thread selected to run, not the currently running thread. This fix has
  already been made for ULE in r252070.
  
  PR:		177706
  MFC after:	1 week

Modified:
  head/sys/kern/sched_4bsd.c

Modified: head/sys/kern/sched_4bsd.c
==============================================================================
--- head/sys/kern/sched_4bsd.c	Sun Dec 29 17:03:45 2013	(r260042)
+++ head/sys/kern/sched_4bsd.c	Sun Dec 29 17:08:30 2013	(r260043)
@@ -1032,7 +1032,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?201312291708.rBTH8UUx028083>