aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gce
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/gce
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/gce')
-rw-r--r--vm/gce/gce.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/gce/gce.go b/vm/gce/gce.go
index e3f23ccee..b5565aff0 100644
--- a/vm/gce/gce.go
+++ b/vm/gce/gce.go
@@ -28,6 +28,7 @@ import (
"github.com/google/syzkaller/pkg/kd"
"github.com/google/syzkaller/pkg/log"
"github.com/google/syzkaller/pkg/osutil"
+ "github.com/google/syzkaller/pkg/report"
"github.com/google/syzkaller/sys/targets"
"github.com/google/syzkaller/vm/vmimpl"
)
@@ -369,7 +370,7 @@ func waitForConsoleConnect(merger *vmimpl.OutputMerger) error {
}
}
-func (inst *instance) Diagnose() ([]byte, bool) {
+func (inst *instance) Diagnose(rep *report.Report) ([]byte, bool) {
if inst.env.OS == targets.FreeBSD {
return vmimpl.DiagnoseFreeBSD(inst.consolew)
}