Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
395a59d0 AS |
2 | #ifndef _ASM_SPARC64_FTRACE |
3 | #define _ASM_SPARC64_FTRACE | |
4 | ||
760378e1 | 5 | #ifdef CONFIG_MCOUNT |
c93bf928 | 6 | #define MCOUNT_ADDR ((unsigned long)(_mcount)) |
395a59d0 AS |
7 | #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ |
8 | ||
9 | #ifndef __ASSEMBLY__ | |
f05a6865 | 10 | void _mcount(void); |
395a59d0 AS |
11 | #endif |
12 | ||
e4a744ef JP |
13 | #endif /* CONFIG_MCOUNT */ |
14 | ||
15 | #if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY) | |
16 | #define HAVE_FUNCTION_GRAPH_FP_TEST | |
395a59d0 AS |
17 | #endif |
18 | ||
9be12f9b DM |
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) | |
22 | { | |
23 | return addr; | |
24 | } | |
25 | ||
26 | struct dyn_arch_ftrace { | |
27 | }; | |
28 | #endif /* CONFIG_DYNAMIC_FTRACE */ | |
29 | ||
b6abce1f SR |
30 | unsigned long prepare_ftrace_return(unsigned long parent, |
31 | unsigned long self_addr, | |
32 | unsigned long frame_pointer); | |
33 | ||
395a59d0 | 34 | #endif /* _ASM_SPARC64_FTRACE */ |