asm-generic/ptrace.h: start a common low level ptrace helper
authorMike Frysinger <>
Thu, 26 May 2011 23:25:39 +0000 (16:25 -0700)
committerLinus Torvalds <>
Fri, 27 May 2011 00:12:36 +0000 (17:12 -0700)
asm-generic/ptrace.h: start a common low level ptrace helper

This is a series of low level ptrace unification steps to make it easier
for common code (like KGDB) to poke at register state.  This also avoids
having to duplicate higher level operations for most ports which don't
have special needs for accessing things.

This patch:

This implements a bunch of helper funcs for poking the registers of a
ptrace structure.  Now common code should be able to portably update
specific registers (like kgdb updating the PC).

Signed-off-by: Mike Frysinger <>
Cc: Oleg Nesterov <>
Cc: Jason Wessel <>
Cc: Thomas Gleixner <>
Cc: Ingo Molnar <>
Cc: "H. Peter Anvin" <>
Cc: Paul Mundt <>
Cc: Sergei Shtylyov <>
Cc: Dongdong Deng <>
Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>
include/asm-generic/ptrace.h [new file with mode: 0644]