blob: b0f18e9893db5a77cbc45e221a8159e3dc4f2fc5 [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__
9extern void _mcount(void);
10#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
Abhishek Sagar395a59d2008-06-21 23:47:27 +053025#endif /* _ASM_SPARC64_FTRACE */