Home | History | Annotate | Download | only in aarch64

Lines Matching refs:proc

29 #include "proc.h"
34 aarch64_read_gregs(struct process *proc, struct user_pt_regs *regs)
40 return ptrace(PTRACE_GETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
45 aarch64_write_gregs(struct process *proc, struct user_pt_regs *regs)
50 return ptrace(PTRACE_SETREGSET, proc->pid, NT_PRSTATUS, &iovec) < 0
55 aarch64_read_fregs(struct process *proc, struct user_fpsimd_state *regs)
61 return ptrace(PTRACE_GETREGSET, proc->pid, NT_FPREGSET, &iovec) < 0
66 get_instruction_pointer(struct process *proc)
69 if (aarch64_read_gregs(proc, &regs) < 0) {
71 "Couldn't read registers of %d.\n", proc->pid);
77 sprintf(buf, "cat /proc/%d/maps", proc->pid);
86 set_instruction_pointer(struct process *proc, arch_addr_t addr)
89 if (aarch64_read_gregs(proc, &regs) < 0) {
91 "Couldn't read registers of %d.\n", proc->pid);
98 if (aarch64_write_gregs(proc, &regs) < 0) {
100 "Couldn't write registers of %d.\n", proc->pid);
106 get_stack_pointer(struct process *proc)
109 if (aarch64_read_gregs(proc, &regs) < 0) {
111 "Couldn't read registers of %d.\n", proc->pid);
120 get_return_addr(struct process *proc, arch_addr_t stack_pointer)
123 if (aarch64_read_gregs(proc, &regs) < 0) {
125 "Couldn't read registers of %d.\n", proc->pid);