aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2026-01-27 15:17:21 +0100
committerAleksandr Nogikh <nogikh@google.com>2026-01-29 16:40:55 +0000
commitbfa73b7bfb58dfb6a92b13840be3fee14c88e9ce (patch)
treeb00349ea22bf72bc97b998ca29fbc7337242c8cd /pkg/report/linux.go
parentebcfe4f8fa38acd1fe9d6cb68af7ebea9f6ba825 (diff)
pkg/report: extract whether kernel has panicked
Diffstat (limited to 'pkg/report/linux.go')
-rw-r--r--pkg/report/linux.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index e46a34a91..69e674836 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -155,6 +155,8 @@ func ctorLinux(cfg *config) (reporterImpl, []string, error) {
const contextConsole = "console"
+var linuxPanickedRe = regexp.MustCompile(`Kernel panic - not syncing`)
+
func (ctx *linux) ContainsCrash(output []byte) bool {
return containsCrash(output, linuxOopses, ctx.ignores)
}
@@ -196,6 +198,7 @@ func (ctx *linux) Parse(output []byte) *Report {
if !rep.Corrupted {
rep.Corrupted, rep.CorruptedReason = isCorrupted(title, report, format)
}
+ rep.Panicked = linuxPanickedRe.Match(output)
if rep.CorruptedReason == corruptedNoFrames && context != contextConsole && !questionable {
// We used to look at questionable frame with the following incentive:
// """