1 #ifndef _ASM_POWERPC_FTRACE
2 #define _ASM_POWERPC_FTRACE
4 #ifdef CONFIG_FUNCTION_TRACER
5 #define MCOUNT_ADDR ((long)(_mcount))
6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
9 extern void _mcount(void);
11 #ifdef CONFIG_DYNAMIC_FTRACE
12 static inline unsigned long ftrace_call_adjust(unsigned long addr)
14 /* reloction of mcount call site is the same as the address */
18 struct dyn_arch_ftrace {
21 #endif /* CONFIG_DYNAMIC_FTRACE */
22 #endif /* __ASSEMBLY__ */
26 #endif /* _ASM_POWERPC_FTRACE */