blob: 9ec94ad116fbdded41d184e4b11f3adb8d0544f7 [file] [log] [blame]
Abhishek Sagar395a59d2008-06-21 23:47:27 +05301#ifndef _ASM_SPARC64_FTRACE
2#define _ASM_SPARC64_FTRACE
3
Ingo Molnar760378e2008-07-01 17:35:06 +02004#ifdef CONFIG_MCOUNT
Abhishek Sagar395a59d2008-06-21 23:47:27 +05305#define MCOUNT_ADDR ((long)(_mcount))
6#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
7
8#ifndef __ASSEMBLY__
Sam Ravnborgf05a6862014-05-16 23:25:50 +02009void _mcount(void);
Abhishek Sagar395a59d2008-06-21 23:47:27 +053010#endif
11
12#endif
13
David S. Miller9be12f92009-06-13 01:03:24 -070014#ifdef CONFIG_DYNAMIC_FTRACE
15/* reloction of mcount call site is the same as the address */
16static inline unsigned long ftrace_call_adjust(unsigned long addr)
17{
18 return addr;
19}
20
21struct dyn_arch_ftrace {
22};
23#endif /* CONFIG_DYNAMIC_FTRACE */
24
Sam Ravnborgb6abce12014-05-16 23:26:11 +020025unsigned long prepare_ftrace_return(unsigned long parent,
26 unsigned long self_addr,
27 unsigned long frame_pointer);
28
Abhishek Sagar395a59d2008-06-21 23:47:27 +053029#endif /* _ASM_SPARC64_FTRACE */