FreeBSD/sys/kern/kern_ktrace.c
/*
 * ktrace itself generates events, such as context switches, which we do not
 * wish to trace.  Maintain a flag, TDP_INKTRACE, on each thread to determine
 * whether or not it is in a region where tracing of events should be
 * suppressed.
 */
ktrace itself generates events, such as context switches, which we do not
wish to trace.  Maintain a flag, TDP_INKTRACE, on each thread to determine
whether or not it is in a region where tracing of events should be
suppressed.
ktrace itself generates events such as context switches which we do not wish to trace . Maintain a flag TDP_INKTRACE on each thread to determine whether or not it is in a region where tracing of events should be suppressed .
static void
ktrace_enter(struct thread *td)
{
	KASSERT(!(td->td_pflags & TDP_INKTRACE), ("ktrace_enter: flag set"));
	td->td_pflags |= TDP_INKTRACE;
}
static void ktrace_enter ( struct thread * td ) { KASSERT ( ! ( td -> td_pflags & TDP_INKTRACE ) , ( " " ) ) ; td -> td_pflags |= TDP_INKTRACE ; }
ktrace itself generates events, such as context switches, which we do not
 wish to trace.
ktrace itself generates events such as context switches which we do not wish to trace .