Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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 __ASSEMBLY__
15
16extern void _mcount(unsigned long);
17
18extern void ftrace_graph_call(void);
19
20static inline unsigned long ftrace_call_adjust(unsigned long addr)
21{
22 return addr;
23}
24
25struct dyn_arch_ftrace {
26};
27
28void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
29 unsigned long frame_pointer);
30
31#endif /* !__ASSEMBLY__ */
32#endif /* __ASM_CSKY_FTRACE_H */