diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2016-08-30 15:19:28 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2016-08-30 15:19:28 +0200 |
| commit | 14dfa4f109c48eccec25e4299f3357c09d7399a7 (patch) | |
| tree | 48a093429ef2bfdae5babbaae9fefe5eaaf28468 /tools/syz-repro | |
| parent | bc9b349bd77c6ccc224a8e7cf72e76595bfc0342 (diff) | |
report: add a new package for report parsing and processing
Move vm.FindCrash to the new package.
Diffstat (limited to 'tools/syz-repro')
| -rw-r--r-- | tools/syz-repro/repro.go | 5 |
1 files changed, 3 insertions, 2 deletions
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 } |
