livepatch: Use the default ftrace_ops instead of REGS when ARGS is available
[linux-2.6-microblaze.git] / arch / x86 / include / asm / ftrace.h
index e00fe88..9f3130f 100644 (file)
@@ -54,6 +54,9 @@ arch_ftrace_get_regs(struct ftrace_regs *fregs)
                return NULL;
        return &fregs->regs;
 }
+
+#define ftrace_instruction_pointer_set(fregs, _ip)     \
+       do { (fregs)->regs.ip = (_ip); } while (0)
 #endif
 
 #ifdef CONFIG_DYNAMIC_FTRACE