Lines Matching refs:child

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()
150 void user_enable_block_step(struct task_struct *child) in user_enable_block_step() argument
152 unsigned long tmp = get_reg(child, PT_SR) & ~TRACE_BITS; in user_enable_block_step()
153 put_reg(child, PT_SR, tmp | T0_BIT); in user_enable_block_step()
157 void user_disable_single_step(struct task_struct *child) in user_disable_single_step() argument
159 singlestep_disable(child); in user_disable_single_step()
162 long arch_ptrace(struct task_struct *child, long request, in arch_ptrace() argument
177 tmp = get_reg(child, regno); in arch_ptrace()
179 tmp = child->thread.fp[regno - 21]; in arch_ptrace()
188 tmp = child->mm->start_code; in arch_ptrace()
190 tmp = child->mm->start_data; in arch_ptrace()
192 tmp = child->mm->end_code; in arch_ptrace()
206 data |= get_reg(child, PT_SR) & ~SR_MASK; in arch_ptrace()
209 if (put_reg(child, regno, data)) in arch_ptrace()
220 child->thread.fp[regno - 21] = data; in arch_ptrace()
227 tmp = get_reg(child, i); in arch_ptrace()
242 tmp |= get_reg(child, PT_SR) & ~SR_MASK; in arch_ptrace()
244 put_reg(child, i, tmp); in arch_ptrace()
250 if (copy_to_user(datap, &child->thread.fp, in arch_ptrace()
256 if (copy_from_user(&child->thread.fp, datap, in arch_ptrace()
262 ret = put_user(task_thread_info(child)->tp_value, datap); in arch_ptrace()
266 ret = ptrace_request(child, request, addr, data); in arch_ptrace()