diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-09 10:54:03 -0800 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-18 13:43:04 -0500 |
commit | 712406a6bf59ebf4a00358bb59a4a2a1b2953d90 (patch) | |
tree | 5bea439ccacde69ba71c5da8e8e307c2d343aa93 /include/linux/ftrace.h | |
parent | d2f8d7ee1a9b4650b4e43325b321801264f7c37a (diff) | |
download | kernel_samsung_espresso10-712406a6bf59ebf4a00358bb59a4a2a1b2953d90.zip kernel_samsung_espresso10-712406a6bf59ebf4a00358bb59a4a2a1b2953d90.tar.gz kernel_samsung_espresso10-712406a6bf59ebf4a00358bb59a4a2a1b2953d90.tar.bz2 |
tracing/function-graph-tracer: make arch generic push pop functions
There is nothing really arch specific of the push and pop functions
used by the function graph tracer. This patch moves them to generic
code.
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 677432b..a7f8134 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -380,6 +380,30 @@ struct ftrace_graph_ret { #ifdef CONFIG_FUNCTION_GRAPH_TRACER /* + * 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_32/64.S + */ +extern void return_to_handler(void); + +extern int +ftrace_push_return_trace(unsigned long ret, unsigned long long time, + unsigned long func, int *depth); +extern void +ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret); + +/* * Sometimes we don't want to trace a function with the function * graph tracer but we want them to keep traced by the usual function * tracer if the function graph tracer is not configured. |