diff --git a/images/benchmarks/syscallbench/syscallbench.c b/images/benchmarks/syscallbench/syscallbench.c index 11912916a..fed56987a 100644 --- a/images/benchmarks/syscallbench/syscallbench.c +++ b/images/benchmarks/syscallbench/syscallbench.c @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) { {0, 0, 0, 0}}; int option_index = 0; - while ((c = getopt_long(argc, argv, "l:s", long_options, &option_index)) != + while ((c = getopt_long(argc, argv, "l:s:", long_options, &option_index)) != -1) { switch (c) { case 'l': diff --git a/test/benchmarks/base/syscallbench_test.go b/test/benchmarks/base/syscallbench_test.go index 3e9881a76..c5738c8e3 100644 --- a/test/benchmarks/base/syscallbench_test.go +++ b/test/benchmarks/base/syscallbench_test.go @@ -68,7 +68,7 @@ func BenchmarkSyscallbench(b *testing.B) { b.Fatalf("run failed with: %v", err) } b.Run(name, func(b *testing.B) { - cmd := []string{"syscallbench", fmt.Sprintf("--loops=%d --syscall %d", b.N, tc.syscallArg)} + cmd := []string{"syscallbench", fmt.Sprintf("--loops=%d", b.N), fmt.Sprintf("--syscall=%d", tc.syscallArg)} b.ResetTimer() out, err := container.Exec(ctx, dockerutil.ExecOpts{}, cmd...) if err != nil {