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

Function ktrprocctor

freebsd/kern/kern_ktrace.c:566–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void
567ktrprocctor(struct proc *p)
568{
569 struct thread *td = curthread;
570
571 if ((p->p_traceflag & KTRFAC_MASK) == 0)
572 return;
573
574 ktrace_enter(td);
575 ktrprocctor_entered(td, p);
576 ktrace_exit(td);
577}
578
579/*
580 * When a process forks, enable tracing in the new process if needed.

Callers 2

ktrprocforkFunction · 0.85
do_execveFunction · 0.85

Calls 3

ktrace_enterFunction · 0.85
ktrprocctor_enteredFunction · 0.85
ktrace_exitFunction · 0.85

Tested by

no test coverage detected