Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146233
b: refs/heads/master
c: 84047e3
h: refs/heads/master
i:
  146231: 5b2f8f4
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jun 2, 2009
1 parent 835f9e1 commit b696655
Show file tree
Hide file tree
Showing 2 changed files with 5 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: f7e8b616ed1cc6f790b82324bce8a2a60295e5c2
refs/heads/master: 84047e360af0394ac5861d433f26bbcf30f77dd1
6 changes: 4 additions & 2 deletions trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2738,6 +2738,9 @@ void unregister_ftrace_graph(void)
/* Allocate a return stack for newly created task */
void ftrace_graph_init_task(struct task_struct *t)
{
/* Make sure we do not use the parent ret_stack */
t->ret_stack = NULL;

if (atomic_read(&ftrace_graph_active)) {
struct ftrace_ret_stack *ret_stack;

Expand All @@ -2753,8 +2756,7 @@ void ftrace_graph_init_task(struct task_struct *t)
/* make curr_ret_stack visable before we add the ret_stack */
smp_wmb();
t->ret_stack = ret_stack;
} else
t->ret_stack = NULL;
}
}

void ftrace_graph_exit_task(struct task_struct *t)
Expand Down

0 comments on commit b696655

Please sign in to comment.