aboutsummaryrefslogtreecommitdiffstats
path: root/vm/vmm
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-11-19 10:35:03 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-11-21 09:22:22 +0100
commita7ae31ed14a28ec2501e4113578ef3cee6020a75 (patch)
tree020af01db93db651225cbbc41227b8a71d7b2100 /vm/vmm
parent0dbb024b2d566651cf10f3b5fbb531eb6de37b5a (diff)
vm: pass Report to Diagnose
The way to diagnose generally depends on the issue. E.g. do we need register dump to debug this issue? Do we need host dmesg dump? Some diagnosis may be directly specific to a particular problem (e.g. dumping a particular debugfs/procfs file). Pass Report to Diagnose to make this possible.
Diffstat (limited to 'vm/vmm')
-rw-r--r--vm/vmm/vmm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/vmm/vmm.go b/vm/vmm/vmm.go
index 62908de1f..9872e4d50 100644
--- a/vm/vmm/vmm.go
+++ b/vm/vmm/vmm.go
@@ -17,6 +17,7 @@ import (
"github.com/google/syzkaller/pkg/config"
"github.com/google/syzkaller/pkg/log"
"github.com/google/syzkaller/pkg/osutil"
+ "github.com/google/syzkaller/pkg/report"
"github.com/google/syzkaller/vm/vmimpl"
)
@@ -310,7 +311,7 @@ func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command strin
return inst.merger.Output, errc, nil
}
-func (inst *instance) Diagnose() ([]byte, bool) {
+func (inst *instance) Diagnose(rep *report.Report) ([]byte, bool) {
return vmimpl.DiagnoseOpenBSD(inst.consolew)
}