From 349a68c4b056a06438a1e75e9b8a3a583b06d511 Mon Sep 17 00:00:00 2001 From: Laura Peskin Date: Mon, 16 Sep 2024 17:03:51 -0700 Subject: tools/syz-execprog: pass the VM type to execprog This makes it possible to skip certain machine checks depending on the VM type, as syz-manager already does. --- tools/syz-execprog/execprog.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index 550b3c114..d108f87fa 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -37,6 +37,7 @@ import ( var ( flagOS = flag.String("os", runtime.GOOS, "target os") flagArch = flag.String("arch", runtime.GOARCH, "target arch") + flagType = flag.String("type", "", "target VM type") flagCoverFile = flag.String("coverfile", "", "write coverage to the file") flagRepeat = flag.Int("repeat", 1, "repeat execution that many times (0 for infinite loop)") flagProcs = flag.Int("procs", 2*runtime.NumCPU(), "number of parallel processes to execute programs") @@ -163,6 +164,7 @@ func main() { Config: rpcserver.Config{ Config: vminfo.Config{ Target: target, + VMType: *flagType, Features: features, Syscalls: requestedSyscalls, Debug: *flagDebug, -- cgit mrf-deployment