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:11:50 +0000 (11:11 -0800)
commitfe78c20faafde229631b0402ef9fdfbc75277903
tree1a4528b5eedcb014ec6d282662a959b724bfdd05
parentb5f92a134b69faeffa0e1a811f01a48d686a4e97
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