Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1#ifndef _ASM_SPARC64_FTRACE
2#define _ASM_SPARC64_FTRACE
3
4#ifdef CONFIG_MCOUNT
5#define MCOUNT_ADDR ((unsigned long)(_mcount))
6#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
7
8#ifndef __ASSEMBLY__
9void _mcount(void);
10#endif
11
12#endif /* CONFIG_MCOUNT */
13
14#if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY)
15#define HAVE_FUNCTION_GRAPH_FP_TEST
16#endif
17
18#ifdef CONFIG_DYNAMIC_FTRACE
19/* reloction of mcount call site is the same as the address */
20static inline unsigned long ftrace_call_adjust(unsigned long addr)
21{
22 return addr;
23}
24
25struct dyn_arch_ftrace {
26};
27#endif /* CONFIG_DYNAMIC_FTRACE */
28
29unsigned long prepare_ftrace_return(unsigned long parent,
30 unsigned long self_addr,
31 unsigned long frame_pointer);
32
33#endif /* _ASM_SPARC64_FTRACE */