aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-01-14 17:41:04 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-01-14 17:41:04 +0100
commitf034b65deaeaffccf8d1053ec2701f941ec6dd18 (patch)
tree24c2538569da431e22023f197a8286a58f667e0d /pkg/report/linux.go
parent744a007c1935c734a72775488c9ae0c2d0a90153 (diff)
pkg/report: add parsing of trusty crashes
Update #933
Diffstat (limited to 'pkg/report/linux.go')
-rw-r--r--pkg/report/linux.go13
1 files changed, 13 insertions, 0 deletions
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{},
+ },
}