1 #ifndef _ASM_POWERPC_FTRACE 2 #define _ASM_POWERPC_FTRACE 3 4 #ifdef CONFIG_FUNCTION_TRACER 5 #define MCOUNT_ADDR ((long)(_mcount)) 6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ 7 8 #ifndef __ASSEMBLY__ 9 extern void _mcount(void); 10 11 #ifdef CONFIG_DYNAMIC_FTRACE 12 static inline unsigned long ftrace_call_adjust(unsigned long addr) 13 { 14 /* reloction of mcount call site is the same as the address */ 15 return addr; 16 } 17 18 struct dyn_arch_ftrace { 19 struct module *mod; 20 }; 21 #endif /* CONFIG_DYNAMIC_FTRACE */ 22 #endif /* __ASSEMBLY__ */ 23 24 #endif 25 26 #endif /* _ASM_POWERPC_FTRACE */ 27