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

Go to the source code of this file.

Data Structures

struct  pt_regs
 

Macros

#define STACK_FRAME_OVERHEAD   128 /* size of minimum stack frame */
 
#define instruction_pointer(regs)   ((regs)->pc)
 
#define user_mode(regs)   (((regs)->sr & SPR_SR_SM) == 0)
 
#define user_stack_pointer(regs)   ((unsigned long)(regs)->sp)
 
#define profile_pc(regs)   instruction_pointer(regs)
 
#define PT_SR   0
 
#define PT_SP   4
 
#define PT_GPR2   8
 
#define PT_GPR3   12
 
#define PT_GPR4   16
 
#define PT_GPR5   20
 
#define PT_GPR6   24
 
#define PT_GPR7   28
 
#define PT_GPR8   32
 
#define PT_GPR9   36
 
#define PT_GPR10   40
 
#define PT_GPR11   44
 
#define PT_GPR12   48
 
#define PT_GPR13   52
 
#define PT_GPR14   56
 
#define PT_GPR15   60
 
#define PT_GPR16   64
 
#define PT_GPR17   68
 
#define PT_GPR18   72
 
#define PT_GPR19   76
 
#define PT_GPR20   80
 
#define PT_GPR21   84
 
#define PT_GPR22   88
 
#define PT_GPR23   92
 
#define PT_GPR24   96
 
#define PT_GPR25   100
 
#define PT_GPR26   104
 
#define PT_GPR27   108
 
#define PT_GPR28   112
 
#define PT_GPR29   116
 
#define PT_GPR30   120
 
#define PT_GPR31   124
 
#define PT_PC   128
 
#define PT_ORIG_GPR11   132
 
#define PT_SYSCALLNO   136
 

Macro Definition Documentation

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

Definition at line 73 of file ptrace.h.

#define profile_pc (   regs)    instruction_pointer(regs)

Definition at line 76 of file ptrace.h.

#define PT_GPR10   40

Definition at line 98 of file ptrace.h.

#define PT_GPR11   44

Definition at line 99 of file ptrace.h.

#define PT_GPR12   48

Definition at line 100 of file ptrace.h.

#define PT_GPR13   52

Definition at line 101 of file ptrace.h.

#define PT_GPR14   56

Definition at line 102 of file ptrace.h.

#define PT_GPR15   60

Definition at line 103 of file ptrace.h.

#define PT_GPR16   64

Definition at line 104 of file ptrace.h.

#define PT_GPR17   68

Definition at line 105 of file ptrace.h.

#define PT_GPR18   72

Definition at line 106 of file ptrace.h.

#define PT_GPR19   76

Definition at line 107 of file ptrace.h.

#define PT_GPR2   8

Definition at line 90 of file ptrace.h.

#define PT_GPR20   80

Definition at line 108 of file ptrace.h.

#define PT_GPR21   84

Definition at line 109 of file ptrace.h.

#define PT_GPR22   88

Definition at line 110 of file ptrace.h.

#define PT_GPR23   92

Definition at line 111 of file ptrace.h.

#define PT_GPR24   96

Definition at line 112 of file ptrace.h.

#define PT_GPR25   100

Definition at line 113 of file ptrace.h.

#define PT_GPR26   104

Definition at line 114 of file ptrace.h.

#define PT_GPR27   108

Definition at line 115 of file ptrace.h.

#define PT_GPR28   112

Definition at line 116 of file ptrace.h.

#define PT_GPR29   116

Definition at line 117 of file ptrace.h.

#define PT_GPR3   12

Definition at line 91 of file ptrace.h.

#define PT_GPR30   120

Definition at line 118 of file ptrace.h.

#define PT_GPR31   124

Definition at line 119 of file ptrace.h.

#define PT_GPR4   16

Definition at line 92 of file ptrace.h.

#define PT_GPR5   20

Definition at line 93 of file ptrace.h.

#define PT_GPR6   24

Definition at line 94 of file ptrace.h.

#define PT_GPR7   28

Definition at line 95 of file ptrace.h.

#define PT_GPR8   32

Definition at line 96 of file ptrace.h.

#define PT_GPR9   36

Definition at line 97 of file ptrace.h.

#define PT_ORIG_GPR11   132

Definition at line 121 of file ptrace.h.

#define PT_PC   128

Definition at line 120 of file ptrace.h.

#define PT_SP   4

Definition at line 89 of file ptrace.h.

#define PT_SR   0

Definition at line 88 of file ptrace.h.

#define PT_SYSCALLNO   136

Definition at line 122 of file ptrace.h.

#define STACK_FRAME_OVERHEAD   128 /* size of minimum stack frame */

Definition at line 71 of file ptrace.h.

#define user_mode (   regs)    (((regs)->sr & SPR_SR_SM) == 0)

Definition at line 74 of file ptrace.h.

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

Definition at line 75 of file ptrace.h.