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
24 larl %r1,function_trace_stop
31 stg %r1,__SF_BACKCHAIN(%r15)
34 larl %r14,ftrace_dyn_func
43 .globl ftrace_dyn_func
48 #else /* CONFIG_DYNAMIC_FTRACE */
52 larl %r1,function_trace_stop
59 stg %r1,__SF_BACKCHAIN(%r15)
62 larl %r14,ftrace_trace_function
70 #endif /* CONFIG_DYNAMIC_FTRACE */
72 #else /* CONFIG_64BIT */
74 #ifdef CONFIG_DYNAMIC_FTRACE
84 0: .long ftrace_trace_function
85 1: .long function_trace_stop
94 st %r0,__SF_BACKCHAIN(%r15)
101 3: lm %r2,%r5,16(%r15)
105 .globl ftrace_dyn_func
110 #else /* CONFIG_DYNAMIC_FTRACE */
116 0: .long ftrace_trace_function
117 1: .long function_trace_stop
126 st %r0,__SF_BACKCHAIN(%r15)
133 3: lm %r2,%r5,16(%r15)
136 #endif /* CONFIG_DYNAMIC_FTRACE */
137 #endif /* CONFIG_64BIT */