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

Go to the source code of this file.

Data Structures

union  freg_t
 
struct  s390_fp_regs
 
struct  __attribute__
 
struct  __attribute__
 
struct  s390_regs
 
struct  s390_compat_regs
 
struct  s390_compat_regs_high
 
struct  per_cr_words
 
struct  per_cr_bits
 
struct  per_lowcore_words
 
struct  per_lowcore_bits
 
struct  per_struct
 
struct  ptrace_area
 
struct  ptprot_area
 
struct  user_regs_struct
 

Macros

#define PT_PSWMASK   0x00
 
#define PT_PSWADDR   0x04
 
#define PT_GPR0   0x08
 
#define PT_GPR1   0x0C
 
#define PT_GPR2   0x10
 
#define PT_GPR3   0x14
 
#define PT_GPR4   0x18
 
#define PT_GPR5   0x1C
 
#define PT_GPR6   0x20
 
#define PT_GPR7   0x24
 
#define PT_GPR8   0x28
 
#define PT_GPR9   0x2C
 
#define PT_GPR10   0x30
 
#define PT_GPR11   0x34
 
#define PT_GPR12   0x38
 
#define PT_GPR13   0x3C
 
#define PT_GPR14   0x40
 
#define PT_GPR15   0x44
 
#define PT_ACR0   0x48
 
#define PT_ACR1   0x4C
 
#define PT_ACR2   0x50
 
#define PT_ACR3   0x54
 
#define PT_ACR4   0x58
 
#define PT_ACR5   0x5C
 
#define PT_ACR6   0x60
 
#define PT_ACR7   0x64
 
#define PT_ACR8   0x68
 
#define PT_ACR9   0x6C
 
#define PT_ACR10   0x70
 
#define PT_ACR11   0x74
 
#define PT_ACR12   0x78
 
#define PT_ACR13   0x7C
 
#define PT_ACR14   0x80
 
#define PT_ACR15   0x84
 
#define PT_ORIGGPR2   0x88
 
#define PT_FPC   0x90
 
#define PT_FPR0_HI   0x98
 
#define PT_FPR0_LO   0x9C
 
#define PT_FPR1_HI   0xA0
 
#define PT_FPR1_LO   0xA4
 
#define PT_FPR2_HI   0xA8
 
#define PT_FPR2_LO   0xAC
 
#define PT_FPR3_HI   0xB0
 
#define PT_FPR3_LO   0xB4
 
#define PT_FPR4_HI   0xB8
 
#define PT_FPR4_LO   0xBC
 
#define PT_FPR5_HI   0xC0
 
#define PT_FPR5_LO   0xC4
 
#define PT_FPR6_HI   0xC8
 
#define PT_FPR6_LO   0xCC
 
#define PT_FPR7_HI   0xD0
 
#define PT_FPR7_LO   0xD4
 
#define PT_FPR8_HI   0xD8
 
#define PT_FPR8_LO   0XDC
 
#define PT_FPR9_HI   0xE0
 
#define PT_FPR9_LO   0xE4
 
#define PT_FPR10_HI   0xE8
 
#define PT_FPR10_LO   0xEC
 
#define PT_FPR11_HI   0xF0
 
#define PT_FPR11_LO   0xF4
 
#define PT_FPR12_HI   0xF8
 
#define PT_FPR12_LO   0xFC
 
#define PT_FPR13_HI   0x100
 
#define PT_FPR13_LO   0x104
 
#define PT_FPR14_HI   0x108
 
#define PT_FPR14_LO   0x10C
 
#define PT_FPR15_HI   0x110
 
#define PT_FPR15_LO   0x114
 
#define PT_CR_9   0x118
 
#define PT_CR_10   0x11C
 
#define PT_CR_11   0x120
 
#define PT_IEEE_IP   0x13C
 
#define PT_LASTOFF   PT_IEEE_IP
 
#define PT_ENDREGS   0x140-1
 
#define GPR_SIZE   4
 
#define CR_SIZE   4
 
