aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r--include/linux/ftrace.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 9d224c43e634..915f4723fc8b 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -404,6 +404,30 @@ struct ftrace_graph_ret {
404#ifdef CONFIG_FUNCTION_GRAPH_TRACER 404#ifdef CONFIG_FUNCTION_GRAPH_TRACER
405 405
406/* 406/*
407 * Stack of return addresses for functions
408 * of a thread.
409 * Used in struct thread_info
410 */
411struct ftrace_ret_stack {
412 unsigned long ret;
413 unsigned long func;
414 unsigned long long calltime;
415};
416
417/*
418 * Primary handler of a function return.
419 * It relays on ftrace_return_to_handler.
420 * Defined in entry_32/64.S
421 */
422extern void return_to_handler(void);
423
424extern int
425ftrace_push_return_trace(unsigned long ret, unsigned long long time,
426 unsigned long func, int *depth);
427extern void
428ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret);
429
430/*
407 * Sometimes we don't want to trace a function with the function 431 * Sometimes we don't want to trace a function with the function
408 * graph tracer but we want them to keep traced by the usual function 432 * graph tracer but we want them to keep traced by the usual function
409 * tracer if the function graph tracer is not configured. 433 * tracer if the function graph tracer is not configured.