ftrace/x86: skip over the breakpoint for ftrace caller
authorKevin Hao <haokexin@gmail.com>
Wed, 23 Oct 2013 12:58:16 +0000 (20:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:28:05 +0000 (11:28 -0800)
commit26146207c9fc024ff6752225d271ec47ccd35dfc
tree8ee14e9a8a59d8d42db2db7619989f42283b80ac
parent94152e4a439841a2b112ae234f98625e4fe5da47
ftrace/x86: skip over the breakpoint for ftrace caller

commit ab4ead02ec235d706d0611d8741964628291237e upstream.

In commit 8a4d0a687a59 "ftrace: Use breakpoint method to update ftrace
caller", we choose to use breakpoint method to update the ftrace
caller. But we also need to skip over the breakpoint in function
ftrace_int3_handler() for them. Otherwise weird things would happen.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/ftrace.c