Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ptrace-generic.h File Reference
#include <asm/ptrace-abi.h>
#include <sysdep/ptrace.h>

Go to the source code of this file.

Data Structures

struct  pt_regs
 

Macros

#define arch_has_single_step()   (1)
 
#define EMPTY_REGS   { .regs = EMPTY_UML_PT_REGS }
 
#define PT_REGS_IP(r)   UPT_IP(&(r)->regs)
 
#define PT_REGS_SP(r)   UPT_SP(&(r)->regs)
 
#define PT_REGS_RESTART_SYSCALL(r)   UPT_RESTART_SYSCALL(&(r)->regs)
 
#define PT_REGS_SYSCALL_NR(r)   UPT_SYSCALL_NR(&(r)->regs)
 
#define instruction_pointer(regs)   PT_REGS_IP(regs)
 

Functions

long subarch_ptrace (struct task_struct *child, long request, unsigned long addr, unsigned long data)
 
unsigned long getreg (struct task_struct *child, int regno)
 
int putreg (struct task_struct *child, int regno, unsigned long value)
 
int arch_copy_tls (struct task_struct *new)
 
void clear_flushed_tls (struct task_struct *task)
 
void syscall_trace_enter (struct pt_regs *regs)
 
void syscall_trace_leave (struct pt_regs *regs)
 

Macro Definition Documentation

#define arch_has_single_step ( )    (1)

Definition at line 18 of file ptrace-generic.h.

#define EMPTY_REGS   { .regs = EMPTY_UML_PT_REGS }

Definition at line 20 of file ptrace-generic.h.

#define instruction_pointer (   regs)    PT_REGS_IP(regs)

Definition at line 29 of file ptrace-generic.h.

#define PT_REGS_IP (   r)    UPT_IP(&(r)->regs)

Definition at line 22 of file ptrace-generic.h.

#define PT_REGS_RESTART_SYSCALL (   r)    UPT_RESTART_SYSCALL(&(r)->regs)

Definition at line 25 of file ptrace-generic.h.

#define PT_REGS_SP (   r)    UPT_SP(&(r)->regs)

Definition at line 23 of file ptrace-generic.h.

#define PT_REGS_SYSCALL_NR (   r)    UPT_SYSCALL_NR(&(r)->regs)

Definition at line 27 of file ptrace-generic.h.

Function Documentation

int arch_copy_tls ( struct task_struct new)

Definition at line 216 of file tls_32.c.

void clear_flushed_tls ( struct task_struct task)

Definition at line 155 of file tls_32.c.

unsigned long getreg ( struct task_struct child,
int  regno 
)

Definition at line 139 of file ptrace_32.c.

int putreg ( struct task_struct child,
int  regno,
unsigned long  value 
)

Definition at line 72 of file ptrace_32.c.

long subarch_ptrace ( struct task_struct child,
long  request,
unsigned long  addr,
unsigned long  data 
)

Definition at line 251 of file ptrace_32.c.

Definition at line 390 of file ptrace.c.

void syscall_trace_leave ( struct pt_regs regs)

Definition at line 400 of file ptrace.c.