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/psr.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  pt_regs
 
struct  reg_window32
 
struct  sparc_stackf
 

Macros

#define TRACEREG_SZ   sizeof(struct pt_regs)
 
#define STACKFRAME_SZ   sizeof(struct sparc_stackf)
 
#define TRACEREG32_SZ   sizeof(struct pt_regs32)
 
#define STACKFRAME32_SZ   sizeof(struct sparc_stackf32)
 
#define UREG_G0   0
 
#define UREG_G1   1
 
#define UREG_G2   2
 
#define UREG_G3   3
 
#define UREG_G4   4
 
#define UREG_G5   5
 
#define UREG_G6   6
 
#define UREG_G7   7
 
#define UREG_I0   8
 
#define UREG_I1   9
 
#define UREG_I2   10
 
#define UREG_I3   11
 
#define UREG_I4   12
 
#define UREG_I5   13
 
#define UREG_I6   14
 
#define UREG_I7   15
 
#define UREG_FP   UREG_I6
 
#define UREG_RETPC   UREG_I7
 
#define PT_V9_G0   0x00
 
#define PT_V9_G1   0x08
 
#define PT_V9_G2   0x10
 
#define PT_V9_G3   0x18
 
#define PT_V9_G4   0x20
 
#define PT_V9_G5   0x28
 
#define PT_V9_G6   0x30
 
#define PT_V9_G7   0x38
 
#define PT_V9_I0   0x40
 
#define PT_V9_I1   0x48
 
#define PT_V9_I2   0x50
 
#define PT_V9_I3   0x58
 
#define PT_V9_I4   0x60
 
#define PT_V9_I5   0x68
 
#define PT_V9_I6   0x70
 
#define PT_V9_FP   PT_V9_I6
 
#define PT_V9_I7   0x78
 
#define PT_V9_TSTATE   0x80
 
#define PT_V9_TPC   0x88
 
#define PT_V9_TNPC   0x90
 
#define PT_V9_Y   0x98
 
#define PT_V9_MAGIC   0x9c
 
#define PT_TSTATE   PT_V9_TSTATE
 
#define PT_TPC   PT_V9_TPC
 
#define PT_TNPC   PT_V9_TNPC
 
#define PT_PSR   0x0
 
#define PT_PC   0x4
 
#define PT_NPC   0x8
 
#define PT_Y   0xc
 
#define PT_G0   0x10
 
#define PT_WIM   PT_G0
 
#define PT_G1   0x14
 
#define PT_G2   0x18
 
#define PT_G3   0x1c
 
#define PT_G4   0x20
 
#define PT_G5   0x24
 
#define PT_G6   0x28
 
#define PT_G7   0x2c
 
#define PT_I0   0x30
 
#define PT_I1   0x34
 
#define PT_I2   0x38
 
#define PT_I3   0x3c
 
#define PT_I4   0x40
 
#define PT_I5   0x44
 
#define PT_I6   0x48
 
#define PT_FP   PT_I6
 
#define PT_I7   0x4c
 
#define RW_V9_L0   0x00
 
#define RW_V9_L1   0x08
 
#define RW_V9_L2   0x10
 
#define RW_V9_L3   0x18
 
#define RW_V9_L4   0x20
 
#define RW_V9_L5   0x28
 
#define RW_V9_L6   0x30
 
#define RW_V9_L7   0x38
 
#define RW_V9_I0   0x40
 
#define RW_V9_I1   0x48
 
#define RW_V9_I2   0x50
 
#define RW_V9_I3   0x58
 
#define RW_V9_I4   0x60
 
#define RW_V9_I5   0x68
 
#define RW_V9_I6   0x70
 
#define RW_V9_I7   0x78
 
#define RW_L0   0x00
 
#define RW_L1   0x04
 
#define RW_L2   0x08
 
#define RW_L3   0x0c
 
#define RW_L4   0x10
 
#define RW_L5   0x14
 
#define RW_L6   0x18
 
#define RW_L7   0x1c
 
#define RW_I0   0x20
 
#define RW_I1   0x24
 
#define RW_I2   0x28
 
#define RW_I3   0x2c
 
#define RW_I4   0x30
 
#define RW_I5   0x34
 
#define RW_I6   0x38
 
#define RW_I7   0x3c
 
#define SF_V9_L0   0x00
 
#define SF_V9_L1   0x08
 
#define SF_V9_L2   0x10
 
#define SF_V9_L3   0x18
 
#define SF_V9_L4   0x20
 
#define SF_V9_L5   0x28
 
#define SF_V9_L6   0x30
 
#define SF_V9_L7   0x38
 
#define SF_V9_I0   0x40
 
#define SF_V9_I1   0x48
 
#define SF_V9_I2   0x50
 
#define SF_V9_I3   0x58
 
#define SF_V9_I4   0x60
 
#define SF_V9_I5   0x68
 
#define SF_V9_FP   0x70
 
#define SF_V9_PC   0x78
 
#define SF_V9_RETP   0x80
 
#define SF_V9_XARG0   0x88
 
#define SF_V9_XARG1   0x90
 
#define SF_V9_XARG2   0x98
 
#define SF_V9_XARG3   0xa0
 
#define SF_V9_XARG4   0xa8
 
#define SF_V9_XARG5   0xb0
 
#define SF_V9_XXARG   0xb8
 
#define SF_L0   0x00
 
#define SF_L1   0x04
 
#define SF_L2   0x08
 
#define SF_L3   0x0c
 
#define SF_L4   0x10
 
#define SF_L5   0x14
 
#define SF_L6   0x18
 
#define SF_L7   0x1c
 
#define SF_I0   0x20
 
#define SF_I1   0x24
 
#define SF_I2   0x28
 
#define SF_I3   0x2c
 
#define SF_I4   0x30
 
#define SF_I5   0x34
 
#define SF_FP   0x38
 
#define SF_PC   0x3c
 
#define SF_RETP   0x40
 
#define SF_XARG0   0x44
 
#define SF_XARG1   0x48
 
#define SF_XARG2   0x4c
 
#define SF_XARG3   0x50
 
#define SF_XARG4   0x54
 
#define SF_XARG5   0x58
 
#define SF_XXARG   0x5c
 
#define PTRACE_SPARC_DETACH   11
 
#define PTRACE_GETREGS   12
 
#define PTRACE_SETREGS   13
 
#define PTRACE_GETFPREGS   14
 
#define PTRACE_SETFPREGS   15
 
#define PTRACE_READDATA   16
 
#define PTRACE_WRITEDATA   17
 
#define PTRACE_READTEXT   18
 
#define PTRACE_WRITETEXT   19
 
#define PTRACE_GETFPAREGS   20
 
#define PTRACE_SETFPAREGS   21
 
#define PTRACE_GETREGS64   22
 
#define PTRACE_SETREGS64   23
 
#define PTRACE_GETFPREGS64   25
 
#define PTRACE_SETFPREGS64   26
 

Macro Definition Documentation

#define PT_FP   PT_I6

Definition at line 239 of file ptrace.h.

#define PT_G0   0x10

Definition at line 223 of file ptrace.h.

#define PT_G1   0x14

Definition at line 225 of file ptrace.h.

#define PT_G2   0x18

Definition at line 226 of file ptrace.h.

#define PT_G3   0x1c

Definition at line 227 of file ptrace.h.

#define PT_G4   0x20

Definition at line 228 of file ptrace.h.

#define PT_G5   0x24

Definition at line 229 of file ptrace.h.

#define PT_G6   0x28

Definition at line 230 of file ptrace.h.

#define PT_G7   0x2c

Definition at line 231 of file ptrace.h.

#define PT_I0   0x30

Definition at line 232 of file ptrace.h.

#define PT_I1   0x34

Definition at line 233 of file ptrace.h.

#define PT_I2   0x38

Definition at line 234 of file ptrace.h.

#define PT_I3   0x3c

Definition at line 235 of file ptrace.h.

#define PT_I4   0x40

Definition at line 236 of file ptrace.h.

#define PT_I5   0x44

Definition at line 237 of file ptrace.h.

#define PT_I6   0x48

Definition at line 238 of file ptrace.h.

#define PT_I7   0x4c

Definition at line 240 of file ptrace.h.

#define PT_NPC   0x8

Definition at line 221 of file ptrace.h.

#define PT_PC   0x4

Definition at line 220 of file ptrace.h.

#define PT_PSR   0x0

Definition at line 219 of file ptrace.h.

#define PT_TNPC   PT_V9_TNPC

Definition at line 216 of file ptrace.h.

#define PT_TPC   PT_V9_TPC

Definition at line 215 of file ptrace.h.

#define PT_TSTATE   PT_V9_TSTATE

Definition at line 214 of file ptrace.h.

#define PT_V9_FP   PT_V9_I6

Definition at line 207 of file ptrace.h.

#define PT_V9_G0   0x00

Definition at line 192 of file ptrace.h.

#define PT_V9_G1   0x08

Definition at line 193 of file ptrace.h.

#define PT_V9_G2   0x10

Definition at line 194 of file ptrace.h.

#define PT_V9_G3   0x18

Definition at line 195 of file ptrace.h.

#define PT_V9_G4   0x20

Definition at line 196 of file ptrace.h.

#define PT_V9_G5   0x28

Definition at line 197 of file ptrace.h.

#define PT_V9_G6   0x30

Definition at line 198 of file ptrace.h.

#define PT_V9_G7   0x38

Definition at line 199 of file ptrace.h.

#define PT_V9_I0   0x40

Definition at line 200 of file ptrace.h.

#define PT_V9_I1   0x48

Definition at line 201 of file ptrace.h.

#define PT_V9_I2   0x50

Definition at line 202 of file ptrace.h.

#define PT_V9_I3   0x58

Definition at line 203 of file ptrace.h.

#define PT_V9_I4   0x60

Definition at line 204 of file ptrace.h.

#define PT_V9_I5   0x68

Definition at line 205 of file ptrace.h.

#define PT_V9_I6   0x70

Definition at line 206 of file ptrace.h.

#define PT_V9_I7   0x78

Definition at line 208 of file ptrace.h.

#define PT_V9_MAGIC   0x9c

Definition at line 213 of file ptrace.h.

#define PT_V9_TNPC   0x90

Definition at line 211 of file ptrace.h.

#define PT_V9_TPC   0x88

Definition at line 210 of file ptrace.h.

#define PT_V9_TSTATE   0x80

Definition at line 209 of file ptrace.h.

#define PT_V9_Y   0x98

Definition at line 212 of file ptrace.h.

#define PT_WIM   PT_G0

Definition at line 224 of file ptrace.h.

#define PT_Y   0xc

Definition at line 222 of file ptrace.h.

#define PTRACE_GETFPAREGS   20

Definition at line 339 of file ptrace.h.

#define PTRACE_GETFPREGS   14

Definition at line 333 of file ptrace.h.

#define PTRACE_GETFPREGS64   25

Definition at line 349 of file ptrace.h.

#define PTRACE_GETREGS   12

Definition at line 331 of file ptrace.h.

#define PTRACE_GETREGS64   22

Definition at line 346 of file ptrace.h.

#define PTRACE_READDATA   16

Definition at line 335 of file ptrace.h.

#define PTRACE_READTEXT   18

Definition at line 337 of file ptrace.h.

#define PTRACE_SETFPAREGS   21

Definition at line 340 of file ptrace.h.

#define PTRACE_SETFPREGS   15

Definition at line 334 of file ptrace.h.

#define PTRACE_SETFPREGS64   26

Definition at line 350 of file ptrace.h.

#define PTRACE_SETREGS   13

Definition at line 332 of file ptrace.h.

#define PTRACE_SETREGS64   23

Definition at line 347 of file ptrace.h.

#define PTRACE_SPARC_DETACH   11

Definition at line 330 of file ptrace.h.

#define PTRACE_WRITEDATA   17

Definition at line 336 of file ptrace.h.

#define PTRACE_WRITETEXT   19

Definition at line 338 of file ptrace.h.

#define RW_I0   0x20

Definition at line 268 of file ptrace.h.

#define RW_I1   0x24

Definition at line 269 of file ptrace.h.

#define RW_I2   0x28

Definition at line 270 of file ptrace.h.

#define RW_I3   0x2c

Definition at line 271 of file ptrace.h.

#define RW_I4   0x30

Definition at line 272 of file ptrace.h.

#define RW_I5   0x34

Definition at line 273 of file ptrace.h.

#define RW_I6   0x38

Definition at line 274 of file ptrace.h.

#define RW_I7   0x3c

Definition at line 275 of file ptrace.h.

#define RW_L0   0x00

Definition at line 260 of file ptrace.h.

#define RW_L1   0x04

Definition at line 261 of file ptrace.h.

#define RW_L2   0x08

Definition at line 262 of file ptrace.h.

#define RW_L3   0x0c

Definition at line 263 of file ptrace.h.

#define RW_L4   0x10

Definition at line 264 of file ptrace.h.

#define RW_L5   0x14

Definition at line 265 of file ptrace.h.

#define RW_L6   0x18

Definition at line 266 of file ptrace.h.

#define RW_L7   0x1c

Definition at line 267 of file ptrace.h.

#define RW_V9_I0   0x40

Definition at line 251 of file ptrace.h.

#define RW_V9_I1   0x48

Definition at line 252 of file ptrace.h.

#define RW_V9_I2   0x50

Definition at line 253 of file ptrace.h.

#define RW_V9_I3   0x58

Definition at line 254 of file ptrace.h.

#define RW_V9_I4   0x60

Definition at line 255 of file ptrace.h.

#define RW_V9_I5   0x68

Definition at line 256 of file ptrace.h.

#define RW_V9_I6   0x70

Definition at line 257 of file ptrace.h.

#define RW_V9_I7   0x78

Definition at line 258 of file ptrace.h.

#define RW_V9_L0   0x00

Definition at line 243 of file ptrace.h.

#define RW_V9_L1   0x08

Definition at line 244 of file ptrace.h.

#define RW_V9_L2   0x10

Definition at line 245 of file ptrace.h.

#define RW_V9_L3   0x18

Definition at line 246 of file ptrace.h.

#define RW_V9_L4   0x20

Definition at line 247 of file ptrace.h.

#define RW_V9_L5   0x28

Definition at line 248 of file ptrace.h.

#define RW_V9_L6   0x30

Definition at line 249 of file ptrace.h.

#define RW_V9_L7   0x38

Definition at line 250 of file ptrace.h.

#define SF_FP   0x38

Definition at line 317 of file ptrace.h.

#define SF_I0   0x20

Definition at line 311 of file ptrace.h.

#define SF_I1   0x24

Definition at line 312 of file ptrace.h.

#define SF_I2   0x28

Definition at line 313 of file ptrace.h.

#define SF_I3   0x2c

Definition at line 314 of file ptrace.h.

#define SF_I4   0x30

Definition at line 315 of file ptrace.h.

#define SF_I5   0x34

Definition at line 316 of file ptrace.h.

#define SF_L0   0x00

Definition at line 303 of file ptrace.h.

#define SF_L1   0x04

Definition at line 304 of file ptrace.h.

#define SF_L2   0x08

Definition at line 305 of file ptrace.h.

#define SF_L3   0x0c

Definition at line 306 of file ptrace.h.

#define SF_L4   0x10

Definition at line 307 of file ptrace.h.

#define SF_L5   0x14

Definition at line 308 of file ptrace.h.

#define SF_L6   0x18

Definition at line 309 of file ptrace.h.

#define SF_L7   0x1c

Definition at line 310 of file ptrace.h.

#define SF_PC   0x3c

Definition at line 318 of file ptrace.h.

#define SF_RETP   0x40

Definition at line 319 of file ptrace.h.

#define SF_V9_FP   0x70

Definition at line 292 of file ptrace.h.

#define SF_V9_I0   0x40

Definition at line 286 of file ptrace.h.

#define SF_V9_I1   0x48

Definition at line 287 of file ptrace.h.

#define SF_V9_I2   0x50

Definition at line 288 of file ptrace.h.

#define SF_V9_I3   0x58

Definition at line 289 of file ptrace.h.

#define SF_V9_I4   0x60

Definition at line 290 of file ptrace.h.

#define SF_V9_I5   0x68

Definition at line 291 of file ptrace.h.

#define SF_V9_L0   0x00

Definition at line 278 of file ptrace.h.

#define SF_V9_L1   0x08

Definition at line 279 of file ptrace.h.

#define SF_V9_L2   0x10

Definition at line 280 of file ptrace.h.

#define SF_V9_L3   0x18

Definition at line 281 of file ptrace.h.

#define SF_V9_L4   0x20

Definition at line 282 of file ptrace.h.

#define SF_V9_L5   0x28

Definition at line 283 of file ptrace.h.

#define SF_V9_L6   0x30

Definition at line 284 of file ptrace.h.

#define SF_V9_L7   0x38

Definition at line 285 of file ptrace.h.

#define SF_V9_PC   0x78

Definition at line 293 of file ptrace.h.

#define SF_V9_RETP   0x80

Definition at line 294 of file ptrace.h.

#define SF_V9_XARG0   0x88

Definition at line 295 of file ptrace.h.

#define SF_V9_XARG1   0x90

Definition at line 296 of file ptrace.h.

#define SF_V9_XARG2   0x98

Definition at line 297 of file ptrace.h.

#define SF_V9_XARG3   0xa0

Definition at line 298 of file ptrace.h.

#define SF_V9_XARG4   0xa8

Definition at line 299 of file ptrace.h.

#define SF_V9_XARG5   0xb0

Definition at line 300 of file ptrace.h.

#define SF_V9_XXARG   0xb8

Definition at line 301 of file ptrace.h.

#define SF_XARG0   0x44

Definition at line 320 of file ptrace.h.

#define SF_XARG1   0x48

Definition at line 321 of file ptrace.h.

#define SF_XARG2   0x4c

Definition at line 322 of file ptrace.h.

#define SF_XARG3   0x50

Definition at line 323 of file ptrace.h.

#define SF_XARG4   0x54

Definition at line 324 of file ptrace.h.

#define SF_XARG5   0x58

Definition at line 325 of file ptrace.h.

#define SF_XXARG   0x5c

Definition at line 326 of file ptrace.h.

#define STACKFRAME32_SZ   sizeof(struct sparc_stackf32)

Definition at line 137 of file ptrace.h.

#define STACKFRAME_SZ   sizeof(struct sparc_stackf)

Definition at line 134 of file ptrace.h.

#define TRACEREG32_SZ   sizeof(struct pt_regs32)

Definition at line 136 of file ptrace.h.

#define TRACEREG_SZ   sizeof(struct pt_regs)

Definition at line 133 of file ptrace.h.

#define UREG_FP   UREG_I6

Definition at line 157 of file ptrace.h.

#define UREG_G0   0

Definition at line 141 of file ptrace.h.

#define UREG_G1   1

Definition at line 142 of file ptrace.h.

#define UREG_G2   2

Definition at line 143 of file ptrace.h.

#define UREG_G3   3

Definition at line 144 of file ptrace.h.

#define UREG_G4   4

Definition at line 145 of file ptrace.h.

#define UREG_G5   5

Definition at line 146 of file ptrace.h.

#define UREG_G6   6

Definition at line 147 of file ptrace.h.

#define UREG_G7   7

Definition at line 148 of file ptrace.h.

#define UREG_I0   8

Definition at line 149 of file ptrace.h.

#define UREG_I1   9

Definition at line 150 of file ptrace.h.

#define UREG_I2   10

Definition at line 151 of file ptrace.h.

#define UREG_I3   11

Definition at line 152 of file ptrace.h.

#define UREG_I4   12

Definition at line 153 of file ptrace.h.

#define UREG_I5   13

Definition at line 154 of file ptrace.h.

#define UREG_I6   14

Definition at line 155 of file ptrace.h.

#define UREG_I7   15

Definition at line 156 of file ptrace.h.

#define UREG_RETPC   UREG_I7

Definition at line 158 of file ptrace.h.