diff options
| author | Jukka Kaartinen <jukka.kaartinen@unikie.com> | 2020-06-16 13:01:03 +0300 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-06-16 12:43:23 +0200 |
| commit | 4ea9d9646ef58c4c87edc7b89f3ddb56fee392cf (patch) | |
| tree | 6e51c3607b6d73ce93d7eeb342dcb6e24af280ee /tools | |
| parent | baca26118733e3a3e27a58eb159ee93479e49928 (diff) | |
tools/syz-crush: Add debug option
Signed-off-by: Jukka Kaartinen <jukka.kaartinen@unikie.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-crush/crush.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/syz-crush/crush.go b/tools/syz-crush/crush.go index 8caa1051a..164e46da6 100644 --- a/tools/syz-crush/crush.go +++ b/tools/syz-crush/crush.go @@ -30,6 +30,7 @@ import ( var ( flagConfig = flag.String("config", "", "manager configuration file") + flagDebug = flag.Bool("debug", false, "dump all VM output to console") flagRestartTime = flag.Duration("restart_time", time.Hour, "how long to run the test") flagInfinite = flag.Bool("infinite", true, "by default test is run for ever, -infinite=false to stop on crash") ) @@ -64,7 +65,7 @@ func main() { log.Fatalf("%v", err) } - vmPool, err := vm.Create(cfg, false) + vmPool, err := vm.Create(cfg, *flagDebug) if err != nil { log.Fatalf("%v", err) } |
