diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2008-11-25 15:07:04 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-25 19:59:45 -0500 |
commit | fb52607afcd0629776f1dc9e657647ceae81dd50 (patch) | |
tree | 7bf43b41ff8510d3098c089913cce56a9049f0fd /include | |
parent | 509dceef6470442d8c7b8a43ec34125205840b3c (diff) |
tracing/function-return-tracer: change the name into function-graph-tracer
Impact: cleanup
This patch changes the name of the "return function tracer" into
function-graph-tracer which is a more suitable name for a tracing
which makes one able to retrieve the ordered call stack during
the code flow.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ftrace.h | 24 | ||||
-rw-r--r-- | include/linux/ftrace_irq.h | 2 | ||||
-rw-r--r-- | include/linux/sched.h | 2 |
3 files changed, 14 insertions, 14 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 7854d87b97b2..b4ac734ad8d6 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -115,8 +115,8 @@ extern int ftrace_update_ftrace_func(ftrace_func_t func); | |||
115 | extern void ftrace_caller(void); | 115 | extern void ftrace_caller(void); |
116 | extern void ftrace_call(void); | 116 | extern void ftrace_call(void); |
117 | extern void mcount_call(void); | 117 | extern void mcount_call(void); |
118 | #ifdef CONFIG_FUNCTION_RET_TRACER | 118 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
119 | extern void ftrace_return_caller(void); | 119 | extern void ftrace_graph_caller(void); |
120 | #endif | 120 | #endif |
121 | 121 | ||
122 | /** | 122 | /** |
@@ -315,7 +315,7 @@ ftrace_init_module(struct module *mod, | |||
315 | /* | 315 | /* |
316 | * Structure that defines a return function trace. | 316 | * Structure that defines a return function trace. |
317 | */ | 317 | */ |
318 | struct ftrace_retfunc { | 318 | struct ftrace_graph_ret { |
319 | unsigned long ret; /* Return address */ | 319 | unsigned long ret; /* Return address */ |
320 | unsigned long func; /* Current function */ | 320 | unsigned long func; /* Current function */ |
321 | unsigned long long calltime; | 321 | unsigned long long calltime; |
@@ -324,22 +324,22 @@ struct ftrace_retfunc { | |||
324 | unsigned long overrun; | 324 | unsigned long overrun; |
325 | }; | 325 | }; |
326 | 326 | ||
327 | #ifdef CONFIG_FUNCTION_RET_TRACER | 327 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
328 | #define FTRACE_RETFUNC_DEPTH 50 | 328 | #define FTRACE_RETFUNC_DEPTH 50 |
329 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 | 329 | #define FTRACE_RETSTACK_ALLOC_SIZE 32 |
330 | /* Type of a callback handler of tracing return function */ | 330 | /* Type of a callback handler of tracing return function */ |
331 | typedef void (*trace_function_return_t)(struct ftrace_retfunc *); | 331 | typedef void (*trace_function_graph_t)(struct ftrace_graph_ret *); |
332 | 332 | ||
333 | extern int register_ftrace_return(trace_function_return_t func); | 333 | extern int register_ftrace_graph(trace_function_graph_t func); |
334 | /* The current handler in use */ | 334 | /* The current handler in use */ |
335 | extern trace_function_return_t ftrace_function_return; | 335 | extern trace_function_graph_t ftrace_graph_function; |
336 | extern void unregister_ftrace_return(void); | 336 | extern void unregister_ftrace_graph(void); |
337 | 337 | ||
338 | extern void ftrace_retfunc_init_task(struct task_struct *t); | 338 | extern void ftrace_graph_init_task(struct task_struct *t); |
339 | extern void ftrace_retfunc_exit_task(struct task_struct *t); | 339 | extern void ftrace_graph_exit_task(struct task_struct *t); |
340 | #else | 340 | #else |
341 | static inline void ftrace_retfunc_init_task(struct task_struct *t) { } | 341 | static inline void ftrace_graph_init_task(struct task_struct *t) { } |
342 | static inline void ftrace_retfunc_exit_task(struct task_struct *t) { } | 342 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } |
343 | #endif | 343 | #endif |
344 | 344 | ||
345 | #endif /* _LINUX_FTRACE_H */ | 345 | #endif /* _LINUX_FTRACE_H */ |
diff --git a/include/linux/ftrace_irq.h b/include/linux/ftrace_irq.h index 0b4df55d7a74..366a054d0b05 100644 --- a/include/linux/ftrace_irq.h +++ b/include/linux/ftrace_irq.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define _LINUX_FTRACE_IRQ_H | 2 | #define _LINUX_FTRACE_IRQ_H |
3 | 3 | ||
4 | 4 | ||
5 | #if defined(CONFIG_DYNAMIC_FTRACE) || defined(CONFIG_FUNCTION_RET_TRACER) | 5 | #if defined(CONFIG_DYNAMIC_FTRACE) || defined(CONFIG_FUNCTION_GRAPH_TRACER) |
6 | extern void ftrace_nmi_enter(void); | 6 | extern void ftrace_nmi_enter(void); |
7 | extern void ftrace_nmi_exit(void); | 7 | extern void ftrace_nmi_exit(void); |
8 | #else | 8 | #else |
diff --git a/include/linux/sched.h b/include/linux/sched.h index d02a0ca70ee9..7ad48f2a2758 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1365,7 +1365,7 @@ struct task_struct { | |||
1365 | unsigned long default_timer_slack_ns; | 1365 | unsigned long default_timer_slack_ns; |
1366 | 1366 | ||
1367 | struct list_head *scm_work_list; | 1367 | struct list_head *scm_work_list; |
1368 | #ifdef CONFIG_FUNCTION_RET_TRACER | 1368 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
1369 | /* Index of current stored adress in ret_stack */ | 1369 | /* Index of current stored adress in ret_stack */ |
1370 | int curr_ret_stack; | 1370 | int curr_ret_stack; |
1371 | /* Stack of return addresses for return function tracing */ | 1371 | /* Stack of return addresses for return function tracing */ |