summaryrefslogtreecommitdiffstats
path: root/include/asm-x86/ptrace.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-04-18 17:08:44 -0700
committerRoland McGrath <roland@redhat.com>2008-07-26 14:38:01 -0700
commit68bd0f4ef7750fc277e1268bf40f443898382409 (patch)
tree8db4ce3a3e54e07deeb4a3616f02bbdb338e93fd /include/asm-x86/ptrace.h
parenteeea3c3ff8af7f6960a0515d46dff6479bdb91f9 (diff)
downloadop-kernel-dev-68bd0f4ef7750fc277e1268bf40f443898382409.zip
op-kernel-dev-68bd0f4ef7750fc277e1268bf40f443898382409.tar.gz
x86: tracehook: asm/syscall.h
Add asm/syscall.h for x86 with all the required entry points. This will allow arch-independent tracing code for system calls. Signed-off-by: Roland McGrath <roland@redhat.com>
Diffstat (limited to 'include/asm-x86/ptrace.h')
-rw-r--r--include/asm-x86/ptrace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-x86/ptrace.h b/include/asm-x86/ptrace.h
index 8a71db8..91a77f5 100644
--- a/include/asm-x86/ptrace.h
+++ b/include/asm-x86/ptrace.h
@@ -213,6 +213,11 @@ static inline unsigned long frame_pointer(struct pt_regs *regs)
return regs->bp;
}
+static inline unsigned long user_stack_pointer(struct pt_regs *regs)
+{
+ return regs->sp;
+}
+
/*
* These are defined as per linux/ptrace.h, which see.
*/
OpenPOWER on IntegriCloud