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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to