Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140760
b: refs/heads/master
c: 37bd824
h: refs/heads/master
v: v3
  • Loading branch information
Ingo Molnar committed Feb 18, 2009
1 parent 6968c5e commit 4172a66
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: 73d3fd96e77745742f3750b7b19ee42204adc210
refs/heads/master: 37bd824a35a60abc73e5fa8816bd5f50c913d69b
6 changes: 5 additions & 1 deletion trunk/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 4172a66

Please sign in to comment.