• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_METAG_FTRACE
3 #define _ASM_METAG_FTRACE
4 
5 #ifdef CONFIG_FUNCTION_TRACER
6 #define MCOUNT_INSN_SIZE	8 /* sizeof mcount call */
7 
8 #ifndef __ASSEMBLY__
9 extern void mcount_wrapper(void);
10 #define MCOUNT_ADDR		((unsigned long)(mcount_wrapper))
11 
ftrace_call_adjust(unsigned long addr)12 static inline unsigned long ftrace_call_adjust(unsigned long addr)
13 {
14 	return addr;
15 }
16 
17 struct dyn_arch_ftrace {
18 	/* No extra data needed on metag */
19 };
20 #endif /* __ASSEMBLY__ */
21 
22 #endif /* CONFIG_FUNCTION_TRACER */
23 
24 #endif /* _ASM_METAG_FTRACE */
25