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

Lines Matching refs:child

31  * does not yet catch signals sent when the child dies.
99 ptrace_getrn(struct task_struct *child, unsigned long insn)
104 val = get_user_reg(child, reg);
115 ptrace_getaluop2(struct task_struct *child, unsigned long insn)
126 val = get_user_reg (child, insn & 15);
129 shift = (int)get_user_reg (child, (insn >> 8) & 15);
153 ptrace_getldrop2(struct task_struct *child, unsigned long insn)
159 val = get_user_reg(child, insn & 15);
191 get_branch_address(struct task_struct *child, unsigned long pc, unsigned long insn)
206 aluop1 = ptrace_getrn(child, insn);
207 aluop2 = ptrace_getaluop2(child, insn);
208 ccbit = get_user_reg(child, REG_PSR) & PSR_C_BIT ? 1 : 0;
235 base = ptrace_getrn(child, insn);
240 aluop2 = ptrace_getldrop2(child, insn);
249 if (read_u32(child, base, &alt) == 0)
274 base = ptrace_getrn(child, insn);
276 if (read_u32(child, base + nr_regs, &alt) == 0)
356 void ptrace_set_bpt(struct task_struct *child)
363 regs = task_pt_regs(child);
366 res = read_instr(child, pc, &insn);
368 struct debug_info *dbg = &child->thread.debug;
373 alt = get_branch_address(child, pc, insn);
375 add_breakpoint(child, dbg, alt);
387 add_breakpoint(child, dbg, pc + 4);
393 * value if child was being single-stepped.
395 void ptrace_cancel_bpt(struct task_struct *child)
397 int i, nsaved = child->thread.debug.nsaved;
399 child->thread.debug.nsaved = 0;
407 clear_breakpoint(child, &child->thread.debug.bp[i]);
415 void ptrace_disable(struct task_struct *child)
417 child->ptrace &= ~PT_SINGLESTEP;
418 ptrace_cancel_bpt(child);
514 * Get the child FPU state.
523 * Set the child FPU state.
532 long arch_ptrace(struct task_struct *child, long request, long addr, long data)
539 * read word at location "addr" in the child process.
543 ret = access_process_vm(child, addr, &tmp,
552 ret = ptrace_read_user(child, addr, (unsigned long *)data);
560 ret = access_process_vm(child, addr, &data,
569 ret = ptrace_write_user(child, addr, data);
581 set_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
583 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
584 child->exit_code = data;
586 child->ptrace &= ~PT_SINGLESTEP;
587 ptrace_cancel_bpt(child);
588 wake_up_process(child);
593 * make the child exit. Best I can do is send it a sigkill.
599 child->ptrace &= ~PT_SINGLESTEP;
600 ptrace_cancel_bpt(child);
601 if (child->exit_state != EXIT_ZOMBIE) {
602 child->exit_code = SIGKILL;
603 wake_up_process(child);
615 child->ptrace |= PT_SINGLESTEP;
616 clear_tsk_thread_flag(child, TIF_SYSCALL_TRACE);
617 child->exit_code = data;
619 wake_up_process(child);
624 ret = ptrace_detach(child, data);
628 ret = ptrace_getregs(child, (void *)data);
632 ret = ptrace_setregs(child, (void *)data);
636 ret = ptrace_getfpregs(child, (void *)data);
640 ret = ptrace_setfpregs(child, (void *)data);
644 ret = ptrace_request(child, request, addr, data);