trace: Add a new readonly entry to report total buffer size
authorVaibhav Nagarnaik <vnagarnaik@google.com>
Tue, 16 Aug 2011 21:46:15 +0000 (14:46 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 30 Aug 2011 16:27:44 +0000 (12:27 -0400)
The current file "buffer_size_kb" reports the size of per-cpu buffer and
not the overall memory allocated which could be misleading. A new file
"buffer_total_size_kb" adds up all the enabled CPU buffer sizes and
reports it. This is only a readonly entry.

Signed-off-by: Vaibhav Nagarnaik <vnagarnaik@google.com>
Cc: Michael Rubin <mrubin@google.com>
Cc: David Sharp <dhsharp@google.com>
Link: http://lkml.kernel.org/r/1313531179-9323-2-git-send-email-vnagarnaik@google.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c

Simple merge