blob: 17efecc2bf034142f5fb22f6e67c03b7fa01287c [file] [log] [blame]
Steven Rostedtccbfac22008-05-22 14:31:07 -04001#ifndef _ASM_POWERPC_FTRACE
2#define _ASM_POWERPC_FTRACE
3
Steven Rostedt606576c2008-10-06 19:06:12 -04004#ifdef CONFIG_FUNCTION_TRACER
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__
Steven Rostedtccbfac22008-05-22 14:31:07 -04009extern void _mcount(void);
Steven Rostedt8fd6e5a2008-11-14 16:21:19 -080010
11#ifdef CONFIG_DYNAMIC_FTRACE
12static 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
18struct dyn_arch_ftrace {
19 /* nothing yet */
20};
21#endif /* CONFIG_DYNAMIC_FTRACE */
22#endif /* __ASSEMBLY__ */
Steven Rostedtccbfac22008-05-22 14:31:07 -040023
24#endif
Abhishek Sagar395a59d2008-06-21 23:47:27 +053025
26#endif /* _ASM_POWERPC_FTRACE */