xref: /openbmc/linux/arch/csky/include/asm/ftrace.h (revision 7effbd18)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef __ASM_CSKY_FTRACE_H
4 #define __ASM_CSKY_FTRACE_H
5 
6 #define MCOUNT_INSN_SIZE	14
7 
8 #define HAVE_FUNCTION_GRAPH_FP_TEST
9 
10 #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
11 
12 #define ARCH_SUPPORTS_FTRACE_OPS 1
13 
14 #define MCOUNT_ADDR	((unsigned long)_mcount)
15 
16 #ifndef __ASSEMBLY__
17 
18 extern void _mcount(unsigned long);
19 
20 extern void ftrace_graph_call(void);
21 
22 static inline unsigned long ftrace_call_adjust(unsigned long addr)
23 {
24 	return addr;
25 }
26 
27 struct dyn_arch_ftrace {
28 };
29 #endif /* !__ASSEMBLY__ */
30 #endif /* __ASM_CSKY_FTRACE_H */
31