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

Function proc_set_traced

freebsd/kern/sys_process.c:592–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590#endif
591
592void
593proc_set_traced(struct proc *p, bool stop)
594{
595
596 sx_assert(&proctree_lock, SX_XLOCKED);
597 PROC_LOCK_ASSERT(p, MA_OWNED);
598 p->p_flag |= P_TRACED;
599 if (stop)
600 p->p_flag2 |= P2_PTRACE_FSTP;
601 p->p_ptevents = PTRACE_DEFAULT;
602}
603
604int
605kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data)

Callers 2

do_forkFunction · 0.85
kern_ptraceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected