| 590 | #endif |
| 591 | |
| 592 | void |
| 593 | proc_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 | |
| 604 | int |
| 605 | kern_ptrace(struct thread *td, int req, pid_t pid, void *addr, int data) |
no outgoing calls
no test coverage detected