text
stringlengths
0
834k
$use_stap = 1;
next;
}
if ($arg =~ /^--stap-opts=(.*)/) {
if (defined $stap_opts) {
die ""ERROR: duplicate --stap-opts options\n"";
}
$stap_opts = $1;
$use_stap = 1;
next;
}
if ($arg eq '--stap-opts') {
if (defined $stap_opts) {
die ""ERROR: duplicate --stap-opts options\n"";
}
$stap_opts = shift @args;
if (!defined $stap_opts) {
die ""option --stap-opts takes an argument but "",
""found none.\n"";
}
$use_stap = 1;
next;
}
if ($arg eq '--gdb') {
$use_gdb = 1;
next;
}
if ($arg =~ /^--gdb-opts=(.*)/) {
if (defined $gdb_opts) {
die ""ERROR: duplicate --gdb-opts options\n"";
}
$gdb_opts = $1;
$use_gdb = 1;
next;
}
if ($arg eq '--gdb-opts') {
if (defined $gdb_opts) {
die ""ERROR: duplicate --gdb-opts options\n"";
}
$gdb_opts = shift @args;
if (!defined $gdb_opts) {
die ""option --gdb-opts takes an argument but "",
""found none.\n"";
}
$use_gdb = 1;
next;
}
if ($arg eq '--valgrind') {
$use_valgrind = 1;
next;
}
if ($arg eq '--no-stream') {
$no_stream = 1;
next;
}
if ($arg eq '--rr') {
$use_rr = 1;
next;
}
if ($arg =~ /^(?:--help|-h)$/) {
usage(0);
last;
}
if ($arg =~ /^-[vV]$/) {
$version = 1;
next;
}
warn ""ERROR: unknown option $arg\n\n"";
usage(1);
} else {
last if !$found_opts;
unshift @args, $arg;
last;
}
}
if ($found_opts) {
@ARGV = @args;
}
if (defined $conns_num) {
if ($conns_num !~ /^\d+$/) {