summaryrefslogtreecommitdiff
path: root/include/asm-x86/ptrace_32.h
diff options
context:
space:
mode:
authorJan Blunck <jblunck@suse.de>2007-10-19 22:35:04 +0400
committerThomas Gleixner <tglx@linutronix.de>2007-10-19 22:35:04 +0400
commitf1df280f53d7c3ce8613a3b25d1efe009b9860dd (patch)
tree7b9d6d837355bd913fb5b41017556f1137adee18 /include/asm-x86/ptrace_32.h
parentab483570a13be2a34c0502b166df8f8b26802103 (diff)
downloadlinux-f1df280f53d7c3ce8613a3b25d1efe009b9860dd.tar.xz
x86: introduce frame_pointer() and stack_pointer()
This patch defines frame_pointer() and stack_pointer() similar to the already defined instruction_pointer(). Thus the oprofile code can be written in a more readable fashion. [ tglx: arch/x86 adaptation ] Signed-off-by: Jan Blunck <jblunck@suse.de> Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/ptrace_32.h')
-rw-r--r--include/asm-x86/ptrace_32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/ptrace_32.h b/include/asm-x86/ptrace_32.h
index 6002597b9e12..78d063dabe0a 100644
--- a/include/asm-x86/ptrace_32.h
+++ b/include/asm-x86/ptrace_32.h
@@ -55,6 +55,8 @@ static inline int v8086_mode(struct pt_regs *regs)
}
#define instruction_pointer(regs) ((regs)->eip)
+#define frame_pointer(regs) ((regs)->ebp)
+#define stack_pointer(regs) ((regs)->esp)
#define regs_return_value(regs) ((regs)->eax)
extern unsigned long profile_pc(struct pt_regs *regs);