I split Peter's patch up into two. One that implements the gap in the breakpoint handler, and supplies the helper functions. And the other one that adds ftrace as the user of that code.
Peter, I need an offical "Signed-off-by" from you for these. I'm currently running them through my full test suite (which will also test 32bit). If they work I think these may be the final set to go. Let me know if there's any issues. -- Steve Peter Zijlstra (2): x86: Allow breakpoints to emulate call functions ftrace/x86: Emulate call function while updating in breakpoint handler ---- arch/x86/entry/entry_32.S | 11 +++++++++++ arch/x86/entry/entry_64.S | 14 ++++++++++++-- arch/x86/include/asm/text-patching.h | 20 ++++++++++++++++++++ arch/x86/kernel/ftrace.c | 25 ++++++++++++++++++++----- 4 files changed, 63 insertions(+), 7 deletions(-)