Debian Codegraph @

arch/csky/include/asm/ftrace.h

raw
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 ARCH_SUPPORTS_FTRACE_OPS 1
11
12 #define MCOUNT_ADDR ((unsigned long)_mcount)
13
14 #ifndef __ASSEMBLER__
15
16 extern void _mcount(unsigned long);
17
18 extern void ftrace_graph_call(void);
19
20 static inline unsigned long ftrace_call_adjust(unsigned long addr)
21 {
22 return addr;
23 }
24
25 struct dyn_arch_ftrace {
26 };
27
28 void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
29 unsigned long frame_pointer);
30
31 #endif /* !__ASSEMBLER__ */
32 #endif /* __ASM_CSKY_FTRACE_H */