Go to the documentation of this file.
23 #ifndef _UAPI_ASM_POWERPC_PTRACE_H
24 #define _UAPI_ASM_POWERPC_PTRACE_H
27 #include <linux/types.h>
32 unsigned long gpr[32];
102 #ifndef __powerpc64__
111 #define PT_REGS_COUNT 44
115 #ifndef __powerpc64__
117 #define PT_FPR31 (PT_FPR0 + 2*31)
118 #define PT_FPSCR (PT_FPR0 + 2*32 + 1)
122 #define PT_FPSCR (PT_FPR0 + 32)
126 #define PT_VSCR (PT_VR0 + 32*2 + 1)
127 #define PT_VRSAVE (PT_VR0 + 33*2)
134 #define PT_VSR31 (PT_VSR0 + 2*31)
149 #define PTRACE_GETVRREGS 18
150 #define PTRACE_SETVRREGS 19
154 #define PTRACE_GETEVRREGS 20
155 #define PTRACE_SETEVRREGS 21
158 #define PTRACE_GETVSRREGS 27
159 #define PTRACE_SETVSRREGS 28
165 #define PTRACE_GET_DEBUGREG 25
166 #define PTRACE_SET_DEBUGREG 26
171 #define PTRACE_GETREGS 12
172 #define PTRACE_SETREGS 13
173 #define PTRACE_GETFPREGS 14
174 #define PTRACE_SETFPREGS 15
175 #define PTRACE_GETREGS64 22
176 #define PTRACE_SETREGS64 23
179 #define PPC_PTRACE_PEEKTEXT_3264 0x95
180 #define PPC_PTRACE_PEEKDATA_3264 0x94
181 #define PPC_PTRACE_POKETEXT_3264 0x93
182 #define PPC_PTRACE_POKEDATA_3264 0x92
183 #define PPC_PTRACE_PEEKUSR_3264 0x91
184 #define PPC_PTRACE_POKEUSR_3264 0x90
186 #define PTRACE_SINGLEBLOCK 0x100
188 #define PPC_PTRACE_GETHWDBGINFO 0x89
189 #define PPC_PTRACE_SETHWDEBUG 0x88
190 #define PPC_PTRACE_DELHWDEBUG 0x87
209 #define PPC_DEBUG_FEATURE_INSN_BP_RANGE 0x0000000000000001
210 #define PPC_DEBUG_FEATURE_INSN_BP_MASK 0x0000000000000002
211 #define PPC_DEBUG_FEATURE_DATA_BP_RANGE 0x0000000000000004
212 #define PPC_DEBUG_FEATURE_DATA_BP_MASK 0x0000000000000008
231 #define PPC_BREAKPOINT_TRIGGER_EXECUTE 0x00000001
232 #define PPC_BREAKPOINT_TRIGGER_READ 0x00000002
233 #define PPC_BREAKPOINT_TRIGGER_WRITE 0x00000004
234 #define PPC_BREAKPOINT_TRIGGER_RW \
235 (PPC_BREAKPOINT_TRIGGER_READ | PPC_BREAKPOINT_TRIGGER_WRITE)
240 #define PPC_BREAKPOINT_MODE_EXACT 0x00000000
241 #define PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE 0x00000001
242 #define PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE 0x00000002
243 #define PPC_BREAKPOINT_MODE_MASK 0x00000003
248 #define PPC_BREAKPOINT_CONDITION_MODE 0x00000003
249 #define PPC_BREAKPOINT_CONDITION_NONE 0x00000000
250 #define PPC_BREAKPOINT_CONDITION_AND 0x00000001
251 #define PPC_BREAKPOINT_CONDITION_EXACT PPC_BREAKPOINT_CONDITION_AND
252 #define PPC_BREAKPOINT_CONDITION_OR 0x00000002
253 #define PPC_BREAKPOINT_CONDITION_AND_OR 0x00000003
254 #define PPC_BREAKPOINT_CONDITION_BE_ALL 0x00ff0000
255 #define PPC_BREAKPOINT_CONDITION_BE_SHIFT 16
256 #define PPC_BREAKPOINT_CONDITION_BE(n) \
257 (1<<((n)+PPC_BREAKPOINT_CONDITION_BE_SHIFT))