{ "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 },
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,
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