public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tracing: Fix initial buffer_size_kb state
@ 2012-05-03 17:40 Vaibhav Nagarnaik
  2012-05-21  9:45 ` [tip:perf/core] " tip-bot for Vaibhav Nagarnaik
  0 siblings, 1 reply; 2+ messages in thread
From: Vaibhav Nagarnaik @ 2012-05-03 17:40 UTC (permalink / raw)
  To: Steven Rostedt, Frederic Weisbecker, Ingo Molnar
  Cc: Laurent Chavey, Justin Teravest, David Sharp, linux-kernel,
	Vaibhav Nagarnaik

Make sure that the state of buffer_size_kb is initialized correctly and
returns actual size of the ring buffer.

Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
---
 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 6d4c2dd..a90386c 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -5087,7 +5087,8 @@ __init static int tracer_alloc_buffers(void)
 		max_tr.data[i] = &per_cpu(max_tr_data, i);
 	}
 
-	set_buffer_entries(&global_trace, ring_buf_size);
+	set_buffer_entries(&global_trace,
+			   ring_buffer_size(global_trace.buffer, 0));
 #ifdef CONFIG_TRACER_MAX_TRACE
 	set_buffer_entries(&max_tr, 1);
 #endif
-- 
1.7.7.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-21  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 17:40 [PATCH] tracing: Fix initial buffer_size_kb state Vaibhav Nagarnaik
2012-05-21  9:45 ` [tip:perf/core] " tip-bot for Vaibhav Nagarnaik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox