FreeBSD/sys/kern/kern_ktrace.c
/*
 * When a thread returns, drain any asynchronous records generated by the
 * system call.
 */
When a thread returns, drain any asynchronous records generated by the
system call.
When a thread returns drain any asynchronous records generated by the system call .
void
ktruserret(struct thread *td)
{
	ktrace_enter(td);
	sx_xlock(&ktrace_sx);
	ktr_drain(td);
	sx_xunlock(&ktrace_sx);
	ktrace_exit(td);
}
void ktruserret ( struct thread * td ) { ktrace_enter ( td ) ; sx_xlock ( & ktrace_sx ) ; ktr_drain ( td ) ; sx_xunlock ( & ktrace_sx ) ; ktrace_exit ( td ) ; }
When a thread returns, drain any asynchronous records generated by the
 system call.
When a thread returns drain any asynchronous records generated by the system call .