MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ktrace_enter

Function ktrace_enter

freebsd/kern/kern_ktrace.c:170–176  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

168 * suppressed.
169 */
170static void
171ktrace_enter(struct thread *td)
172{
173
174 KASSERT(!(td->td_pflags & TDP_INKTRACE), ("ktrace_enter: flag set"));
175 td->td_pflags |= TDP_INKTRACE;
176}
177
178static void
179ktrace_exit(struct thread *td)

Callers 6

ktr_getrequestFunction · 0.85
ktrprocexitFunction · 0.85
ktrprocctorFunction · 0.85
ktruserretFunction · 0.85
sys_ktraceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected