diff options
author | Helge Deller <deller@gmx.de> | 2009-02-09 00:43:36 +0100 |
---|---|---|
committer | Kyle McMartin <kyle@mcmartin.ca> | 2009-03-31 02:51:34 +0000 |
commit | d75f054a2cf0614ff63d534ff21ca8eaab41e713 (patch) | |
tree | e1fbea035711abf72099ebd01918f5ba3c3cf9ae /arch/parisc/include/asm/ftrace.h | |
parent | 803094f480aa5b7dd5187a17e6e60ff24721c212 (diff) |
parisc: add ftrace (function and graph tracer) functionality
This patch adds the ftrace debugging functionality to the parisc kernel.
It will currently only work with 64bit kernels, because the gcc options -pg
and -ffunction-sections can't be enabled at the same time and -ffunction-sections
is still needed to be able to link 32bit kernels.
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'arch/parisc/include/asm/ftrace.h')
-rw-r--r-- | arch/parisc/include/asm/ftrace.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/ftrace.h b/arch/parisc/include/asm/ftrace.h new file mode 100644 index 00000000000..2fa05dd6aee --- /dev/null +++ b/arch/parisc/include/asm/ftrace.h @@ -0,0 +1,25 @@ +#ifndef _ASM_PARISC_FTRACE_H +#define _ASM_PARISC_FTRACE_H + +#ifndef __ASSEMBLY__ +extern void mcount(void); + +/* + * Stack of return addresses for functions of a thread. + * Used in struct thread_info + */ +struct ftrace_ret_stack { + unsigned long ret; + unsigned long func; + unsigned long long calltime; +}; + +/* + * Primary handler of a function return. + * It relays on ftrace_return_to_handler. + * Defined in entry.S + */ +extern void return_to_handler(void); +#endif /* __ASSEMBLY__ */ + +#endif /* _ASM_PARISC_FTRACE_H */ |