1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SPARC64_FTRACE
3 #define _ASM_SPARC64_FTRACE
6 #define MCOUNT_ADDR ((unsigned long)(_mcount))
7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
13 #endif /* CONFIG_MCOUNT */
15 #if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY)
16 #define HAVE_FUNCTION_GRAPH_FP_TEST
19 #ifdef CONFIG_DYNAMIC_FTRACE
20 /* reloction of mcount call site is the same as the address */
21 static inline unsigned long ftrace_call_adjust(unsigned long addr
)
26 struct dyn_arch_ftrace
{
28 #endif /* CONFIG_DYNAMIC_FTRACE */
30 unsigned long prepare_ftrace_return(unsigned long parent
,
31 unsigned long self_addr
,
32 unsigned long frame_pointer
);
34 #endif /* _ASM_SPARC64_FTRACE */