From 14dfa4f109c48eccec25e4299f3357c09d7399a7 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 30 Aug 2016 15:19:28 +0200 Subject: report: add a new package for report parsing and processing Move vm.FindCrash to the new package. --- tools/syz-repro/repro.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/syz-repro/repro.go b/tools/syz-repro/repro.go index 1e616c986..270533631 100644 --- a/tools/syz-repro/repro.go +++ b/tools/syz-repro/repro.go @@ -19,6 +19,7 @@ import ( "github.com/google/syzkaller/csource" "github.com/google/syzkaller/fileutil" "github.com/google/syzkaller/prog" + "github.com/google/syzkaller/report" "github.com/google/syzkaller/vm" _ "github.com/google/syzkaller/vm/adb" _ "github.com/google/syzkaller/vm/kvm" @@ -64,7 +65,7 @@ func main() { entries := prog.ParseLog(data) log.Printf("parsed %v programs", len(entries)) - crashDesc, crashStart, _, found := vm.FindCrash(data) + crashDesc, crashStart, _, found := report.FindCrash(data) if !found { log.Fatalf("can't find crash message in the log") } @@ -275,7 +276,7 @@ func testImpl(inst vm.Instance, command string, timeout time.Duration) (res bool select { case out := <-outc: output = append(output, out...) - if desc, _, _, found := vm.FindCrash(output); found { + if desc, _, _, found := report.FindCrash(output); found { log.Printf("program crashed with '%s'", desc) return true } -- cgit mrf-deployment