Lines Matching refs:proc
43 get_arch_dep(struct process *proc) in get_arch_dep() argument
50 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
53 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) { in syscall_p()
54 char *ip = get_instruction_pointer(proc) - 4; in syscall_p()
55 long x = ptrace(PTRACE_PEEKTEXT, proc->pid, ip, 0); in syscall_p()
60 ptrace(PTRACE_PEEKUSER, proc->pid, 0 /* REG_R0 */ , 0); in syscall_p()
61 if (proc->callstack_depth > 0 && in syscall_p()
62 proc->callstack[proc->callstack_depth - 1].is_syscall && in syscall_p()
63 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
74 gimme_arg(enum tof type, struct process *proc, int arg_num, in gimme_arg() argument
78 return ptrace(PTRACE_PEEKUSER, proc->pid, 0 /* REG_R0 */ , 0); in gimme_arg()
83 return ptrace(PTRACE_PEEKUSER, proc->pid, in gimme_arg()
86 return ptrace(PTRACE_PEEKTEXT, proc->pid, in gimme_arg()
87 proc->stack_pointer + 8 * (arg_num - 6), in gimme_arg()
90 return ptrace(PTRACE_PEEKUSER, proc->pid, in gimme_arg()