#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/errno.h>
#include <linux/ptrace.h>
#include <linux/regset.h>
#include <linux/tracehook.h>
#include <linux/elf.h>
#include <linux/user.h>
#include <linux/security.h>
#include <linux/signal.h>
#include <linux/seccomp.h>
#include <linux/audit.h>
#include <trace/syscall.h>
#include <linux/hw_breakpoint.h>
#include <linux/perf_event.h>
#include <asm/uaccess.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/switch_to.h>
#include <trace/events/syscalls.h>
Go to the source code of this file.
|
regs_query_register_offset() - query register offset from its name
regs_query_register_offset() returns the offset of a register in struct pt_regs from its name. If the name is invalid, this returns -EINVAL;
|
#define | MSR_DEBUGCHANGE (MSR_SE | MSR_BE) |
|
#define | PT_MAX_PUT_REG PT_CCR |
|
enum | powerpc_regset { REGSET_GPR,
REGSET_FPR
} |
|
int | regs_query_register_offset (const char *name) |
|
const char * | regs_query_register_name (unsigned int offset) |
|
unsigned long | ptrace_get_reg (struct task_struct *task, int regno) |
|
int | ptrace_put_reg (struct task_struct *task, int regno, unsigned long data) |
|
struct user_regset_view * | task_user_regset_view (struct task_struct *task) |
|
void | user_enable_single_step (struct task_struct *task) |
|
void | user_enable_block_step (struct task_struct *task) |
|
void | user_disable_single_step (struct task_struct *task) |
|
int | ptrace_set_debugreg (struct task_struct *task, unsigned long addr, unsigned long data) |
|
void | ptrace_disable (struct task_struct *child) |
|
long | arch_ptrace (struct task_struct *child, long request, unsigned long addr, unsigned long data) |
|
long | do_syscall_trace_enter (struct pt_regs *regs) |
|
void | do_syscall_trace_leave (struct pt_regs *regs) |
|
#define CREATE_TRACE_POINTS |
#define MSR_DEBUGCHANGE (MSR_SE | MSR_BE) |
#define PARAMETER_SAVE_AREA_OFFSET 48 /* bytes */ |
task_user_regset_view - Return the process's native regset view. : a thread of the process in question
Return the &struct user_regset_view that is native for the given process. For example, what it would access when it called ptrace(). Throughout the life of the process, this only changes at exec.
Definition at line 806 of file ptrace.c.