#define STACK_FRAME_OVERHEAD   96 /* size of minimum stack frame */
 
#define NUM_GPRS   16
 
#define NUM_FPRS   16
 
#define NUM_CRS   16
 
#define NUM_ACRS   16
 
#define NUM_CR_WORDS   3
 
#define FPR_SIZE   8
 
#define FPC_SIZE   4
 
#define FPC_PAD_SIZE   4 /* gcc insists on aligning the fpregs */
 
#define ACR_SIZE   4
 
#define PTRACE_OLDSETOPTIONS   21
 
#define FPC_EXCEPTION_MASK   0xF8000000
 
#define FPC_FLAGS_MASK   0x00F80000
 
#define FPC_DXC_MASK   0x0000FF00
 
#define FPC_RM_MASK   0x00000003
 
#define FPC_VALID_MASK   0xF8F8FF03
 
#define PSW_MASK_PER   0x40000000UL
 
#define PSW_MASK_DAT   0x04000000UL
 
#define PSW_MASK_IO   0x02000000UL
 
#define PSW_MASK_EXT   0x01000000UL
 
#define PSW_MASK_KEY   0x00F00000UL
 
#define PSW_MASK_BASE   0x00080000UL /* always one */
 
#define PSW_MASK_MCHECK   0x00040000UL
 
#define PSW_MASK_WAIT   0x00020000UL
 
#define PSW_MASK_PSTATE   0x00010000UL
 
#define PSW_MASK_ASC   0x0000C000UL
 
#define PSW_MASK_CC   0x00003000UL
 
#define PSW_MASK_PM   0x00000F00UL
 
#define PSW_MASK_RI   0x00000000UL
 
#define PSW_MASK_EA   0x00000000UL
 
#define PSW_MASK_BA   0x00000000UL
 
#define PSW_MASK_USER   0x0000FF00UL
 
#define PSW_ADDR_AMODE   0x80000000UL
 
#define PSW_ADDR_INSN   0x7FFFFFFFUL
 
#define PSW_DEFAULT_KEY   (((unsigned long) PAGE_DEFAULT_ACC) << 20)
 
#define PSW_ASC_PRIMARY   0x00000000UL
 
#define PSW_ASC_ACCREG   0x00004000UL
 
#define PSW_ASC_SECONDARY   0x00008000UL
 
#define PSW_ASC_HOME   0x0000C000UL
 
#define PER_EM_MASK   0xE8000000UL
 
#define PTRACE_PEEKUSR_AREA   0x5000
 
#define PTRACE_POKEUSR_AREA   0x5001
 
#define PTRACE_PEEKTEXT_AREA   0x5002
 
#define PTRACE_PEEKDATA_AREA   0x5003
 
#define PTRACE_POKETEXT_AREA   0x5004
 
#define PTRACE_POKEDATA_AREA   0x5005
 
#define PTRACE_GET_LAST_BREAK   0x5006
 
#define PTRACE_PEEK_SYSTEM_CALL   0x5007
 
#define PTRACE_POKE_SYSTEM_CALL   0x5008
 
#define PTRACE_ENABLE_TE   0x5009
 
#define PTRACE_DISABLE_TE   0x5010
 
#define PTRACE_PROT   21
 
#define S390_BREAKPOINT   {0x0,0x1}
 
#define S390_BREAKPOINT_U16   ((__u16)0x0001)
 
#define S390_SYSCALL_OPCODE   ((__u16)0x0a00)
 
#define S390_SYSCALL_SIZE   2
 

Enumerations

enum  ptprot_flags { ptprot_set_access_watchpoint, ptprot_set_write_watchpoint, ptprot_disable_watchpoint }
 

Macro Definition Documentation

#define ACR_SIZE   4

Definition at line 178 of file ptrace.h.

#define CR_SIZE   4

Definition at line 96 of file ptrace.h.

#define FPC_DXC_MASK   0x0000FF00

Definition at line 207 of file ptrace.h.

#define FPC_EXCEPTION_MASK   0xF8000000

Definition at line 205 of file ptrace.h.

