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
This commit is contained in:
Mark Johnston 2013-12-29 17:08:30 +00:00
parent 3236d72b84
commit 7dba784986
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260043

View File

@ -1032,7 +1032,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);