Lines Matching refs:proc
68 get_arch_dep(struct process *proc) in get_arch_dep() argument
90 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
93 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) { in syscall_p()
95 long pc = (long)get_instruction_pointer(proc); in syscall_p()
97 int insn = ptrace(PTRACE_PEEKTEXT, proc->pid, pc - 4, 0); in syscall_p()
98 int num = ptrace(PTRACE_PEEKTEXT, proc->pid, pc - 8, 0); in syscall_p()
111 if (proc->callstack_depth > 0 && in syscall_p()
112 proc->callstack[proc->callstack_depth - 1].is_syscall && in syscall_p()
113 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
147 int mips_next_pcs(struct process *proc, uint32_t pc, uint32_t *newpc) in mips_next_pcs() argument
154 inst = ptrace(PTRACE_PEEKTEXT, proc->pid, pc, 0); in mips_next_pcs()
194 rx = ptrace(PTRACE_PEEKUSER,proc->pid, rn, 0); in mips_next_pcs()
268 arch_sw_singlestep(struct process *proc, struct breakpoint *bp, in arch_sw_singlestep() argument
272 uint32_t pc = (uint32_t) get_instruction_pointer(proc); in arch_sw_singlestep()
276 nr = mips_next_pcs(proc, pc, newpcs); in arch_sw_singlestep()
281 if (DICT_HAS_KEY(proc->leader->breakpoints, &baddr)) { in arch_sw_singlestep()
290 ptrace(PTRACE_SYSCALL, proc->pid, 0, 0); in arch_sw_singlestep()
323 gimme_arg(enum tof type, struct process *proc, int arg_num, in gimme_arg() argument
331 return ptrace(PTRACE_PEEKUSER,proc->pid,off_v0,0); in gimme_arg()
334 unsigned a3=ptrace(PTRACE_PEEKUSER, proc->pid,off_a3,0); in gimme_arg()
335 unsigned v0=ptrace(PTRACE_PEEKUSER, proc->pid,off_v0,0); in gimme_arg()
345 ret=ptrace(PTRACE_PEEKUSER,proc->pid,off_fpr0+12+arg_num*2,0); in gimme_arg()
350 ret=ptrace(PTRACE_PEEKUSER,proc->pid,off_a0+arg_num,0); in gimme_arg()
355 addr=ptrace(PTRACE_PEEKUSER,proc->pid,off_sp,0); in gimme_arg()
361 ret=ptrace(PTRACE_PEEKTEXT,proc->pid,addr,0); in gimme_arg()
367 addr=ptrace(PTRACE_PEEKUSER,proc->pid,off_sp,0); in gimme_arg()
373 ret=ptrace(PTRACE_PEEKTEXT,proc->pid,addr,0); in gimme_arg()