Lines Matching refs:child

402 ia64_peek (struct task_struct *child, struct switch_stack *child_stack,  in ia64_peek()  argument
412 child_regs = task_pt_regs(child); in ia64_peek()
414 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; in ia64_peek()
424 ret = get_rnat(child, child_stack, krbs, rnat_addr, urbs_end); in ia64_peek()
456 copied = access_process_vm(child, addr, &ret, sizeof(ret), 0); in ia64_peek()
464 ia64_poke (struct task_struct *child, struct switch_stack *child_stack, in ia64_poke() argument
472 child_regs = task_pt_regs(child); in ia64_poke()
474 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; in ia64_poke()
484 put_rnat(child, child_stack, krbs, laddr, val, in ia64_poke()
492 } else if (access_process_vm(child, addr, &val, sizeof(val), 1) in ia64_poke()
507 ia64_get_user_rbs_end (struct task_struct *child, struct pt_regs *pt, in ia64_get_user_rbs_end() argument
513 krbs = (unsigned long *) child + IA64_RBS_OFFSET/8; in ia64_get_user_rbs_end()
535 ia64_sync_user_rbs (struct task_struct *child, struct switch_stack *sw, in ia64_sync_user_rbs() argument
543 ret = ia64_peek(child, sw, user_rbs_end, addr, &val); in ia64_sync_user_rbs()
546 if (access_process_vm(child, addr, &val, sizeof(val), 1) in ia64_sync_user_rbs()
554 ia64_sync_kernel_rbs (struct task_struct *child, struct switch_stack *sw, in ia64_sync_kernel_rbs() argument
562 if (access_process_vm(child, addr, &val, sizeof(val), 0) in ia64_sync_kernel_rbs()
566 ret = ia64_poke(child, sw, user_rbs_end, addr, val); in ia64_sync_kernel_rbs()
627 ptrace_attach_sync_user_rbs (struct task_struct *child) in ptrace_attach_sync_user_rbs() argument
640 if (child->sighand) { in ptrace_attach_sync_user_rbs()
641 spin_lock_irq(&child->sighand->siglock); in ptrace_attach_sync_user_rbs()
642 if (child->state == TASK_STOPPED && in ptrace_attach_sync_user_rbs()
643 !test_and_set_tsk_thread_flag(child, TIF_RESTORE_RSE)) { in ptrace_attach_sync_user_rbs()
644 set_notify_resume(child); in ptrace_attach_sync_user_rbs()
646 child->state = TASK_TRACED; in ptrace_attach_sync_user_rbs()
649 spin_unlock_irq(&child->sighand->siglock); in ptrace_attach_sync_user_rbs()
656 unw_init_from_blocked_task(&info, child); in ptrace_attach_sync_user_rbs()
664 if (child->sighand) { in ptrace_attach_sync_user_rbs()
665 spin_lock_irq(&child->sighand->siglock); in ptrace_attach_sync_user_rbs()
666 if (child->state == TASK_TRACED && in ptrace_attach_sync_user_rbs()
667 (child->signal->flags & SIGNAL_STOP_STOPPED)) { in ptrace_attach_sync_user_rbs()
668 child->state = TASK_STOPPED; in ptrace_attach_sync_user_rbs()
670 spin_unlock_irq(&child->sighand->siglock); in ptrace_attach_sync_user_rbs()
723 convert_to_non_syscall (struct task_struct *child, struct pt_regs *pt, in convert_to_non_syscall() argument
729 unw_init_from_blocked_task(&info, child); in convert_to_non_syscall()
736 if ((long)((unsigned long)child + IA64_STK_OFFSET - sp) in convert_to_non_syscall()
783 access_nat_bits (struct task_struct *child, struct pt_regs *pt, in access_nat_bits() argument
818 access_uarea (struct task_struct *child, unsigned long addr,
822 ptrace_getregs (struct task_struct *child, struct pt_all_user_regs __user *ppr) in ptrace_getregs() argument
836 pt = task_pt_regs(child); in ptrace_getregs()
837 sw = (struct switch_stack *) (child->thread.ksp + 16); in ptrace_getregs()
838 unw_init_from_blocked_task(&info, child); in ptrace_getregs()
848 if (access_uarea(child, PT_CR_IPSR, &psr, 0) < 0 in ptrace_getregs()
849 || access_uarea(child, PT_AR_EC, &ec, 0) < 0 in ptrace_getregs()
850 || access_uarea(child, PT_AR_LC, &lc, 0) < 0 in ptrace_getregs()
851 || access_uarea(child, PT_AR_RNAT, &rnat, 0) < 0 in ptrace_getregs()
852 || access_uarea(child, PT_AR_BSP, &bsp, 0) < 0 in ptrace_getregs()
853 || access_uarea(child, PT_CFM, &cfm, 0) in ptrace_getregs()
854 || access_uarea(child, PT_NAT_BITS, &nat_bits, 0)) in ptrace_getregs()
949 ia64_flush_fph(child); in ptrace_getregs()
950 retval |= __copy_to_user(&ppr->fr[32], &child->thread.fph, in ptrace_getregs()
966 ptrace_setregs (struct task_struct *child, struct pt_all_user_regs __user *ppr) in ptrace_setregs() argument
981 pt = task_pt_regs(child); in ptrace_setregs()
982 sw = (struct switch_stack *) (child->thread.ksp + 16); in ptrace_setregs()
983 unw_init_from_blocked_task(&info, child); in ptrace_setregs()
1086 ia64_sync_fph(child); in ptrace_setregs()
1087 retval |= __copy_from_user(&child->thread.fph, &ppr->fr[32], in ptrace_setregs()
1098 retval |= access_uarea(child, PT_CR_IPSR, &psr, 1); in ptrace_setregs()
1099 retval |= access_uarea(child, PT_AR_RSC, &rsc, 1); in ptrace_setregs()
1100 retval |= access_uarea(child, PT_AR_EC, &ec, 1); in ptrace_setregs()
1101 retval |= access_uarea(child, PT_AR_LC, &lc, 1); in ptrace_setregs()
1102 retval |= access_uarea(child, PT_AR_RNAT, &rnat, 1); in ptrace_setregs()
1103 retval |= access_uarea(child, PT_AR_BSP, &bsp, 1); in ptrace_setregs()
1104 retval |= access_uarea(child, PT_CFM, &cfm, 1); in ptrace_setregs()
1105 retval |= access_uarea(child, PT_NAT_BITS, &nat_bits, 1); in ptrace_setregs()
1112 user_enable_single_step (struct task_struct *child) in user_enable_single_step() argument
1114 struct ia64_psr *child_psr = ia64_psr(task_pt_regs(child)); in user_enable_single_step()
1116 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_single_step()
1121 user_enable_block_step (struct task_struct *child) in user_enable_block_step() argument
1123 struct ia64_psr *child_psr = ia64_psr(task_pt_regs(child)); in user_enable_block_step()
1125 set_tsk_thread_flag(child, TIF_SINGLESTEP); in user_enable_block_step()
1130 user_disable_single_step (struct task_struct *child) in user_disable_single_step() argument
1132 struct ia64_psr *child_psr = ia64_psr(task_pt_regs(child)); in user_disable_single_step()
1135 clear_tsk_thread_flag(child, TIF_SINGLESTEP); in user_disable_single_step()
1146 ptrace_disable (struct task_struct *child) in ptrace_disable() argument
1148 user_disable_single_step(child); in ptrace_disable()
1152 arch_ptrace (struct task_struct *child, long request, in arch_ptrace() argument
1159 if (access_process_vm(child, addr, &data, sizeof(data), 0) in arch_ptrace()
1172 if (access_uarea(child, addr, &data, 0) < 0) in arch_ptrace()
1180 if (access_uarea(child, addr, &data, 1) < 0) in arch_ptrace()
1186 return ptrace_request(child, PTRACE_GETSIGINFO, addr, data); in arch_ptrace()
1190 return ptrace_request(child, PTRACE_SETSIGINFO, addr, data); in arch_ptrace()
1193 return ptrace_getregs(child, in arch_ptrace()
1197 return ptrace_setregs(child, in arch_ptrace()
1201 return ptrace_request(child, request, addr, data); in arch_ptrace()
1906 access_uarea(struct task_struct *child, unsigned long addr, in access_uarea() argument
1943 ret = fpregs_set(child, NULL, pos, in access_uarea()
1946 ret = fpregs_get(child, NULL, pos, in access_uarea()
2036 ret = gpregs_set(child, NULL, pos, in access_uarea()
2039 ret = gpregs_get(child, NULL, pos, in access_uarea()
2049 ptr = &child->thread.ibr[0]; in access_uarea()
2052 ptr = &child->thread.dbr[0]; in access_uarea()
2078 if (pfm_use_debug_registers(child)) in access_uarea()
2082 if (!(child->thread.flags & IA64_THREAD_DBG_VALID)) { in access_uarea()
2083 child->thread.flags |= IA64_THREAD_DBG_VALID; in access_uarea()
2084 memset(child->thread.dbr, 0, in access_uarea()
2085 sizeof(child->thread.dbr)); in access_uarea()
2086 memset(child->thread.ibr, 0, in access_uarea()
2087 sizeof(child->thread.ibr)); in access_uarea()