Lines Matching full:child
75 int putreg(struct task_struct *child, int regno, unsigned long value) in putreg() argument
91 UPT_SYSCALL_NR(&child->thread.regs.regs) = value; in putreg()
115 child->thread.regs.regs.gp[HOST_EFLAGS] |= value; in putreg()
120 child->thread.regs.regs.gp[reg_offsets[regno]] = value; in putreg()
124 int poke_user(struct task_struct *child, long addr, long data) in poke_user() argument
130 return putreg(child, addr, data); in poke_user()
137 child->thread.arch.debugregs[addr] = data; in poke_user()
143 unsigned long getreg(struct task_struct *child, int regno) in getreg() argument
172 return mask & child->thread.regs.regs.gp[reg_offsets[regno]]; in getreg()
176 int peek_user(struct task_struct *child, long addr, long data) in peek_user() argument
185 tmp = getreg(child, addr); in peek_user()
191 tmp = child->thread.arch.debugregs[addr]; in peek_user()
196 static int get_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) in get_fpregs() argument
198 int err, n, cpu = task_cpu(child); in get_fpregs()
213 static int set_fpregs(struct user_i387_struct __user *buf, struct task_struct *child) in set_fpregs() argument
215 int n, cpu = task_cpu(child); in set_fpregs()
226 static int get_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) in get_fpxregs() argument
228 int err, n, cpu = task_cpu(child); in get_fpxregs()
242 static int set_fpxregs(struct user_fxsr_struct __user *buf, struct task_struct *child) in set_fpxregs() argument
244 int n, cpu = task_cpu(child); in set_fpxregs()
255 long subarch_ptrace(struct task_struct *child, long request, in subarch_ptrace() argument
261 case PTRACE_GETFPREGS: /* Get the child FPU state. */ in subarch_ptrace()
262 ret = get_fpregs(datap, child); in subarch_ptrace()
264 case PTRACE_SETFPREGS: /* Set the child FPU state. */ in subarch_ptrace()
265 ret = set_fpregs(datap, child); in subarch_ptrace()
267 case PTRACE_GETFPXREGS: /* Get the child FPU state. */ in subarch_ptrace()
268 ret = get_fpxregs(datap, child); in subarch_ptrace()
270 case PTRACE_SETFPXREGS: /* Set the child FPU state. */ in subarch_ptrace()
271 ret = set_fpxregs(datap, child); in subarch_ptrace()