Merge remote-tracking branch 's5p/for-next'
[linux-2.6/next.git] / arch / parisc / include / asm / ftrace.h
blob72c0fafaa039e910999f16b46c96226e991f3724
1 #ifndef _ASM_PARISC_FTRACE_H
2 #define _ASM_PARISC_FTRACE_H
4 #ifndef __ASSEMBLY__
5 extern void mcount(void);
7 /*
8 * Stack of return addresses for functions of a thread.
9 * Used in struct thread_info
11 struct ftrace_ret_stack {
12 unsigned long ret;
13 unsigned long func;
14 unsigned long long calltime;
18 * Primary handler of a function return.
19 * It relays on ftrace_return_to_handler.
20 * Defined in entry.S
22 extern void return_to_handler(void);
25 extern unsigned long return_address(unsigned int);
27 #define HAVE_ARCH_CALLER_ADDR
29 #define CALLER_ADDR0 ((unsigned long)__builtin_return_address(0))
30 #define CALLER_ADDR1 return_address(1)
31 #define CALLER_ADDR2 return_address(2)
32 #define CALLER_ADDR3 return_address(3)
33 #define CALLER_ADDR4 return_address(4)
34 #define CALLER_ADDR5 return_address(5)
35 #define CALLER_ADDR6 return_address(6)
37 #endif /* __ASSEMBLY__ */
39 #endif /* _ASM_PARISC_FTRACE_H */