Go to the documentation of this file.
15 #ifndef _UAPI_ASM_TILE_PTRACE_H
16 #define _UAPI_ASM_TILE_PTRACE_H
22 #if CHIP_WORD_SIZE() == 32
23 #define PTREGS_OFFSET_REG(n) ((n)*4)
25 #define PTREGS_OFFSET_REG(n) ((n)*8)
27 #define PTREGS_OFFSET_BASE 0
28 #define PTREGS_OFFSET_TP PTREGS_OFFSET_REG(53)
29 #define PTREGS_OFFSET_SP PTREGS_OFFSET_REG(54)
30 #define PTREGS_OFFSET_LR PTREGS_OFFSET_REG(55)
31 #define PTREGS_NR_GPRS 56
32 #define PTREGS_OFFSET_PC PTREGS_OFFSET_REG(56)
33 #define PTREGS_OFFSET_EX1 PTREGS_OFFSET_REG(57)
34 #define PTREGS_OFFSET_FAULTNUM PTREGS_OFFSET_REG(58)
35 #define PTREGS_OFFSET_ORIG_R0 PTREGS_OFFSET_REG(59)
36 #define PTREGS_OFFSET_FLAGS PTREGS_OFFSET_REG(60)
37 #if CHIP_HAS_CMPEXCH()
38 #define PTREGS_OFFSET_CMPEXCH PTREGS_OFFSET_REG(61)
40 #define PTREGS_SIZE PTREGS_OFFSET_REG(64)
68 #if !CHIP_HAS_CMPEXCH()
78 #define PTRACE_GETREGS 12
79 #define PTRACE_SETREGS 13
80 #define PTRACE_GETFPREGS 14
81 #define PTRACE_SETFPREGS 15
84 #define PTRACE_O_TRACEMIGRATE 0x00010000
85 #define PTRACE_EVENT_MIGRATE 16