• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/cris/arch-v32/kernel/

Lines Matching refs:child

32 static unsigned long get_pseudo_pc(struct task_struct *child);
87 ptrace_disable(struct task_struct *child)
92 tmp = get_reg(child, PT_CCS) & ~SBIT_USER;
93 put_reg(child, PT_CCS, tmp);
94 put_reg(child, PT_SPC, 0);
96 /* Deconfigure any watchpoints associated with the child. */
97 deconfigure_bp(child->pid);
101 long arch_ptrace(struct task_struct *child, long request, long addr, long data)
123 copied = access_process_vm(child, addr, &tmp, sizeof(tmp), 0);
141 tmp = get_reg(child, addr >> 2);
151 if (access_process_vm(child, addr, &data, sizeof(data), 1) == sizeof(data))
170 data |= get_reg(child, PT_CCS) & ~CCS_MASK;
172 if (put_reg(child, addr, data))
185 put_reg(child, PT_SPC, 0);
187 if (!get_debugreg(child->pid, PT_BP_CTRL)) {
190 tmp = get_reg(child, PT_CCS) & ~SBIT_USER;
191 put_reg(child, PT_CCS, tmp);
195 set_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
198 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
201 child->exit_code = data;
204 wake_up_process(child);
209 /* Make the child exit by sending it a sigkill. */
213 if (child->exit_state == EXIT_ZOMBIE)
216 child->exit_code = SIGKILL;
219 ptrace_disable(child);
222 wake_up_process(child);
232 if (!get_reg(child, PT_SPC)) {
234 tmp = get_reg(child, PT_ERP) & ~1;
235 put_reg(child, PT_SPC, tmp);
237 tmp = get_reg(child, PT_CCS) | SBIT_USER;
238 put_reg(child, PT_CCS, tmp);
243 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
247 child->exit_code = data;
248 wake_up_process(child);
254 ret = ptrace_detach(child, data);
257 /* Get all GP registers from the child. */
263 tmp = get_reg(child, i);
277 /* Set all GP registers in the child. */
290 tmp |= get_reg(child, PT_CCS) & ~CCS_MASK;
293 put_reg(child, i, tmp);
302 ret = ptrace_request(child, request, addr, data);
334 static int insn_size(struct task_struct *child, unsigned long pc)
341 copied = access_process_vm(child, pc, &opcode, sizeof(opcode), 0);
370 static unsigned long get_pseudo_pc(struct task_struct *child)
373 unsigned long pc = get_reg(child, PT_ERP);
376 unsigned long spc = get_reg(child, PT_SPC);
384 pc += insn_size(child, pc & ~1) - 1;