FreeBSD/sys/kern/kern_ktrace.c
/*
 * Submit a trace record for immediate commit to disk -- to be used only
 * where entering VFS is OK.  First drain any pending records that may have
 * been cached in the thread.
 */
Submit a trace record for immediate commit to disk -- to be used only
where entering VFS is OK.  First drain any pending records that may have
been cached in the thread.
Submit a trace record for immediate commit to disk -- to be used only where entering VFS is OK . First drain any pending records that may have been cached in the thread .
static void
ktr_submitrequest(struct thread *td, struct ktr_request *req)
{
	ktrace_assert(td);
	sx_xlock(&ktrace_sx);
	ktr_drain(td);
	ktr_writerequest(td, req);
	ktr_freerequest(req);
	sx_xunlock(&ktrace_sx);
	ktrace_exit(td);
}
static void ktr_submitrequest ( struct thread * td , struct ktr_request * req ) { ktrace_assert ( td ) ; sx_xlock ( & ktrace_sx ) ; ktr_drain ( td ) ; ktr_writerequest ( td , req ) ; ktr_freerequest ( req ) ; sx_xunlock ( & ktrace_sx ) ; ktrace_exit ( td ) ; }
Submit a trace record for immediate commit to disk -- to be used only
 where entering VFS is OK.  First drain any pending records that may have
 been cached in the thread.
Submit a trace record for immediate commit to disk -- to be used only where entering VFS is OK . First drain any pending records that may have been cached in the thread .