Merge tag 'pinctrl-v4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw...
[linux-2.6-block.git] / arch / sparc / include / asm / ftrace.h
CommitLineData
395a59d0
AS
1#ifndef _ASM_SPARC64_FTRACE
2#define _ASM_SPARC64_FTRACE
3
760378e1 4#ifdef CONFIG_MCOUNT
c93bf928 5#define MCOUNT_ADDR ((unsigned long)(_mcount))
395a59d0
AS
6#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
7
8#ifndef __ASSEMBLY__
f05a6865 9void _mcount(void);
395a59d0
AS
10#endif
11
e4a744ef
JP
12#endif /* CONFIG_MCOUNT */
13
14#if defined(CONFIG_SPARC64) && !defined(CC_USE_FENTRY)
15#define HAVE_FUNCTION_GRAPH_FP_TEST
395a59d0
AS
16#endif
17
9be12f9b
DM
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
b6abce1f
SR
29unsigned long prepare_ftrace_return(unsigned long parent,
30 unsigned long self_addr,
31 unsigned long frame_pointer);
32
395a59d0 33#endif /* _ASM_SPARC64_FTRACE */