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 <asm/irq_regs.h>
#include <uapi/asm/ptrace.h>

Go to the source code of this file.

Macros

#define in_syscall(regs)   (((regs)->tbr & TBR_TT) == TBR_TT_TRAP0)
 
#define user_mode(regs)   (!((regs)->psr & PSR_S))
 
#define instruction_pointer(regs)   ((regs)->pc)
 
#define user_stack_pointer(regs)   ((regs)->sp)
 
#define current_pt_regs()   (__frame)
 
#define profile_pc(regs)   ((regs)->pc)
 
#define task_pt_regs(task)   ((task)->thread.frame0)
 
#define arch_has_single_step()   (1)
 

Functions

register struct pt_regs *__frame asm ("gr28")
 
unsigned long user_stack (const struct pt_regs *)
 

Macro Definition Documentation

#define arch_has_single_step ( )    (1)

Definition at line 38 of file ptrace.h.

#define current_pt_regs ( )    (__frame)

Definition at line 31 of file ptrace.h.

#define in_syscall (   regs)    (((regs)->tbr & TBR_TT) == TBR_TT_TRAP0)

Definition at line 17 of file ptrace.h.

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

Definition at line 29 of file ptrace.h.

#define profile_pc (   regs)    ((regs)->pc)

Definition at line 34 of file ptrace.h.

#define task_pt_regs (   task)    ((task)->thread.frame0)

Definition at line 36 of file ptrace.h.

#define user_mode (   regs)    (!((regs)->psr & PSR_S))

Definition at line 28 of file ptrace.h.

#define user_stack_pointer (   regs)    ((regs)->sp)

Definition at line 30 of file ptrace.h.

Function Documentation

register struct pt_regs* __frame asm ( "gr28"  )
read
unsigned long user_stack ( const struct pt_regs )
inline

Definition at line 135 of file process.c.