1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_METAG_FTRACE
3 #define _ASM_METAG_FTRACE
5 #ifdef CONFIG_FUNCTION_TRACER
6 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */
9 extern void mcount_wrapper(void);
10 #define MCOUNT_ADDR ((unsigned long)(mcount_wrapper))
12 static inline unsigned long ftrace_call_adjust(unsigned long addr)
17 struct dyn_arch_ftrace {
18 /* No extra data needed on metag */
20 #endif /* __ASSEMBLY__ */
22 #endif /* CONFIG_FUNCTION_TRACER */
24 #endif /* _ASM_METAG_FTRACE */