Lines Matching refs:pid
22 int save_i387_registers(int pid, unsigned long *fp_regs) in save_i387_registers() argument
24 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
29 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
37 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
42 return save_i387_registers(pid, fp_regs); in save_fp_registers()
45 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
47 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
52 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
59 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
64 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
69 int save_fpx_registers(int pid, unsigned long *fp_regs) in save_fpx_registers() argument
71 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) in save_fpx_registers()
76 int restore_fpx_registers(int pid, unsigned long *fp_regs) in restore_fpx_registers() argument
78 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) in restore_fpx_registers()
83 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
86 return save_fpx_registers(pid, regs); in get_fp_registers()
88 return save_fp_registers(pid, regs); in get_fp_registers()
91 int put_fp_registers(int pid, unsigned long *regs) in put_fp_registers() argument
94 return restore_fpx_registers(pid, regs); in put_fp_registers()
96 return restore_fp_registers(pid, regs); in put_fp_registers()
99 void arch_init_registers(int pid) in arch_init_registers() argument
104 err = ptrace(PTRACE_GETFPXREGS, pid, 0, &fpx_regs); in arch_init_registers()
116 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
118 return save_fp_registers(pid, regs); in get_fp_registers()
121 int put_fp_registers(int pid, unsigned long *regs) in put_fp_registers() argument
123 return restore_fp_registers(pid, regs); in put_fp_registers()
126 void arch_init_registers(int pid) in arch_init_registers() argument
138 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) == 0) in arch_init_registers()