diff options
author | Jiri Olsa <jolsa@redhat.com> | 2010-04-02 13:01:22 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-04-27 12:36:53 -0400 |
commit | 62b915f1060996a8e1f69be50e3b8e9e43b710cb (patch) | |
tree | 26741f065b30b67022d680c3bc2afbda319638e1 /include/linux/ftrace.h | |
parent | d7a8d9e907cc294ec7a4a7046d1886375fbcc82e (diff) |
tracing: Add graph output support for irqsoff tracer
Add function graph output to irqsoff tracer.
The graph output is enabled by setting new 'display-graph' trace option.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
LKML-Reference: <1270227683-14631-4-git-send-email-jolsa@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index ea5b1aae0e8b..8415a522f430 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -352,6 +352,10 @@ struct ftrace_graph_ret { | |||
352 | int depth; | 352 | int depth; |
353 | }; | 353 | }; |
354 | 354 | ||
355 | /* Type of the callback handlers for tracing function graph*/ | ||
356 | typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *); /* return */ | ||
357 | typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */ | ||
358 | |||
355 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 359 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
356 | 360 | ||
357 | /* for init task */ | 361 | /* for init task */ |
@@ -400,10 +404,6 @@ extern char __irqentry_text_end[]; | |||
400 | 404 | ||
401 | #define FTRACE_RETFUNC_DEPTH 50 | 405 | #define FTRACE_RETFUNC_DEPTH 50 |
402 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 | 406 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 |
403 | /* Type of the callback handlers for tracing function graph*/ | ||
404 | typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *); /* return */ | ||
405 | typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */ | ||
406 | |||
407 | extern int register_ftrace_graph(trace_func_graph_ret_t retfunc, | 407 | extern int register_ftrace_graph(trace_func_graph_ret_t retfunc, |
408 | trace_func_graph_ent_t entryfunc); | 408 | trace_func_graph_ent_t entryfunc); |
409 | 409 | ||
@@ -441,6 +441,13 @@ static inline void unpause_graph_tracing(void) | |||
441 | static inline void ftrace_graph_init_task(struct task_struct *t) { } | 441 | static inline void ftrace_graph_init_task(struct task_struct *t) { } |
442 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } | 442 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } |
443 | 443 | ||
444 | static inline int register_ftrace_graph(trace_func_graph_ret_t retfunc, | ||
445 | trace_func_graph_ent_t entryfunc) | ||
446 | { | ||
447 | return -1; | ||
448 | } | ||
449 | static inline void unregister_ftrace_graph(void) { } | ||
450 | |||
444 | static inline int task_curr_ret_stack(struct task_struct *tsk) | 451 | static inline int task_curr_ret_stack(struct task_struct *tsk) |
445 | { | 452 | { |
446 | return -1; | 453 | return -1; |