1 /* SPDX-License-Identifier: GPL-2.0 */
3 #ifndef __ASM_CSKY_FTRACE_H
4 #define __ASM_CSKY_FTRACE_H
6 #define MCOUNT_INSN_SIZE 14
8 #define HAVE_FUNCTION_GRAPH_FP_TEST
10 #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
12 #define ARCH_SUPPORTS_FTRACE_OPS 1
14 #define MCOUNT_ADDR ((unsigned long)_mcount)
18 extern void _mcount(unsigned long);
20 extern void ftrace_graph_call(void);
22 static inline unsigned long ftrace_call_adjust(unsigned long addr)
27 struct dyn_arch_ftrace {
29 #endif /* !__ASSEMBLY__ */
30 #endif /* __ASM_CSKY_FTRACE_H */