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
22 larl %r1,function_trace_stop
29 stg %r1,__SF_BACKCHAIN(%r15)
32 larl %r14,ftrace_trace_function
35 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
38 ENTRY(ftrace_graph_caller)
39 # The bras instruction gets runtime patched to call prepare_ftrace_return.
40 # See ftrace_enable_ftrace_graph_caller. The patched instruction is:
41 # bras %r14,prepare_ftrace_return
50 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
52 ENTRY(return_to_handler)
56 stg %r1,__SF_BACKCHAIN(%r15)
57 brasl %r14,ftrace_return_to_handler