summaryrefslogtreecommitdiffstats
path: root/main.cxx
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2007-10-05 22:43:41 -0400
committerFrank Ch. Eigler <fche@elastic.org>2007-10-05 22:43:41 -0400
commit9d33454315110680fda3a926465c3002a0521431 (patch)
tree1bf932760ff25506f7fb8c9c2fc118bb249f5113 /main.cxx
parentb3159730ec256436bc47071185c6a3d14324f8d1 (diff)
parenta9e8f7e0533811be2cd7c9a88d9058da8caa1d11 (diff)
downloadsystemtap-steved-9d33454315110680fda3a926465c3002a0521431.tar.gz
systemtap-steved-9d33454315110680fda3a926465c3002a0521431.tar.xz
systemtap-steved-9d33454315110680fda3a926465c3002a0521431.zip
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'main.cxx')
-rw-r--r--main.cxx14
1 files changed, 10 insertions, 4 deletions
diff --git a/main.cxx b/main.cxx
index 09435fad..7d4b8133 100644
--- a/main.cxx
+++ b/main.cxx
@@ -71,6 +71,7 @@ usage (systemtap_session& s, int exitcode)
<< " -V show version" << endl
<< " -k keep temporary directory" << endl
<< " -u unoptimized translation" << (s.unoptimized ? " [set]" : "") << endl
+ << " -w suppress warnings" << (s.suppress_warnings ? " [set]" : "") << endl
<< " -g guru mode" << (s.guru_mode ? " [set]" : "") << endl
<< " -P prologue-searching for function probes"
<< (s.prologue_searching ? " [set]" : "") << endl
@@ -200,10 +201,11 @@ main (int argc, char * const argv [])
s.kernel_release = string (buf.release);
s.architecture = string (buf.machine);
s.verbose = 0;
- s.timing = 0;
+ s.timing = false;
s.guru_mode = false;
s.bulk_mode = false;
s.unoptimized = false;
+ s.suppress_warnings = false;
#ifdef ENABLE_PROLOGUES
s.prologue_searching = true;
@@ -273,8 +275,8 @@ main (int argc, char * const argv [])
while (true)
{
- // NB: also see find_hash(), help(), switch stmt below, stap.1 man page
- int grc = getopt (argc, argv, "hVMvtp:I:e:o:R:r:m:kgPc:x:D:bs:uq");
+ // NB: also see find_hash(), usage(), switch stmt below, stap.1 man page
+ int grc = getopt (argc, argv, "hVMvtp:I:e:o:R:r:m:kgPc:x:D:bs:uqw");
if (grc < 0)
break;
switch (grc)
@@ -292,7 +294,11 @@ main (int argc, char * const argv [])
break;
case 't':
- s.timing ++;
+ s.timing = true;
+ break;
+
+ case 'w':
+ s.suppress_warnings = true;
break;
case 'p':