0001
0002
0003 #ifndef __ASM_CSKY_FTRACE_H
0004 #define __ASM_CSKY_FTRACE_H
0005
0006 #define MCOUNT_INSN_SIZE 14
0007
0008 #define HAVE_FUNCTION_GRAPH_FP_TEST
0009
0010 #define HAVE_FUNCTION_GRAPH_RET_ADDR_PTR
0011
0012 #define ARCH_SUPPORTS_FTRACE_OPS 1
0013
0014 #define MCOUNT_ADDR ((unsigned long)_mcount)
0015
0016 #ifndef __ASSEMBLY__
0017
0018 extern void _mcount(unsigned long);
0019
0020 extern void ftrace_graph_call(void);
0021
0022 static inline unsigned long ftrace_call_adjust(unsigned long addr)
0023 {
0024 return addr;
0025 }
0026
0027 struct dyn_arch_ftrace {
0028 };
0029 #endif
0030 #endif