Lines Matching refs:ptrace
532 if (!p->ptrace && in reparent_leader()
568 BUG_ON((!t->ptrace) != (t->parent == father)); in forget_original_parent()
569 if (likely(!t->ptrace)) in forget_original_parent()
601 if (unlikely(tsk->ptrace)) { in exit_notify()
918 eligible_child(struct wait_opts *wo, bool ptrace, struct task_struct *p) in eligible_child() argument
927 if (ptrace || (wo->wo_flags & __WALL)) in eligible_child()
1127 static int *task_stopped_code(struct task_struct *p, bool ptrace) in task_stopped_code() argument
1129 if (ptrace) { in task_stopped_code()
1159 int ptrace, struct task_struct *p) in wait_task_stopped() argument
1169 if (!ptrace && !(wo->wo_flags & WUNTRACED)) in wait_task_stopped()
1172 if (!task_stopped_code(p, ptrace)) in wait_task_stopped()
1178 p_code = task_stopped_code(p, ptrace); in wait_task_stopped()
1204 why = ptrace ? CLD_TRAPPED : CLD_STOPPED; in wait_task_stopped()
1297 static int wait_consider_task(struct wait_opts *wo, int ptrace, in wait_consider_task() argument
1311 ret = eligible_child(wo, ptrace, p); in wait_consider_task()
1334 if (likely(!ptrace)) in wait_consider_task()
1339 if (likely(!ptrace) && unlikely(p->ptrace)) { in wait_consider_task()
1352 ptrace = 1; in wait_consider_task()
1364 if (unlikely(ptrace) || likely(!p->ptrace)) in wait_consider_task()
1388 if (likely(!ptrace) || (wo->wo_flags & (WCONTINUED | WEXITED))) in wait_consider_task()
1402 ret = wait_task_stopped(wo, ptrace, p); in wait_consider_task()