From fc3afc716488d3003f1e39d74a8bba1ca8db0e13 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 19 Feb 2018 21:08:50 +0100 Subject: 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. --- vm/vm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit mrf-deployment