ftrace/x86: Adjust x86 regs.ip as like as x86-64
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Wed, 5 Sep 2012 14:31:00 +0000 (23:31 +0900)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 14 Sep 2012 02:52:09 +0000 (22:52 -0400)
commita5e37863ab31d78faddff15675c89979792bc0bd
tree419d5be632de58394bf726b59fe3475f06c3502d
parentea632e9f12033346cc68247faa3b924d54936b8b
ftrace/x86: Adjust x86 regs.ip as like as x86-64

Adjust x86 regs.ip to ip + MCOUNT_INSN_SIZE as like as
on x86-64. This helps us to consolidate codes which use
regs->ip on both of x86/x86-64.

Link: http://lkml.kernel.org/r/20120905143100.10329.60109.stgit@localhost.localdomain
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/entry_32.S