blob: e5f2ae8362f7ea8e15fcaca975fefa6e3662010b [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 {
Steven Rostedtf48cb8b2008-11-14 20:47:03 -080019 struct module *mod;
Steven Rostedt8fd6e5a2008-11-14 16:21:19 -080020};
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 */