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
24 larl %r1,function_trace_stop
31 stg %r1,__SF_BACKCHAIN(%r15)
34 larl %r14,ftrace_trace_function
37 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
40 .globl ftrace_graph_caller
42 # The bras instruction gets runtime patched to call prepare_ftrace_return.
43 # See ftrace_enable_ftrace_graph_caller. The patched instruction is:
44 # bras %r14,prepare_ftrace_return
53 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
55 .globl return_to_handler
60 stg %r1,__SF_BACKCHAIN(%r15)
61 brasl %r14,ftrace_return_to_handler