aboutsummaryrefslogtreecommitdiffstats
path: root/vm
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-02-19 21:08:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-02-19 21:48:20 +0100
commitfc3afc716488d3003f1e39d74a8bba1ca8db0e13 (patch)
tree41a2b9e42d064d7ffbe4176887451bebaa275d96 /vm
parentd9222fc03a1fe146fd945796b8f6309d4963e9dc (diff)
vm: keep more context before new output
In pkg/report we add up to 5 lines of kernel output before the report. However, MonitorExecution leaves only up to 128 bytes of preceeding output, so frequently preceeding lines are not included in the report. Increase the context to 512 bytes.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm.go b/vm/vm.go
index c89e01662..389b792c6 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -205,7 +205,7 @@ func MonitorExecution(outc <-chan []byte, errc <-chan error, reporter report.Rep
copy(output, output[len(output)-beforeContext:])
output = output[:beforeContext]
}
- matchPos = len(output) - 128
+ matchPos = len(output) - 512
if matchPos < 0 {
matchPos = 0
}