#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/elf.h>
#include <linux/smp.h>
#include <linux/ptrace.h>
#include <linux/user.h>
#include <linux/security.h>
#include <linux/init.h>
#include <linux/signal.h>
#include <linux/uaccess.h>
#include <linux/perf_event.h>
#include <linux/hw_breakpoint.h>
#include <linux/regset.h>
#include <linux/audit.h>
#include <linux/tracehook.h>
#include <linux/unistd.h>
#include <asm/pgtable.h>
#include <asm/traps.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;
|
enum | arm_regset { REGSET_GPR,
REGSET_FPR
} |
|
enum | ptrace_syscall_dir { PTRACE_SYSCALL_ENTER = 0,
PTRACE_SYSCALL_EXIT
} |
|
int | regs_query_register_offset (const char *name) |
|
const char * | regs_query_register_name (unsigned int offset) |
|
bool | regs_within_kernel_stack (struct pt_regs *regs, unsigned long addr) |
|
unsigned long | regs_get_kernel_stack_nth (struct pt_regs *regs, unsigned int n) |
|
void | ptrace_disable (struct task_struct *child) |
|
void | ptrace_break (struct task_struct *tsk, struct pt_regs *regs) |
|
| core_initcall (ptrace_break_init) |
|
struct user_regset_view * | task_user_regset_view (struct task_struct *task) |
|
long | arch_ptrace (struct task_struct *child, long request, unsigned long addr, unsigned long data) |
|
asmlinkage int | syscall_trace_enter (struct pt_regs *regs, int scno) |
|
asmlinkage int | syscall_trace_exit (struct pt_regs *regs, int scno) |
|
#define BREAKINST_ARM 0xe7f001f0 |
#define BREAKINST_THUMB 0xde01 |
#define CREATE_TRACE_POINTS |
- Enumerator:
PTRACE_SYSCALL_ENTER |
|
PTRACE_SYSCALL_EXIT |
|
Definition at line 914 of file ptrace.c.
core_initcall |
( |
ptrace_break_init |
| ) |
|
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 793 of file ptrace.c.