]> sourceware.org Git - systemtap.git/commitdiff
Add another option for the lazy benchmarker
authorJosh Stone <jistone@redhat.com>
Thu, 24 Oct 2013 07:06:13 +0000 (00:06 -0700)
committerJosh Stone <jistone@redhat.com>
Thu, 24 Oct 2013 07:06:13 +0000 (00:06 -0700)
cmdline.cxx
cmdline.h
session.cxx

index 7392dea8978a168e5291e69c933c89391b1babb2..6107d60eb3de61f90671a5c401563a9bb1e6e44e 100644 (file)
@@ -54,6 +54,7 @@ struct option stap_long_options[] = {
   { "suppress-time-limits", 0, NULL, LONG_OPT_SUPPRESS_TIME_LIMITS },
   { "runtime", 1, NULL, LONG_OPT_RUNTIME },
   { "dyninst", 0, NULL, LONG_OPT_RUNTIME_DYNINST },
+  { "benchmark-sdt", 0, NULL, LONG_OPT_BENCHMARK_SDT },
   { "benchmark-sdt-loops", 1, NULL, LONG_OPT_BENCHMARK_SDT_LOOPS },
   { "benchmark-sdt-threads", 1, NULL, LONG_OPT_BENCHMARK_SDT_THREADS },
   { "color", 2, NULL, LONG_OPT_COLOR_ERRS },
index e729ac33b292687ab7f030bc7f58e88458cde8de..f00b70eabd412617b690bd46685536b7ca05c851 100644 (file)
--- a/cmdline.h
+++ b/cmdline.h
@@ -53,6 +53,7 @@ enum {
   LONG_OPT_SUPPRESS_TIME_LIMITS,
   LONG_OPT_RUNTIME,
   LONG_OPT_RUNTIME_DYNINST,
+  LONG_OPT_BENCHMARK_SDT,
   LONG_OPT_BENCHMARK_SDT_LOOPS,
   LONG_OPT_BENCHMARK_SDT_THREADS,
   LONG_OPT_COLOR_ERRS,
index 55fc7694a5bd5dd0e134f450dde507a7aca3018f..8f2004a2dd671369aaa27a87a69160cc5c685b31 100644 (file)
@@ -1286,6 +1286,11 @@ systemtap_session::parse_cmdline (int argc, char * const argv [])
             return 1;
           break;
 
+        case LONG_OPT_BENCHMARK_SDT:
+          // XXX This option is secret, not supported, subject to change at our whim
+          benchmark_sdt_threads = sysconf(_SC_NPROCESSORS_ONLN);
+          break;
+
         case LONG_OPT_BENCHMARK_SDT_LOOPS:
           assert(optarg != 0); // optarg can't be NULL (or getopt would choke)
           // XXX This option is secret, not supported, subject to change at our whim
This page took 0.036676 seconds and 5 git commands to generate.