Lines Matching refs:pid

21 int save_i387_registers(int pid, unsigned long *fp_regs)  in save_i387_registers()  argument
23 if (ptrace(PTRACE_GETFPREGS, pid, 0, fp_regs) < 0) in save_i387_registers()
28 int save_fp_registers(int pid, unsigned long *fp_regs) in save_fp_registers() argument
36 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in save_fp_registers()
41 return save_i387_registers(pid, fp_regs); in save_fp_registers()
44 int restore_i387_registers(int pid, unsigned long *fp_regs) in restore_i387_registers() argument
46 if (ptrace(PTRACE_SETFPREGS, pid, 0, fp_regs) < 0) in restore_i387_registers()
51 int restore_fp_registers(int pid, unsigned long *fp_regs) in restore_fp_registers() argument
58 if (ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov) < 0) in restore_fp_registers()
63 return restore_i387_registers(pid, fp_regs); in restore_fp_registers()
68 int save_fpx_registers(int pid, unsigned long *fp_regs) in save_fpx_registers() argument
70 if (ptrace(PTRACE_GETFPXREGS, pid, 0, fp_regs) < 0) in save_fpx_registers()
75 int restore_fpx_registers(int pid, unsigned long *fp_regs) in restore_fpx_registers() argument
77 if (ptrace(PTRACE_SETFPXREGS, pid, 0, fp_regs) < 0) in restore_fpx_registers()
82 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
85 return save_fpx_registers(pid, regs); in get_fp_registers()
87 return save_fp_registers(pid, regs); in get_fp_registers()
90 int put_fp_registers(int pid, unsigned long *regs) in put_fp_registers() argument
93 return restore_fpx_registers(pid, regs); in put_fp_registers()
95 return restore_fp_registers(pid, regs); in put_fp_registers()
98 void arch_init_registers(int pid) in arch_init_registers() argument
103 err = ptrace(PTRACE_GETFPXREGS, pid, 0, &fpx_regs); in arch_init_registers()
115 int get_fp_registers(int pid, unsigned long *regs) in get_fp_registers() argument
117 return save_fp_registers(pid, regs); in get_fp_registers()
120 int put_fp_registers(int pid, unsigned long *regs) in put_fp_registers() argument
122 return restore_fp_registers(pid, regs); in put_fp_registers()
125 void arch_init_registers(int pid) in arch_init_registers() argument
137 if (ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov) == 0) in arch_init_registers()