From 6a4810dd45e00bc652d8eb5ef38efa985c92d4c9 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 18 Oct 2017 16:56:05 +0200 Subject: pkg/report: strip unnecessary info from "workqueue lockup" crashes --- pkg/report/linux.go | 8 ++++++-- pkg/report/linux_test.go | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pkg/report/linux.go b/pkg/report/linux.go index f560df636..ce7727869 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -413,13 +413,17 @@ var linuxOopses = []*oops{ "BUG: Dentry still in use [unmount of %[1]v]", }, { - compile("BUG: Bad page state .*"), + compile("BUG: Bad page state.*"), "BUG: Bad page state", }, { - compile("BUG: spinlock bad magic .*"), + compile("BUG: spinlock bad magic.*"), "BUG: spinlock bad magic", }, + { + compile("BUG: workqueue lockup.*"), + "BUG: workqueue lockup", + }, }, []*regexp.Regexp{ // Android prints this sometimes during boot. diff --git a/pkg/report/linux_test.go b/pkg/report/linux_test.go index fae68435f..a1594488d 100644 --- a/pkg/report/linux_test.go +++ b/pkg/report/linux_test.go @@ -776,6 +776,10 @@ other info that might help us debug this: [ 16.762666] [syscamera][msm_companion_pll_init::544][WAFER_INFO::0xcf80] [ 16.763144] [syscamera][msm_companion_pll_init::594][BIN_INFO::0x0008][WAFER_INFO::0xcf80][voltage 0.775] `: ``, + + ` +BUG: workqueue lockup - pool cpus=0 node=0 flags=0x0 nice=0 stuck for 32s! +`: `BUG: workqueue lockup`, } testParse(t, "linux", tests) } -- cgit mrf-deployment