Lines Matching refs:proc
34 get_arch_dep(struct process *proc) in get_arch_dep() argument
37 if (!proc->arch_ptr) in get_arch_dep()
38 proc->arch_ptr = (void *)malloc(sizeof(proc_archdep)); in get_arch_dep()
39 a = (proc_archdep *) (proc->arch_ptr); in get_arch_dep()
40 a->valid = (ptrace(PTRACE_GETREGS, proc->pid, &a->regs, 0) >= 0); in get_arch_dep()
47 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
50 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) { in syscall_p()
51 void *ip = get_instruction_pointer(proc); in syscall_p()
55 insn = ptrace(PTRACE_PEEKTEXT, proc->pid, ip, 0); in syscall_p()
57 *sysnum = ((proc_archdep *) proc->arch_ptr)->regs.u_regs[UREG_G0]; in syscall_p()
58 if (proc->callstack_depth > 0 && in syscall_p()
59 proc->callstack[proc->callstack_depth - 1].is_syscall && in syscall_p()
60 proc->callstack[proc->callstack_depth - 1].c_un.syscall == *sysnum) { in syscall_p()
71 gimme_arg(enum tof type, struct process *proc, int arg_num, in gimme_arg() argument
74 proc_archdep *a = (proc_archdep *) proc->arch_ptr; in gimme_arg()
85 return ptrace(PTRACE_PEEKTEXT, proc->pid, in gimme_arg()
86 proc->stack_pointer + 64 * (arg_num + 1)); in gimme_arg()