From f034b65deaeaffccf8d1053ec2701f941ec6dd18 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 14 Jan 2019 17:41:04 +0100 Subject: pkg/report: add parsing of trusty crashes Update #933 --- pkg/report/linux.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index fe55ebb99..b438461a8 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -85,6 +85,7 @@ func ctorLinux(target *targets.Target, kernelSrc, kernelObj string, ignores []*r regexp.MustCompile(`^net/core/sock.c`), regexp.MustCompile(`^net/core/skbuff.c`), regexp.MustCompile(`^fs/proc/generic.c`), + regexp.MustCompile(`^trusty/`), // Trusty sources are not in linux kernel tree. } // These pattern do _not_ start a new report, i.e. can be in a middle of another report. ctx.reportStartIgnores = []*regexp.Regexp{ @@ -1408,4 +1409,16 @@ var linuxOopses = []*oops{ }, []*regexp.Regexp{}, }, + { + []byte("trusty: panic"), + []oopsFormat{ + { + title: compile("trusty: panic.* ASSERT FAILED"), + report: compile("trusty: panic \\(.*?\\):(?: DEBUG)? ASSERT FAILED at \\(.*?\\): (.*)"), + fmt: "trusty: ASSERT FAILED: %[1]v", + noStackTrace: true, + }, + }, + []*regexp.Regexp{}, + }, } -- cgit mrf-deployment