aboutsummaryrefslogtreecommitdiffstats
path: root/vm/gvisor/gvisor.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-12-21 07:58:27 -0800
committerDmitry Vyukov <dvyukov@google.com>2018-12-21 18:08:49 +0100
commit2fc01104d0081e0178522d3aa59938b7c3e0de57 (patch)
tree8180b0801987ffe7241c4b492740d1d2ed0c7da8 /vm/gvisor/gvisor.go
parent588075e659832f8685d0c9dc9c75c461e023e77f (diff)
vm: allow Diagnose to directly return diagnosis
Rather than writing the diagnosis to the kernel console, Diagnose can now directly return the extra debugging info, which will be appended ot the kernel console log.
Diffstat (limited to 'vm/gvisor/gvisor.go')
-rw-r--r--vm/gvisor/gvisor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm/gvisor/gvisor.go b/vm/gvisor/gvisor.go
index 76a88e352..e1e18b98a 100644
--- a/vm/gvisor/gvisor.go
+++ b/vm/gvisor/gvisor.go
@@ -327,9 +327,9 @@ func (inst *instance) guestProxy() (*os.File, error) {
return guestSock, nil
}
-func (inst *instance) Diagnose() bool {
+func (inst *instance) Diagnose() ([]byte, bool) {
osutil.Run(time.Minute, inst.runscCmd("debug", "-signal=12", inst.name))
- return true
+ return nil, true
}
func init() {