treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / sparc / include / asm / ftrace.h
blobd3aa1a524431bc8a7a320a51916752506424e655
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_SPARC64_FTRACE
3 #define _ASM_SPARC64_FTRACE
5 #ifdef CONFIG_MCOUNT
6 #define MCOUNT_ADDR ((unsigned long)(_mcount))
7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
9 #ifndef __ASSEMBLY__
10 void _mcount(void);
11 #endif
13 #endif /* CONFIG_MCOUNT */
15 #if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY)
16 #define HAVE_FUNCTION_GRAPH_FP_TEST
17 #endif
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)
23 return 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 */