Lines Matching refs:pid
44 pid_t pid = ui->pid; in _UPT_access_reg() local
66 if (ptrace (PTRACE_GETREGSET, pid, NT_PRSTATUS, &loc) == -1) in _UPT_access_reg()
70 if (ptrace(PTRACE_SETREGSET, pid, NT_PRSTATUS, &loc) == -1) in _UPT_access_reg()
86 pid_t pid = ui->pid; in _UPT_access_reg() local
106 nat_bits = ptrace (PTRACE_PEEKUSER, pid, PT_NAT_BITS, 0); in _UPT_access_reg()
121 ptrace (PTRACE_POKEUSER, pid, PT_NAT_BITS, nat_bits); in _UPT_access_reg()
146 psr = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IPSR, 0); in _UPT_access_reg()
158 ptrace (PTRACE_POKEUSER, pid, PT_CR_IIP, ip); in _UPT_access_reg()
159 ptrace (PTRACE_POKEUSER, pid, PT_CR_IPSR, psr); in _UPT_access_reg()
170 ip = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IIP, 0); in _UPT_access_reg()
194 cfm = ptrace (PTRACE_PEEKUSER, pid, PT_CFM, 0); in _UPT_access_reg()
207 ptrace (PTRACE_POKEUSER, pid, PT_AR_BSP, bsp); in _UPT_access_reg()
218 bsp = ptrace (PTRACE_PEEKUSER, pid, PT_AR_BSP, 0); in _UPT_access_reg()
238 bsp = ptrace (PTRACE_PEEKUSER, pid, PT_AR_BSP, 0); in _UPT_access_reg()
239 cfm = ptrace (PTRACE_PEEKUSER, pid, PT_CFM, 0); in _UPT_access_reg()
252 ptrace (PTRACE_POKEUSER, pid, PT_AR_BSP, 0); in _UPT_access_reg()
261 ptrace (PTRACE_POKEUSER, pid, PT_CFM, *val); in _UPT_access_reg()
295 ptrace (PTRACE_POKEUSER, pid, _UPT_reg_offset[reg], *val); in _UPT_access_reg()
298 …Debug(16, "ptrace PEEKUSER pid: %lu , reg: %lu , offs: %lu\n", (unsigned long)pid, (unsigned long)… in _UPT_access_reg()
301 *val = ptrace (PTRACE_PEEKUSER, pid, _UPT_reg_offset[reg], 0); in _UPT_access_reg()
330 pid_t pid = ui->pid; in _UPT_access_reg() local
346 if (ptrace(PT_GETREGS, pid, (caddr_t)®s, 0) == -1) in _UPT_access_reg()
350 if (ptrace(PT_SETREGS, pid, (caddr_t)®s, 0) == -1) in _UPT_access_reg()