aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-04-07 08:41:14 -0400
committerIngo Molnar <mingo@elte.hu>2009-04-07 08:41:17 -0400
commit86665c75da41889f92b774f31ea5a9a436f392a8 (patch)
tree94b003ab677a64b7d0a6dcca1f636bbbc2a187c9 /include
parent93776a8ec746cf9d32c36e5a5b23d28d8be28826 (diff)
parent1bbe2a83ab68e5cf8c66c372c7cb3b51910c2cfe (diff)
Merge branch 'tracing/urgent' into tracing/ftrace
Diffstat (limited to 'include')
-rw-r--r--include/linux/ftrace.h8
-rw-r--r--include/linux/init_task.h2
2 files changed, 8 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(&current->tracing_graph_pause); 433 atomic_dec(&current->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
437static inline void ftrace_graph_init_task(struct task_struct *t) { } 441static inline void ftrace_graph_init_task(struct task_struct *t) { }
438static inline void ftrace_graph_exit_task(struct task_struct *t) { } 442static 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
445static inline void pause_graph_tracing(void) { } 449static inline void pause_graph_tracing(void) { }
446static inline void unpause_graph_tracing(void) { } 450static 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>
diff --git a/include/linux/init_task.h b/include/linux/init_task.h
index af1de95e711e..dcfb93337e9a 100644
--- a/include/linux/init_task.h
+++ b/include/linux/init_task.h
@@ -5,6 +5,7 @@
5#include <linux/irqflags.h> 5#include <linux/irqflags.h>
6#include <linux/utsname.h> 6#include <linux/utsname.h>
7#include <linux/lockdep.h> 7#include <linux/lockdep.h>
8#include <linux/ftrace.h>
8#include <linux/ipc.h> 9#include <linux/ipc.h>
9#include <linux/pid_namespace.h> 10#include <linux/pid_namespace.h>
10#include <linux/user_namespace.h> 11#include <linux/user_namespace.h>
@@ -185,6 +186,7 @@ extern struct cred init_cred;
185 INIT_IDS \ 186 INIT_IDS \
186 INIT_TRACE_IRQFLAGS \ 187 INIT_TRACE_IRQFLAGS \
187 INIT_LOCKDEP \ 188 INIT_LOCKDEP \
189 INIT_FTRACE_GRAPH \
188} 190}
189 191
190 192