diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-07 08:41:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-07 08:41:17 -0400 |
commit | 86665c75da41889f92b774f31ea5a9a436f392a8 (patch) | |
tree | 94b003ab677a64b7d0a6dcca1f636bbbc2a187c9 /include/linux/ftrace.h | |
parent | 93776a8ec746cf9d32c36e5a5b23d28d8be28826 (diff) | |
parent | 1bbe2a83ab68e5cf8c66c372c7cb3b51910c2cfe (diff) |
Merge branch 'tracing/urgent' into tracing/ftrace
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 9e0a8d245e55..6aea54d2dd3e 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -356,6 +356,9 @@ struct ftrace_graph_ret { | |||
356 | 356 | ||
357 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 357 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
358 | 358 | ||
359 | /* for init task */ | ||
360 | #define INIT_FTRACE_GRAPH .ret_stack = NULL | ||
361 | |||
359 | /* | 362 | /* |
360 | * Stack of return addresses for functions | 363 | * Stack of return addresses for functions |
361 | * of a thread. | 364 | * of a thread. |
@@ -429,10 +432,11 @@ static inline void unpause_graph_tracing(void) | |||
429 | { | 432 | { |
430 | atomic_dec(¤t->tracing_graph_pause); | 433 | atomic_dec(¤t->tracing_graph_pause); |
431 | } | 434 | } |
432 | #else | 435 | #else /* !CONFIG_FUNCTION_GRAPH_TRACER */ |
433 | 436 | ||
434 | #define __notrace_funcgraph | 437 | #define __notrace_funcgraph |
435 | #define __irq_entry | 438 | #define __irq_entry |
439 | #define INIT_FTRACE_GRAPH | ||
436 | 440 | ||
437 | static inline void ftrace_graph_init_task(struct task_struct *t) { } | 441 | static inline void ftrace_graph_init_task(struct task_struct *t) { } |
438 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } | 442 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } |
@@ -444,7 +448,7 @@ static inline int task_curr_ret_stack(struct task_struct *tsk) | |||
444 | 448 | ||
445 | static inline void pause_graph_tracing(void) { } | 449 | static inline void pause_graph_tracing(void) { } |
446 | static inline void unpause_graph_tracing(void) { } | 450 | static inline void unpause_graph_tracing(void) { } |
447 | #endif | 451 | #endif /* CONFIG_FUNCTION_GRAPH_TRACER */ |
448 | 452 | ||
449 | #ifdef CONFIG_TRACING | 453 | #ifdef CONFIG_TRACING |
450 | #include <linux/sched.h> | 454 | #include <linux/sched.h> |