Lines Matching refs:child

32  * does not yet catch signals sent when the child dies.
129 static inline void singlestep_disable(struct task_struct *child)
131 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS;
132 put_reg(child, PT_SR, tmp);
133 clear_tsk_thread_flag(child, TIF_DELAYED_TRACE);
139 void ptrace_disable(struct task_struct *child)
141 singlestep_disable(child);
144 void user_enable_single_step(struct task_struct *child)
146 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS;
147 put_reg(child, PT_SR, tmp | T1_BIT);
148 set_tsk_thread_flag(child, TIF_DELAYED_TRACE);
152 void user_enable_block_step(struct task_struct *child)
154 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS;
155 put_reg(child, PT_SR, tmp | T0_BIT);
159 void user_disable_single_step(struct task_struct *child)
161 singlestep_disable(child);
164 long arch_ptrace(struct task_struct *child, long request,
179 tmp = get_reg(child, regno);
181 tmp = child->thread.fp[regno - 21];
190 tmp = child->mm->start_code;
192 tmp = child->mm->start_data;
194 tmp = child->mm->end_code;
208 data |= get_reg(child, PT_SR) & ~SR_MASK;
211 if (put_reg(child, regno, data))
222 child->thread.fp[regno - 21] = data;
227 case PTRACE_GETREGS: /* Get all gp regs from the child. */
229 tmp = get_reg(child, i);
237 case PTRACE_SETREGS: /* Set all gp regs in the child. */
244 tmp |= get_reg(child, PT_SR) & ~SR_MASK;
246 put_reg(child, i, tmp);
251 case PTRACE_GETFPREGS: /* Get the child FPU state. */
252 if (copy_to_user(datap, &child->thread.fp,
257 case PTRACE_SETFPREGS: /* Set the child FPU state. */
258 if (copy_from_user(&child->thread.fp, datap,
264 ret = put_user(task_thread_info(child)->tp_value, datap);
268 ret = ptrace_request(child, request, addr, data);