added 2.6.29.6 aldebaran kernel
[nao-ulib.git] / kernel / 2.6.29.6-aldebaran-rt / arch / arm / include / asm / ftrace.h
blobf7e8bacd848e201294a0bbd8a82c3bf36a15a1dd
1 #ifndef _ASM_ARM_FTRACE
2 #define _ASM_ARM_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);
10 #endif
12 #endif
14 #ifndef __ASSEMBLY__
15 void *return_address(unsigned int);
17 #define HAVE_ARCH_CALLER_ADDR
18 #define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
19 #define CALLER_ADDR1 ((unsigned long)return_address(1))
20 #define CALLER_ADDR2 ((unsigned long)return_address(2))
21 #define CALLER_ADDR3 ((unsigned long)return_address(3))
22 #define CALLER_ADDR4 ((unsigned long)return_address(4))
23 #define CALLER_ADDR5 ((unsigned long)return_address(5))
24 #define CALLER_ADDR6 ((unsigned long)return_address(6))
26 #endif
28 #endif /* _ASM_ARM_FTRACE */