2 * Copyright IBM Corp. 2008,2009
4 * Author(s): Heiko Carstens <heiko.carstens@de.ibm.com>,
8 #include <asm/asm-offsets.h>
10 .section .kprobes.text, "ax"
18 #ifdef CONFIG_DYNAMIC_FTRACE
22 .globl ftrace_dyn_func
32 #ifdef CONFIG_DYNAMIC_FTRACE
33 0: .long ftrace_dyn_func
35 0: .long ftrace_trace_function
37 1: .long function_trace_stop
46 st %r0,__SF_BACKCHAIN(%r15)
51 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
52 #ifdef CONFIG_DYNAMIC_FTRACE
53 .globl ftrace_graph_caller
55 # This unconditional branch gets runtime patched. Change only if
56 # you know what you are doing. See ftrace_enable_graph_caller().
60 .long prepare_ftrace_return
70 3: lm %r2,%r5,16(%r15)
73 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
75 .globl return_to_handler
81 st %r0,__SF_BACKCHAIN(%r15)
83 .long ftrace_return_to_handler