Lines Matching full:child
53 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
77 UPT_SYSCALL_NR(&child->thread.regs.regs) = value; in putreg()
99 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg()
106 child->thread.regs.regs.gp[reg_offsets[regno >> 3]] = value; in putreg()
110 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument
116 return putreg(child, addr, data); in poke_user()
123 child->thread.arch.debugregs[addr] = data; in poke_user()
129 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
167 return mask & child->thread.regs.regs.gp[reg_offsets[regno >> 3]]; in getreg()
170 int peek_user(struct task_struct *child, long addr, long data) in peek_user() argument
180 tmp = getreg(child, addr); in peek_user()
185 tmp = child->thread.arch.debugregs[addr]; in peek_user()
216 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) in get_fpregs() argument
218 int err, n, cpu = ((struct thread_info *) child->stack)->cpu; in get_fpregs()
233 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) in set_fpregs() argument
235 int n, cpu = ((struct thread_info *) child->stack)->cpu; in set_fpregs()
246 long subarch_ptrace(struct task_struct *child, long request, in subarch_ptrace() argument
253 case PTRACE_GETFPREGS: /* Get the child FPU state. */ in subarch_ptrace()
254 ret = get_fpregs(datap, child); in subarch_ptrace()
256 case PTRACE_SETFPREGS: /* Set the child FPU state. */ in subarch_ptrace()
257 ret = set_fpregs(datap, child); in subarch_ptrace()
261 ret = arch_prctl(child, data, (void __user *) addr); in subarch_ptrace()