Abhishek Sagar | 395a59d | 2008-06-21 23:47:27 +0530 | [diff] [blame] | 1 | #ifndef _ASM_SPARC64_FTRACE |
| 2 | #define _ASM_SPARC64_FTRACE |
| 3 | |
Ingo Molnar | 760378e | 2008-07-01 17:35:06 +0200 | [diff] [blame] | 4 | #ifdef CONFIG_MCOUNT |
Abhishek Sagar | 395a59d | 2008-06-21 23:47:27 +0530 | [diff] [blame] | 5 | #define MCOUNT_ADDR ((long)(_mcount)) |
| 6 | #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ |
| 7 | |
| 8 | #ifndef __ASSEMBLY__ |
| 9 | extern void _mcount(void); |
| 10 | #endif |
| 11 | |
| 12 | #endif |
| 13 | |
David S. Miller | 9be12f9 | 2009-06-13 01:03:24 -0700 | [diff] [blame] | 14 | #ifdef CONFIG_DYNAMIC_FTRACE |
| 15 | /* reloction of mcount call site is the same as the address */ |
| 16 | static inline unsigned long ftrace_call_adjust(unsigned long addr) |
| 17 | { |
| 18 | return addr; |
| 19 | } |
| 20 | |
| 21 | struct dyn_arch_ftrace { |
| 22 | }; |
| 23 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
| 24 | |
Abhishek Sagar | 395a59d | 2008-06-21 23:47:27 +0530 | [diff] [blame] | 25 | #endif /* _ASM_SPARC64_FTRACE */ |