WIP FPC-III support
[linux/fpc-iii.git] / arch / csky / include / asm / ftrace.h
blobfae72b0b1374dfc279dea8ca23f2eee1611105a3
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_FTRACE_H
5 #define __ASM_CSKY_FTRACE_H
7 #define MCOUNT_INSN_SIZE 14
9 #define HAVE_FUNCTION_GRAPH_FP_TEST
11 #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
13 #define ARCH_SUPPORTS_FTRACE_OPS 1
15 #define MCOUNT_ADDR ((unsigned long)_mcount)
17 #ifndef __ASSEMBLY__
19 extern void _mcount(unsigned long);
21 extern void ftrace_graph_call(void);
23 static inline unsigned long ftrace_call_adjust(unsigned long addr)
25 return addr;
28 struct dyn_arch_ftrace {
30 #endif /* !__ASSEMBLY__ */
31 #endif /* __ASM_CSKY_FTRACE_H */