Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140768
b: refs/heads/master
c: ac07bca
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Feb 18, 2009
1 parent e52a72a commit 554b15e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 35ebf1caa4854ad5ba25f3a72967acc064147994
refs/heads/master: ac07bcaa8259841905ead3f8cd60b1923ca6c0e5
6 changes: 5 additions & 1 deletion trunk/kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2564,7 +2564,7 @@ static int alloc_retstack_tasklist(struct ftrace_ret_stack **ret_stack_list)
static int start_graph_tracing(void)
{
struct ftrace_ret_stack **ret_stack_list;
int ret;
int ret, cpu;

ret_stack_list = kmalloc(FTRACE_RETSTACK_ALLOC_SIZE *
sizeof(struct ftrace_ret_stack *),
Expand All @@ -2573,6 +2573,10 @@ static int start_graph_tracing(void)
if (!ret_stack_list)
return -ENOMEM;

/* The cpu_boot init_task->ret_stack will never be freed */
for_each_online_cpu(cpu)
ftrace_graph_init_task(idle_task(cpu));

do {
ret = alloc_retstack_tasklist(ret_stack_list);
} while (ret == -EAGAIN);
Expand Down

0 comments on commit 554b15e

Please sign in to comment.