2 * Copyright IBM Corp. 2008,2009
4 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>,
8 #include <asm/asm-offsets.h>
16 #ifdef CONFIG_DYNAMIC_FTRACE
20 .globl ftrace_dyn_func
30 #ifdef CONFIG_DYNAMIC_FTRACE
31 0: .long ftrace_dyn_func
33 0: .long ftrace_trace_function
35 1: .long function_trace_stop
44 st %r0,__SF_BACKCHAIN(%r15)
49 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
50 #ifdef CONFIG_DYNAMIC_FTRACE
51 .globl ftrace_graph_caller
53 # This unconditional branch gets runtime patched. Change only if
54 # you know what you are doing. See ftrace_enable_graph_caller().
58 .long prepare_ftrace_return
68 3: lm %r2,%r5,16(%r15)
71 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
73 .globl return_to_handler
79 st %r0,__SF_BACKCHAIN(%r15)
81 .long ftrace_return_to_handler