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
28 larl %r1,function_trace_stop
35 stg %r1,__SF_BACKCHAIN(%r15)
38 #ifdef CONFIG_DYNAMIC_FTRACE
39 larl %r14,ftrace_dyn_func
41 larl %r14,ftrace_trace_function
45 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
46 #ifdef CONFIG_DYNAMIC_FTRACE
47 .globl ftrace_graph_caller
49 # This unconditional branch gets runtime patched. Change only if
50 # you know what you are doing. See ftrace_enable_graph_caller().
55 brasl %r14,prepare_ftrace_return
64 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
66 .globl return_to_handler
71 stg %r1,__SF_BACKCHAIN(%r15)
72 brasl %r14,ftrace_return_to_handler