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

Documentation/powerpc: Fix ptrace request names

The documented ptrace request names are currently wrong/incomplete.
Fix this to improve correctness and searchability.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230725005841.28854-2-bgray@linux.ibm.com

authored by

Benjamin Gray and committed by
Michael Ellerman
0e216fa5 53834a0c

+4 -4
+4 -4
Documentation/powerpc/ptrace.rst
··· 15 15 that GDB doesn't need to special-case each of them. We added the 16 16 following 3 new ptrace requests. 17 17 18 - 1. PTRACE_PPC_GETHWDEBUGINFO 18 + 1. PPC_PTRACE_GETHWDBGINFO 19 19 ============================ 20 20 21 21 Query for GDB to discover the hardware debug features. The main info to ··· 48 48 #define PPC_DEBUG_FEATURE_DATA_BP_DAWR 0x10 49 49 #define PPC_DEBUG_FEATURE_DATA_BP_ARCH_31 0x20 50 50 51 - 2. PTRACE_SETHWDEBUG 51 + 2. PPC_PTRACE_SETHWDEBUG 52 52 53 53 Sets a hardware breakpoint or watchpoint, according to the provided structure:: 54 54 ··· 88 88 are not contemplated, but that is out of the scope of this work. 89 89 90 90 ptrace will return an integer (handle) uniquely identifying the breakpoint or 91 - watchpoint just created. This integer will be used in the PTRACE_DELHWDEBUG 91 + watchpoint just created. This integer will be used in the PPC_PTRACE_DELHWDEBUG 92 92 request to ask for its removal. Return -ENOSPC if the requested breakpoint 93 93 can't be allocated on the registers. 94 94 ··· 150 150 p.addr2 = (uint64_t) end_range; 151 151 p.condition_value = 0; 152 152 153 - 3. PTRACE_DELHWDEBUG 153 + 3. PPC_PTRACE_DELHWDEBUG 154 154 155 155 Takes an integer which identifies an existing breakpoint or watchpoint 156 156 (i.e., the value returned from PTRACE_SETHWDEBUG), and deletes the