summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-03-22 20:36:13 +0100
committerMark Wielaard <mjw@redhat.com>2009-03-22 20:36:13 +0100
commitc7ce415ebf181e818166644e572dfe04dbd7b6f6 (patch)
treec182d43d83acf39ac78b3e614c9d272812ceb386 /main.cxx
parentc9a05b1c5a3219dcc6b9f4060b98e76a67f5795b (diff)
parent1fa23e70a939c20664d7ae6ee5ef66b51835e0ee (diff)
downloadsystemtap-steved-c7ce415ebf181e818166644e572dfe04dbd7b6f6.tar.gz
systemtap-steved-c7ce415ebf181e818166644e572dfe04dbd7b6f6.tar.xz
systemtap-steved-c7ce415ebf181e818166644e572dfe04dbd7b6f6.zip
Merge branch 'master' into pr6866
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/main.cxx b/main.cxx
index 890f65bc..cdcae41a 100644
--- a/main.cxx
+++ b/main.cxx
@@ -108,10 +108,14 @@ usage (systemtap_session& s, int exitcode)
<< " " << s.kernel_build_tree << endl
<< " -m MODULE set probe module name, instead of " << endl
<< " " << s.module_name << endl
- << " -o FILE send script output to file, instead of stdout" << endl
+ << " -o FILE send script output to file, instead of stdout. This supports" << endl
+ << " a subset of strftime(3) (%%,%C,%Y,%y,%m,%d,%e,%F,%H,%I,%j,%k," << endl
+ << " %l,%M,%S,%R,%T,%u,%w) for FILE." << endl
<< " -c CMD start the probes, run CMD, and exit when it finishes" << endl
<< " -x PID sets target() to PID" << endl
- << " -F load module and start probes, then detach" << endl
+ << " -F run as on-file flight recorder with -o." << endl
+ << " run as on-memory flight recorder without -o." << endl
+ << " -S size[,n] set maximum of the size and the number of files." << endl
<< " -d OBJECT add unwind/symbol data for OBJECT file";
if (s.unwindsym_modules.size() == 0)
clog << endl;
@@ -444,7 +448,7 @@ main (int argc, char * const argv [])
{ "vp", 1, &long_opt, LONG_OPT_VERBOSE_PASS },
{ NULL, 0, NULL, 0 }
};
- int grc = getopt_long (argc, argv, "hVMvtp:I:e:o:R:r:m:kgPc:x:D:bs:uqwl:d:L:F",
+ int grc = getopt_long (argc, argv, "hVMvtp:I:e:o:R:r:m:kgPc:x:D:bs:uqwl:d:L:FS:",
long_options, NULL);
if (grc < 0)
break;
@@ -628,6 +632,10 @@ main (int argc, char * const argv [])
s.macros.push_back (string (optarg));
break;
+ case 'S':
+ s.size_option = string (optarg);
+ break;
+
case 'q':
s.tapset_compile_coverage = true;
break;