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
26 0: .long ftrace_trace_function
27 1: .long function_trace_stop
36 st %r0,__SF_BACKCHAIN(%r15)
41 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
44 .globl ftrace_graph_caller
46 # The bras instruction gets runtime patched to call prepare_ftrace_return.
47 # See ftrace_enable_ftrace_graph_caller. The patched instruction is:
48 # bras %r14,prepare_ftrace_return
54 3: lm %r2,%r5,16(%r15)
57 #ifdef CONFIG_FUNCTION_GRAPH_TRACER
59 .globl return_to_handler
65 st %r0,__SF_BACKCHAIN(%r15)
67 .long ftrace_return_to_handler