Lines Matching refs:proc
46 get_arch_dep(struct process *proc) in get_arch_dep() argument
51 if (proc->arch_ptr) in get_arch_dep()
54 psw = ptrace(PTRACE_PEEKUSER, proc->pid, PT_PSWMASK, 0); in get_arch_dep()
57 proc->mask_32bit = 1; in get_arch_dep()
58 proc->personality = 1; in get_arch_dep()
61 proc->arch_ptr = (void *)1; in get_arch_dep()
68 syscall_p(struct process *proc, int status, int *sysnum) in syscall_p() argument
79 && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) { in syscall_p()
87 *sysnum = ptrace(PTRACE_PEEKUSER, proc->pid, PT_GPR2, 0); in syscall_p()
89 if (proc->tracesysgood) { in syscall_p()
91 if (proc->callstack_depth > 0 && in syscall_p()
92 proc->callstack[proc->callstack_depth - in syscall_p()
96 proc->callstack[proc->callstack_depth - in syscall_p()
117 pc = ptrace(PTRACE_PEEKUSER, proc->pid, PT_PSWADDR, 0); in syscall_p()
118 opcode = ptrace(PTRACE_PEEKTEXT, proc->pid, in syscall_p()
133 svc_addr += ptrace(PTRACE_PEEKUSER, proc->pid, in syscall_p()
138 svc_addr += ptrace(PTRACE_PEEKUSER, proc->pid, in syscall_p()
141 scno = ptrace(PTRACE_PEEKTEXT, proc->pid, svc_addr, 0); in syscall_p()
153 tmp = ptrace(PTRACE_PEEKUSER, proc->pid, in syscall_p()
163 scno = ptrace(PTRACE_PEEKUSER, proc->pid, PT_GPR1, 0); in syscall_p()
168 if (proc->callstack_depth > 0 && in syscall_p()
169 proc->callstack[proc->callstack_depth - 1].is_syscall) { in syscall_p()
180 arch_type_sizeof(struct process *proc, struct arg_type_info *info) in arch_type_sizeof() argument
182 if (proc == NULL) in arch_type_sizeof()
203 return proc->e_class == ELFCLASS64 ? 8 : 4; in arch_type_sizeof()
222 arch_type_alignof(struct process *proc, struct arg_type_info *info) in arch_type_alignof() argument
224 if (proc == NULL) in arch_type_alignof()
246 return proc->e_class == ELFCLASS64 ? 8 : 4; in arch_type_alignof()