Lines Matching refs:proc
30 #include "proc.h"
49 \param proc The process to work on.
53 get_instruction_pointer(struct process *proc)
55 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, off_pc, 0);
59 \param proc The process to work on.
68 set_instruction_pointer(struct process *proc, void *addr)
70 ptrace(PTRACE_POKEUSER, proc->pid, off_pc, addr);
74 \param proc The process to work on.
78 get_stack_pointer(struct process *proc)
80 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, off_sp, 0);
84 \param proc The process to work on.
85 \param stack_pointer The current stack pointer for proc
94 get_return_addr(struct process *proc, void *stack_pointer)
96 return (void *)ptrace(PTRACE_PEEKUSER, proc->pid, off_lr, 0);