added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / arch / powerpc / include / asm / ftrace.h
blobe5f2ae8362f7ea8e15fcaca975fefa6e3662010b
1 #ifndef _ASM_POWERPC_FTRACE
2 #define _ASM_POWERPC_FTRACE
4 #ifdef CONFIG_FUNCTION_TRACER
5 #define MCOUNT_ADDR ((long)(_mcount))
6 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
8 #ifndef __ASSEMBLY__
9 extern void _mcount(void);
11 #ifdef CONFIG_DYNAMIC_FTRACE
12 static inline unsigned long ftrace_call_adjust(unsigned long addr)
14 /* reloction of mcount call site is the same as the address */
15 return addr;
18 struct dyn_arch_ftrace {
19 struct module *mod;
21 #endif /* CONFIG_DYNAMIC_FTRACE */
22 #endif /* __ASSEMBLY__ */
24 #endif
26 #endif /* _ASM_POWERPC_FTRACE */