aboutsummaryrefslogtreecommitdiffstats
path: root/manager
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-11-26 15:56:18 +0100
committerDmitry Vyukov <dvyukov@google.com>2015-11-26 15:56:18 +0100
commitb1e98de8a6c6e31544193f74130911d8b45bbd0a (patch)
tree9217e3341cc56ccb5e7d59b28e20397a1a7a6fff /manager
parente1094916aceff77d16aea60891e613715c72818e (diff)
fuzzer: parallel execution mode
Config now have procs parameter that controls number of parallel executor's running in each VM.
Diffstat (limited to 'manager')
-rw-r--r--manager/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/manager/main.go b/manager/main.go
index 8fdf8dada..92a506baa 100644
--- a/manager/main.go
+++ b/manager/main.go
@@ -32,7 +32,8 @@ type Config struct {
Workdir string
Vmlinux string
Type string
- Count int
+ Count int // number of VMs
+ Procs int // number of parallel processes inside of every VM
Port int
Nocover bool
Params map[string]interface{}
@@ -63,6 +64,7 @@ func main() {
Params: params,
EnabledSyscalls: enabledSyscalls,
NoCover: cfg.Nocover,
+ Procs: cfg.Procs,
}
// Add some builtin suppressions.
@@ -125,6 +127,9 @@ func parseConfig() (*Config, map[int]bool) {
if cfg.Count <= 0 || cfg.Count > 1000 {
fatalf("invalid config param count: %v, want (1, 1000]", cfg.Count)
}
+ if cfg.Procs <= 0 {
+ cfg.Procs = 1
+ }
match := func(call *sys.Call, str string) bool {
if str == call.CallName || str == call.Name {