2 * Copyright IBM Corp. 2008,2009
4 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>,
8 #include <linux/linkage.h>
9 #include <asm/asm-offsets.h>
11 .section .kprobes.text, "ax"
17 #ifdef CONFIG_DYNAMIC_FTRACE
24 0: .long ftrace_trace_function
25 1: .long function_trace_stop
34 st %r0,__SF_BACKCHAIN(%r15)
39 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
42 ENTRY(ftrace_graph_caller)
43 # The bras instruction gets runtime patched to call prepare_ftrace_return.
44 # See ftrace_enable_ftrace_graph_caller. The patched instruction is:
45 # bras %r14,prepare_ftrace_return
51 3: lm %r2,%r5,16(%r15)
54 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
56 ENTRY(return_to_handler)
61 st %r0,__SF_BACKCHAIN(%r15)
63 .long ftrace_return_to_handler