Helge Deller | d75f054 | 2009-02-09 00:43:36 +0100 | [diff] [blame] | 1 | #ifndef _ASM_PARISC_FTRACE_H |
| 2 | #define _ASM_PARISC_FTRACE_H |
| 3 | |
| 4 | #ifndef __ASSEMBLY__ |
| 5 | extern void mcount(void); |
| 6 | |
| 7 | /* |
| 8 | * Stack of return addresses for functions of a thread. |
| 9 | * Used in struct thread_info |
| 10 | */ |
| 11 | struct ftrace_ret_stack { |
| 12 | unsigned long ret; |
| 13 | unsigned long func; |
| 14 | unsigned long long calltime; |
| 15 | }; |
| 16 | |
| 17 | /* |
| 18 | * Primary handler of a function return. |
| 19 | * It relays on ftrace_return_to_handler. |
| 20 | * Defined in entry.S |
| 21 | */ |
| 22 | extern void return_to_handler(void); |
Helge Deller | 11e17809 | 2009-10-25 21:48:36 +0000 | [diff] [blame] | 23 | |
| 24 | |
| 25 | extern unsigned long return_address(unsigned int); |
| 26 | |
AKASHI Takahiro | eed542d | 2014-05-20 20:31:04 +0900 | [diff] [blame] | 27 | #define ftrace_return_address(n) return_address(n) |
Helge Deller | 11e17809 | 2009-10-25 21:48:36 +0000 | [diff] [blame] | 28 | |
Helge Deller | d75f054 | 2009-02-09 00:43:36 +0100 | [diff] [blame] | 29 | #endif /* __ASSEMBLY__ */ |
| 30 | |
| 31 | #endif /* _ASM_PARISC_FTRACE_H */ |