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 */
10 /* Based off of objdump optput from glibc */
12 #define MCOUNT_SAVE_FRAME \
28 #define MCOUNT_RESTORE_FRAME \
45 #else /* !__ASSEMBLY__ */
46 extern void _mcount(void);
48 #ifdef CONFIG_DYNAMIC_FTRACE
49 static inline unsigned long ftrace_call_adjust(unsigned long addr)
51 /* reloction of mcount call site is the same as the address */
55 struct dyn_arch_ftrace {
58 #endif /* CONFIG_DYNAMIC_FTRACE */
59 #endif /* __ASSEMBLY__ */
63 #endif /* _ASM_POWERPC_FTRACE */