diff options
| author | Mara Mihali <maramihali@google.com> | 2021-07-06 11:36:45 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-07-06 15:47:33 +0200 |
| commit | 1729cf6917b3e2fe4a22101a05e833f717bca8ce (patch) | |
| tree | 2f2c835115a75eec528a9cd39e33e9e9396f486e /pkg/instance/instance.go | |
| parent | 22ff12bdbb3509fbf00cd979af4629b50aaff7a3 (diff) | |
pkg/instance: added threaded and collide flags
These can be used to disable threaded execution and collision mode for program's system calls.
Diffstat (limited to 'pkg/instance/instance.go')
| -rw-r--r-- | pkg/instance/instance.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 19c71c067..c65d97cce 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -500,6 +500,8 @@ var MakeBin = func() string { return "make" }() -func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int) string { - return fmt.Sprintf("%s -addr=%s -os=%s -arch=%s -pool=%v -vm=%v", prog, fwdAddr, os, arch, poolIdx, vmIdx) +func RunnerCmd(prog, fwdAddr, os, arch string, poolIdx, vmIdx int, collide, threaded bool) string { + return fmt.Sprintf("%s -addr=%s -os=%s -arch=%s -pool=%d -vm=%d "+ + "-collide=%t -threaded=%t", prog, fwdAddr, os, arch, poolIdx, vmIdx, + collide, threaded) } |
