Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/ptrace: Make #defines for all request numbers hex

We have a mix of decimal and hex here, so lets make them consistently
hex. Also, strace will print them in hex if it can't decode them, so
having them in hex here makes it easier to match up.

No functional change.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Michael Neuling and committed by
Benjamin Herrenschmidt
145c52d5 4e8309ba

+14 -14
+14 -14
arch/powerpc/include/uapi/asm/ptrace.h
··· 147 147 * structures. This also simplifies the implementation of a bi-arch 148 148 * (combined (32- and 64-bit) gdb. 149 149 */ 150 - #define PTRACE_GETVRREGS 18 151 - #define PTRACE_SETVRREGS 19 150 + #define PTRACE_GETVRREGS 0x12 151 + #define PTRACE_SETVRREGS 0x13 152 152 153 153 /* Get/set all the upper 32-bits of the SPE registers, accumulator, and 154 154 * spefscr, in one go */ 155 - #define PTRACE_GETEVRREGS 20 156 - #define PTRACE_SETEVRREGS 21 155 + #define PTRACE_GETEVRREGS 0x14 156 + #define PTRACE_SETEVRREGS 0x15 157 157 158 158 /* Get the first 32 128bit VSX registers */ 159 - #define PTRACE_GETVSRREGS 27 160 - #define PTRACE_SETVSRREGS 28 159 + #define PTRACE_GETVSRREGS 0x1b 160 + #define PTRACE_SETVSRREGS 0x1c 161 161 162 162 /* 163 163 * Get or set a debug register. The first 16 are DABR registers and the 164 164 * second 16 are IABR registers. 165 165 */ 166 - #define PTRACE_GET_DEBUGREG 25 167 - #define PTRACE_SET_DEBUGREG 26 166 + #define PTRACE_GET_DEBUGREG 0x19 167 + #define PTRACE_SET_DEBUGREG 0x1a 168 168 169 169 /* (new) PTRACE requests using the same numbers as x86 and the same 170 170 * argument ordering. Additionally, they support more registers too 171 171 */ 172 - #define PTRACE_GETREGS 12 173 - #define PTRACE_SETREGS 13 174 - #define PTRACE_GETFPREGS 14 175 - #define PTRACE_SETFPREGS 15 176 - #define PTRACE_GETREGS64 22 177 - #define PTRACE_SETREGS64 23 172 + #define PTRACE_GETREGS 0xc 173 + #define PTRACE_SETREGS 0xd 174 + #define PTRACE_GETFPREGS 0xe 175 + #define PTRACE_SETFPREGS 0xf 176 + #define PTRACE_GETREGS64 0x16 177 + #define PTRACE_SETREGS64 0x17 178 178 179 179 /* Calls to trace a 64bit program from a 32bit program */ 180 180 #define PPC_PTRACE_PEEKTEXT_3264 0x95