trace: Add a new readonly entry to report total buffer size
commitf81ab074c30234b07c8309c542cafd07bed721f7
authorVaibhav Nagarnaik <vnagarnaik@google.com>
Tue, 16 Aug 2011 21:46:15 +0000 (16 14:46 -0700)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 30 Aug 2011 16:27:44 +0000 (30 12:27 -0400)
tree58ec049e4f63d0f8a0b696195cf77da2b6d04b01
parent86b6ef21b80ac6565d172cdab4384404de007eea
trace: Add a new readonly entry to report total buffer size

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