Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338993
b: refs/heads/master
c: b382ede
h: refs/heads/master
i:
  338991: 4b65b08
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Oct 31, 2012
1 parent 2f1c8e1 commit d1f9460
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 884bfe89a462fcc85c8abd96171519cf2fe70929
refs/heads/master: b382ede6b5eb8188926b72a9ef42fd2354342a97
7 changes: 7 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1571,6 +1571,9 @@ void trace_printk_init_buffers(void)

pr_info("ftrace: Allocated trace_printk buffers\n");

/* Expand the buffers to set size */
tracing_update_buffers();

buffers_allocated = 1;
}

Expand Down Expand Up @@ -3030,6 +3033,10 @@ static int __tracing_resize_ring_buffer(unsigned long size, int cpu)
*/
ring_buffer_expanded = 1;

/* May be called before buffers are initialized */
if (!global_trace.buffer)
return 0;

ret = ring_buffer_resize(global_trace.buffer, size, cpu);
if (ret < 0)
return ret;
Expand Down

0 comments on commit d1f9460

Please sign in to comment.