Steven Rostedt | ccbfac2 | 2008-05-22 14:31:07 -0400 | [diff] [blame] | 1 | #ifndef _ASM_POWERPC_FTRACE |
| 2 | #define _ASM_POWERPC_FTRACE |
| 3 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 4 | #ifdef CONFIG_FUNCTION_TRACER |
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__ |
Steven Rostedt | ccbfac2 | 2008-05-22 14:31:07 -0400 | [diff] [blame] | 9 | extern void _mcount(void); |
Steven Rostedt | 8fd6e5a | 2008-11-14 16:21:19 -0800 | [diff] [blame] | 10 | |
| 11 | #ifdef CONFIG_DYNAMIC_FTRACE |
| 12 | static inline unsigned long ftrace_call_adjust(unsigned long addr) |
| 13 | { |
| 14 | /* reloction of mcount call site is the same as the address */ |
| 15 | return addr; |
| 16 | } |
| 17 | |
| 18 | struct dyn_arch_ftrace { |
Steven Rostedt | f48cb8b | 2008-11-14 20:47:03 -0800 | [diff] [blame^] | 19 | struct module *mod; |
Steven Rostedt | 8fd6e5a | 2008-11-14 16:21:19 -0800 | [diff] [blame] | 20 | }; |
| 21 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
| 22 | #endif /* __ASSEMBLY__ */ |
Steven Rostedt | ccbfac2 | 2008-05-22 14:31:07 -0400 | [diff] [blame] | 23 | |
| 24 | #endif |
Abhishek Sagar | 395a59d | 2008-06-21 23:47:27 +0530 | [diff] [blame] | 25 | |
| 26 | #endif /* _ASM_POWERPC_FTRACE */ |