Skip to content

Commit

Permalink
Merge branches 'tracing/ftrace' and 'tracing/urgent' into tracing/core
Browse files Browse the repository at this point in the history
  • Loading branch information
Ingo Molnar committed Feb 18, 2009
2 parents 73d3fd9 + 5b058bc commit 37bd824
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2562,7 +2562,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 @@ -2571,6 +2571,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 37bd824

Please sign in to comment.