parisc: add ftrace (function and graph tracer) functionality
[linux-2.6/linux-2.6-openrd.git] / arch / parisc / include / asm / ftrace.h
blob2fa05dd6aeeeee2c9ca56c772754b8e2dee30627
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);
23 #endif /* __ASSEMBLY__ */
25 #endif /* _ASM_PARISC_FTRACE_H */