diff options
| author | Laura Peskin <pesk@google.com> | 2024-09-16 17:03:51 -0700 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-09-24 14:52:23 +0000 |
| commit | 349a68c4b056a06438a1e75e9b8a3a583b06d511 (patch) | |
| tree | 7a095d526b059ff69ccadee7d20a89e1c4110c67 /tools/syz-execprog | |
| parent | 5643e0e933eb9fd69bb78740a8f3967b4d37bc0e (diff) | |
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.
Diffstat (limited to 'tools/syz-execprog')
| -rw-r--r-- | tools/syz-execprog/execprog.go | 2 |
1 files changed, 2 insertions, 0 deletions
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, |