#define FPC_FLAGS_MASK   0x00F80000

Definition at line 206 of file ptrace.h.

#define FPC_PAD_SIZE   4 /* gcc insists on aligning the fpregs */

Definition at line 177 of file ptrace.h.

#define FPC_RM_MASK   0x00000003

Definition at line 208 of file ptrace.h.

#define FPC_SIZE   4

Definition at line 176 of file ptrace.h.

#define FPC_VALID_MASK   0xF8F8FF03

Definition at line 209 of file ptrace.h.

#define FPR_SIZE   8

Definition at line 175 of file ptrace.h.

#define GPR_SIZE   4

Definition at line 95 of file ptrace.h.

#define NUM_ACRS   16

Definition at line 171 of file ptrace.h.

#define NUM_CR_WORDS   3

Definition at line 173 of file ptrace.h.

#define NUM_CRS   16

Definition at line 170 of file ptrace.h.

#define NUM_FPRS   16

Definition at line 169 of file ptrace.h.

#define NUM_GPRS   16

Definition at line 168 of file ptrace.h.

#define PER_EM_MASK   0xE8000000UL

Definition at line 323 of file ptrace.h.

#define PSW_ADDR_AMODE   0x80000000UL

Definition at line 244 of file ptrace.h.

#define PSW_ADDR_INSN   0x7FFFFFFFUL

Definition at line 245 of file ptrace.h.

#define PSW_ASC_ACCREG   0x00004000UL

Definition at line 250 of file ptrace.h.

#define PSW_ASC_HOME   0x0000C000UL

Definition at line 252 of file ptrace.h.

#define PSW_ASC_PRIMARY   0x00000000UL

Definition at line 249 of file ptrace.h.

#define PSW_ASC_SECONDARY   0x00008000UL

Definition at line 251 of file ptrace.h.

#define PSW_DEFAULT_KEY   (((unsigned long) PAGE_DEFAULT_ACC) << 20)

Definition at line 247 of file ptrace.h.

#define PSW_MASK_ASC   0x0000C000UL

Definition at line 235 of file ptrace.h.

#define PSW_MASK_BA   0x00000000UL

Definition at line 240 of file ptrace.h.

#define PSW_MASK_BASE   0x00080000UL /* always one */

Definition at line 231 of file ptrace.h.

#define PSW_MASK_CC   0x00003000UL

Definition at line 236 of file ptrace.h.

#define PSW_MASK_DAT   0x04000000UL

Definition at line 227 of file ptrace.h.

#define PSW_MASK_EA   0x00000000UL

Definition at line 239 of file ptrace.h.

#define PSW_MASK_EXT   0x01000000UL

Definition at line 229 of file ptrace.h.

#define PSW_MASK_IO   0x02000000UL

Definition at line 228 of file ptrace.h.

#define PSW_MASK_KEY   0x00F00000UL

Definition at line 230 of file ptrace.h.

#define PSW_MASK_MCHECK   0x00040000UL

Definition at line 232 of file ptrace.h.

#define PSW_MASK_PER   0x40000000UL

Definition at line 226 of file ptrace.h.

#define PSW_MASK_PM   0x00000F00UL

Definition at line 237 of file ptrace.h.

#define PSW_MASK_PSTATE   0x00010000UL

Definition at line 234 of file ptrace.h.

#define PSW_MASK_RI   0x00000000UL

Definition at line 238 of file ptrace.h.

#define PSW_MASK_USER   0x0000FF00UL

Definition at line 242 of file ptrace.h.

#define PSW_MASK_WAIT   0x00020000UL

Definition at line 233 of file ptrace.h.

#define PT_ACR0   0x48

Definition at line 34 of file ptrace.h.

#define PT_ACR1   0x4C

Definition at line 35 of file ptrace.h.

#define PT_ACR10   0x70

Definition at line 44 of file ptrace.h.

#define PT_ACR11   0x74

Definition at line 45 of file ptrace.h.

#define PT_ACR12   0x78

Definition at line 46 of file ptrace.h.

