diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 08a08bab57a3..a44d4c6ca9a8 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -5112,7 +5112,8 @@ __init static int tracer_alloc_buffers(void) | |||
5112 | max_tr.data[i] = &per_cpu(max_tr_data, i); | 5112 | max_tr.data[i] = &per_cpu(max_tr_data, i); |
5113 | } | 5113 | } |
5114 | 5114 | ||
5115 | set_buffer_entries(&global_trace, ring_buf_size); | 5115 | set_buffer_entries(&global_trace, |
5116 | ring_buffer_size(global_trace.buffer, 0)); | ||
5116 | #ifdef CONFIG_TRACER_MAX_TRACE | 5117 | #ifdef CONFIG_TRACER_MAX_TRACE |
5117 | set_buffer_entries(&max_tr, 1); | 5118 | set_buffer_entries(&max_tr, 1); |
5118 | #endif | 5119 | #endif |