Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ptrace.h File Reference
#include <linux/compiler.h>
#include <linux/linkage.h>
#include <linux/types.h>
#include <asm/isadep.h>
#include <uapi/asm/ptrace.h>

Go to the source code of this file.

Macros

#define user_mode(regs)   (((regs)->cp0_status & KU_MASK) == KU_USER)
 
#define instruction_pointer(regs)   ((regs)->cp0_epc)
 
#define profile_pc(regs)   instruction_pointer(regs)
 

Functions

int ptrace_getregs (struct task_struct *child, __s64 __user *data)
 
int ptrace_setregs (struct task_struct *child, __s64 __user *data)
 
int ptrace_getfpregs (struct task_struct *child, __u32 __user *data)
 
int ptrace_setfpregs (struct task_struct *child, __u32 __user *data)
 
int ptrace_get_watch_regs (struct task_struct *child, struct pt_watch_regs __user *addr)
 
int ptrace_set_watch_regs (struct task_struct *child, struct pt_watch_regs __user *addr)
 
asmlinkage void syscall_trace_enter (struct pt_regs *regs)
 
asmlinkage void syscall_trace_leave (struct pt_regs *regs)
 
void die (const char *, struct pt_regs *) __noreturn
 

Macro Definition Documentation

#define instruction_pointer (   regs)    ((regs)->cp0_epc)

Definition at line 50 of file ptrace.h.

#define profile_pc (   regs)    instruction_pointer(regs)

Definition at line 51 of file ptrace.h.

#define user_mode (   regs)    (((regs)->cp0_status & KU_MASK) == KU_USER)

Definition at line 35 of file ptrace.h.

Function Documentation

void die ( const char ,
struct pt_regs  
)

Definition at line 373 of file traps.c.

int ptrace_get_watch_regs ( struct task_struct child,
struct pt_watch_regs __user addr 
)

Definition at line 170 of file ptrace.c.

int ptrace_getfpregs ( struct task_struct child,
__u32 __user data 
)

Definition at line 105 of file ptrace.c.

int ptrace_getregs ( struct task_struct child,
__s64 __user data 
)

Definition at line 57 of file ptrace.c.

int ptrace_set_watch_regs ( struct task_struct child,
struct pt_watch_regs __user addr 
)

Definition at line 209 of file ptrace.c.

int ptrace_setfpregs ( struct task_struct child,
__u32 __user data 
)

Definition at line 150 of file ptrace.c.

int ptrace_setregs ( struct task_struct child,
__s64 __user data 
)

Definition at line 84 of file ptrace.c.

Definition at line 390 of file ptrace.c.

asmlinkage void syscall_trace_leave ( struct pt_regs regs)

Definition at line 400 of file ptrace.c.