aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2013-07-22 15:32:45 -0400
committerSteven Rostedt <rostedt@goodmis.org>2013-07-22 15:32:45 -0400
commit3ed62b0c016ba90d7e5c1d33d40e894a6b584b05 (patch)
tree70782fd831ac4c478e42642a62cc17cb29bfa25e /Documentation
parentfe4d69ff08af09af62b6021ddba1fa0340756cf7 (diff)
downloadkernel-shark-3ed62b0c016ba90d7e5c1d33d40e894a6b584b05.tar.gz
trace-cmd: Add -m option to record to limit size of data file
As long runs of recording traces can cause the disk to fill up, adding an option that lets the user limit the size of the data file can be really useful. Now with the '-m' option to trace-cmd record, this will limit the max size of the per cpu data files to this number in kilobytes (rounded to pages). Suggested-by: David Sommerseth <davids@redhat.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/trace-cmd-record.1.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/trace-cmd-record.1.txt b/Documentation/trace-cmd-record.1.txt
index b95e1b4f..832a2571 100644
--- a/Documentation/trace-cmd-record.1.txt
+++ b/Documentation/trace-cmd-record.1.txt
@@ -194,6 +194,15 @@ OPTIONS
that buffer. A 'time' buffer instance is created and all timer events
will be enabled for that event.
+*-m* 'size'::
+ The max size in kilobytes that a per cpu buffer should be. Note, due
+ to rounding to page size, the number may not be totally correct.
+ Also, this is performed by switching between two buffers that are half
+ the given size thus the output may not be of the given size even if
+ much more was written.
+
+ Use this to prevent running out of diskspace for long runs.
+
*-k*::
By default, when trace-cmd is finished tracing, it will reset the buffers
and disable all the tracing that it enabled. This option keeps trace-cmd