#define PT_ACR13   0x7C

Definition at line 47 of file ptrace.h.

#define PT_ACR14   0x80

Definition at line 48 of file ptrace.h.

#define PT_ACR15   0x84

Definition at line 49 of file ptrace.h.

#define PT_ACR2   0x50

Definition at line 36 of file ptrace.h.

#define PT_ACR3   0x54

Definition at line 37 of file ptrace.h.

#define PT_ACR4   0x58

Definition at line 38 of file ptrace.h.

#define PT_ACR5   0x5C

Definition at line 39 of file ptrace.h.

#define PT_ACR6   0x60

Definition at line 40 of file ptrace.h.

#define PT_ACR7   0x64

Definition at line 41 of file ptrace.h.

#define PT_ACR8   0x68

Definition at line 42 of file ptrace.h.

#define PT_ACR9   0x6C

Definition at line 43 of file ptrace.h.

#define PT_CR_10   0x11C

Definition at line 89 of file ptrace.h.

#define PT_CR_11   0x120

Definition at line 90 of file ptrace.h.

#define PT_CR_9   0x118

Definition at line 88 of file ptrace.h.

#define PT_ENDREGS   0x140-1

Definition at line 93 of file ptrace.h.

#define PT_FPC   0x90

Definition at line 51 of file ptrace.h.

#define PT_FPR0_HI   0x98

Definition at line 56 of file ptrace.h.

#define PT_FPR0_LO   0x9C

Definition at line 57 of file ptrace.h.

#define PT_FPR10_HI   0xE8

Definition at line 76 of file ptrace.h.

#define PT_FPR10_LO   0xEC

Definition at line 77 of file ptrace.h.

#define PT_FPR11_HI   0xF0

Definition at line 78 of file ptrace.h.

#define PT_FPR11_LO   0xF4

Definition at line 79 of file ptrace.h.

#define PT_FPR12_HI   0xF8

Definition at line 80 of file ptrace.h.

#define PT_FPR12_LO   0xFC

Definition at line 81 of file ptrace.h.

#define PT_FPR13_HI   0x100

Definition at line 82 of file ptrace.h.

#define PT_FPR13_LO   0x104

Definition at line 83 of file ptrace.h.

#define PT_FPR14_HI   0x108

Definition at line 84 of file ptrace.h.

#define PT_FPR14_LO   0x10C

Definition at line 85 of file ptrace.h.

#define PT_FPR15_HI   0x110

Definition at line 86 of file ptrace.h.

#define PT_FPR15_LO   0x114

Definition at line 87 of file ptrace.h.

#define PT_FPR1_HI   0xA0

Definition at line 58 of file ptrace.h.

#define PT_FPR1_LO   0xA4

Definition at line 59 of file ptrace.h.

#define PT_FPR2_HI   0xA8

Definition at line 60 of file ptrace.h.

#define PT_FPR2_LO   0xAC

Definition at line 61 of file ptrace.h.

#define PT_FPR3_HI   0xB0

Definition at line 62 of file ptrace.h.

#define PT_FPR3_LO   0xB4

Definition at line 63 of file ptrace.h.

#define PT_FPR4_HI   0xB8

Definition at line 64 of file ptrace.h.

#define PT_FPR4_LO   0xBC

Definition at line 65 of file ptrace.h.

#define PT_FPR5_HI   0xC0

Definition at line 66 of file ptrace.h.

#define PT_FPR5_LO   0xC4

Definition at line 67 of file ptrace.h.

#define PT_FPR6_HI   0xC8

Definition at line 68 of file ptrace.h.

#define PT_FPR6_LO   0xCC

Definition at line 69 of file ptrace.h.

#define PT_FPR7_HI   0xD0

Definition at line 70 of file ptrace.h.

#define PT_FPR7_LO   0xD4

Definition at line 71 of file ptrace.h.

#define PT_FPR8_HI   0xD8

Definition at line 72 of file ptrace.h.

#define PT_FPR8_LO   0XDC

Definition at line 73 of file ptrace.h.

