Lines Matching full:child
30 * does not yet catch signals sent when the child dies.
127 static inline void singlestep_disable(struct task_struct *child) in singlestep_disable() argument
129 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in singlestep_disable()
130 put_reg(child, PT_SR, tmp); in singlestep_disable()
131 clear_tsk_thread_flag(child, TIF_DELAYED_TRACE); in singlestep_disable()
137 void ptrace_disable(struct task_struct *child) in ptrace_disable() argument
139 singlestep_disable(child); in ptrace_disable()
142 void user_enable_single_step(struct task_struct *child) in user_enable_single_step() argument
144 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in user_enable_single_step()
145 put_reg(child, PT_SR, tmp | T1_BIT); in user_enable_single_step()
146 set_tsk_thread_flag(child, TIF_DELAYED_TRACE); in user_enable_single_step()
149 void user_enable_block_step(struct task_struct *child) in user_enable_block_step() argument
151 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in user_enable_block_step()
152 put_reg(child, PT_SR, tmp | T0_BIT); in user_enable_block_step()
155 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
157 singlestep_disable(child); in user_disable_single_step()
160 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
175 tmp = get_reg(child, regno); in arch_ptrace()
177 tmp = child->thread.fp[regno - 21]; in arch_ptrace()
196 data |= get_reg(child, PT_SR) & ~SR_MASK; in arch_ptrace()
199 if (put_reg(child, regno, data)) in arch_ptrace()
210 child->thread.fp[regno - 21] = data; in arch_ptrace()
215 case PTRACE_GETREGS: /* Get all gp regs from the child. */ in arch_ptrace()
217 tmp = get_reg(child, i); in arch_ptrace()
225 case PTRACE_SETREGS: /* Set all gp regs in the child. */ in arch_ptrace()
232 tmp |= get_reg(child, PT_SR) & ~SR_MASK; in arch_ptrace()
234 put_reg(child, i, tmp); in arch_ptrace()
239 case PTRACE_GETFPREGS: /* Get the child FPU state. */ in arch_ptrace()
240 if (copy_to_user(datap, &child->thread.fp, in arch_ptrace()
245 case PTRACE_SETFPREGS: /* Set the child FPU state. */ in arch_ptrace()
246 if (copy_from_user(&child->thread.fp, datap, in arch_ptrace()
252 ret = put_user(task_thread_info(child)->tp_value, datap); in arch_ptrace()
256 ret = ptrace_request(child, request, addr, data); in arch_ptrace()