From b1e98de8a6c6e31544193f74130911d8b45bbd0a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 26 Nov 2015 15:56:18 +0100 Subject: fuzzer: parallel execution mode Config now have procs parameter that controls number of parallel executor's running in each VM. --- vm/qemu/qemu.go | 4 ++-- vm/vm.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'vm') diff --git a/vm/qemu/qemu.go b/vm/qemu/qemu.go index be62c343e..49d19d4c9 100644 --- a/vm/qemu/qemu.go +++ b/vm/qemu/qemu.go @@ -272,8 +272,8 @@ func (inst *Instance) Run() { inst.CreateSSHCommand("echo -n 0 > /proc/sys/debug/exception-trace").Wait(10 * time.Second) // Run the binary. - cmd := inst.CreateSSHCommand(fmt.Sprintf("/syzkaller_fuzzer -name %v -executor /syzkaller_executor -manager %v:%v %v", - inst.name, hostAddr, inst.cfg.ManagerPort, inst.callsFlag)) + cmd := inst.CreateSSHCommand(fmt.Sprintf("/syzkaller_fuzzer -name %v -executor /syzkaller_executor -manager %v:%v -procs %v %v", + inst.name, hostAddr, inst.cfg.ManagerPort, inst.cfg.Procs, inst.callsFlag)) deadline := start.Add(time.Hour) lastOutput := time.Now() diff --git a/vm/vm.go b/vm/vm.go index e6430ec47..bd18bccb1 100644 --- a/vm/vm.go +++ b/vm/vm.go @@ -19,6 +19,7 @@ type Config struct { EnabledSyscalls string Suppressions []*regexp.Regexp NoCover bool + Procs int } type ctorFunc func(cfg *Config, index int) (Instance, error) -- cgit mrf-deployment