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 ARCH_SUPPORTS_FTRACE_OPS 1
12 #define MCOUNT_ADDR ((unsigned long)_mcount)
16 extern void _mcount(unsigned long);
18 extern void ftrace_graph_call(void);
20 static inline unsigned long ftrace_call_adjust(unsigned long addr
)
25 struct dyn_arch_ftrace
{
28 void prepare_ftrace_return(unsigned long *parent
, unsigned long self_addr
,
29 unsigned long frame_pointer
);
31 #endif /* !__ASSEMBLY__ */
32 #endif /* __ASM_CSKY_FTRACE_H */