aboutsummaryrefslogtreecommitdiffstats
path: root/vm/adb/adb.go
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/adb/adb.go
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/adb/adb.go')
-rw-r--r--vm/adb/adb.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm/adb/adb.go b/vm/adb/adb.go
index 75e4a1f7c..63031c822 100644
--- a/vm/adb/adb.go
+++ b/vm/adb/adb.go
@@ -20,6 +20,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"
)
@@ -404,6 +405,6 @@ func (inst *instance) Run(timeout time.Duration, stop <-chan bool, command strin
return vmimpl.Multiplex(adb, merger, tty, timeout, stop, inst.closed, inst.debug)
}
-func (inst *instance) Diagnose() ([]byte, bool) {
+func (inst *instance) Diagnose(rep *report.Report) ([]byte, bool) {
return nil, false
}