Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142775
b: refs/heads/master
c: 5ac9f62
h: refs/heads/master
i:
  142773: b7df473
  142771: adde71e
  142767: bf2b500
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Apr 7, 2009
1 parent 71d8e9b commit f406099
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f0c6c03c5fee91c02c696bc9bf4c0d41392abe7
refs/heads/master: 5ac9f62267dc92c7735c642a5942d9e6c1190308
8 changes: 6 additions & 2 deletions trunk/include/linux/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,9 @@ struct ftrace_graph_ret {

#ifdef CONFIG_FUNCTION_GRAPH_TRACER

/* for init task */
#define INIT_FTRACE_GRAPH .ret_stack = NULL

/*
* Stack of return addresses for functions
* of a thread.
Expand Down Expand Up @@ -430,10 +433,11 @@ static inline void unpause_graph_tracing(void)
{
atomic_dec(&current->tracing_graph_pause);
}
#else
#else /* !CONFIG_FUNCTION_GRAPH_TRACER */

#define __notrace_funcgraph
#define __irq_entry
#define INIT_FTRACE_GRAPH

static inline void ftrace_graph_init_task(struct task_struct *t) { }
static inline void ftrace_graph_exit_task(struct task_struct *t) { }
Expand All @@ -445,7 +449,7 @@ static inline int task_curr_ret_stack(struct task_struct *tsk)

static inline void pause_graph_tracing(void) { }
static inline void unpause_graph_tracing(void) { }
#endif
#endif /* CONFIG_FUNCTION_GRAPH_TRACER */

#ifdef CONFIG_TRACING
#include <linux/sched.h>
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/init_task.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <linux/irqflags.h>
#include <linux/utsname.h>
#include <linux/lockdep.h>
#include <linux/ftrace.h>
#include <linux/ipc.h>
#include <linux/pid_namespace.h>
#include <linux/user_namespace.h>
Expand Down Expand Up @@ -184,6 +185,7 @@ extern struct cred init_cred;
INIT_IDS \
INIT_TRACE_IRQFLAGS \
INIT_LOCKDEP \
INIT_FTRACE_GRAPH \
}


Expand Down

0 comments on commit f406099

Please sign in to comment.