#define PT_FPR9_HI   0xE0

Definition at line 74 of file ptrace.h.

#define PT_FPR9_LO   0xE4

Definition at line 75 of file ptrace.h.

#define PT_GPR0   0x08

Definition at line 18 of file ptrace.h.

#define PT_GPR1   0x0C

Definition at line 19 of file ptrace.h.

#define PT_GPR10   0x30

Definition at line 28 of file ptrace.h.

#define PT_GPR11   0x34

Definition at line 29 of file ptrace.h.

#define PT_GPR12   0x38

Definition at line 30 of file ptrace.h.

#define PT_GPR13   0x3C

Definition at line 31 of file ptrace.h.

#define PT_GPR14   0x40

Definition at line 32 of file ptrace.h.

#define PT_GPR15   0x44

Definition at line 33 of file ptrace.h.

#define PT_GPR2   0x10

Definition at line 20 of file ptrace.h.

#define PT_GPR3   0x14

Definition at line 21 of file ptrace.h.

#define PT_GPR4   0x18

Definition at line 22 of file ptrace.h.

#define PT_GPR5   0x1C

Definition at line 23 of file ptrace.h.

#define PT_GPR6   0x20

Definition at line 24 of file ptrace.h.

#define PT_GPR7   0x24

Definition at line 25 of file ptrace.h.

#define PT_GPR8   0x28

Definition at line 26 of file ptrace.h.

#define PT_GPR9   0x2C

Definition at line 27 of file ptrace.h.

#define PT_IEEE_IP   0x13C

Definition at line 91 of file ptrace.h.

#define PT_LASTOFF   PT_IEEE_IP

Definition at line 92 of file ptrace.h.

#define PT_ORIGGPR2   0x88

Definition at line 50 of file ptrace.h.

#define PT_PSWADDR   0x04

Definition at line 17 of file ptrace.h.

#define PT_PSWMASK   0x00

Definition at line 16 of file ptrace.h.

#define PTRACE_DISABLE_TE   0x5010

Definition at line 422 of file ptrace.h.

#define PTRACE_ENABLE_TE   0x5009

Definition at line 421 of file ptrace.h.

#define PTRACE_GET_LAST_BREAK   0x5006

Definition at line 418 of file ptrace.h.

#define PTRACE_OLDSETOPTIONS   21

Definition at line 181 of file ptrace.h.

#define PTRACE_PEEK_SYSTEM_CALL   0x5007

Definition at line 419 of file ptrace.h.

#define PTRACE_PEEKDATA_AREA   0x5003

Definition at line 415 of file ptrace.h.

#define PTRACE_PEEKTEXT_AREA   0x5002

Definition at line 414 of file ptrace.h.

#define PTRACE_PEEKUSR_AREA   0x5000

Definition at line 412 of file ptrace.h.

#define PTRACE_POKE_SYSTEM_CALL   0x5008

Definition at line 420 of file ptrace.h.

#define PTRACE_POKEDATA_AREA   0x5005

Definition at line 417 of file ptrace.h.

#define PTRACE_POKETEXT_AREA   0x5004

Definition at line 416 of file ptrace.h.

#define PTRACE_POKEUSR_AREA   0x5001

Definition at line 413 of file ptrace.h.

#define PTRACE_PROT   21

Definition at line 428 of file ptrace.h.

#define S390_BREAKPOINT   {0x0,0x1}

Definition at line 445 of file ptrace.h.

#define S390_BREAKPOINT_U16   ((__u16)0x0001)

Definition at line 446 of file ptrace.h.

#define S390_SYSCALL_OPCODE   ((__u16)0x0a00)

Definition at line 447 of file ptrace.h.

#define S390_SYSCALL_SIZE   2

Definition at line 448 of file ptrace.h.

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

Definition at line 98 of file ptrace.h.

Enumeration Type Documentation

Enumerator:
ptprot_set_access_watchpoint 
ptprot_set_write_watchpoint 
ptprot_disable_watchpoint 

Definition at line 430 of file ptrace.h.