From a16032c4ed9132973607538d1e2e2b1b87659b23 Mon Sep 17 00:00:00 2001 From: Anders Roxell Date: Fri, 9 Feb 2024 17:09:45 +0100 Subject: [PATCH] plugins: linux_log_parser: check-kernel-exception: add a new cut here The linux log parser doesn't catch all 'cut here' kernel-exceptions. Today it catches cut here looking like: '------------[ cut here ]------------' Add another multiline that can catch: '--- cut here ---' too. Signed-off-by: Anders Roxell --- squad/plugins/linux_log_parser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/squad/plugins/linux_log_parser.py b/squad/plugins/linux_log_parser.py index 90fe77be..eaab9b79 100644 --- a/squad/plugins/linux_log_parser.py +++ b/squad/plugins/linux_log_parser.py @@ -13,6 +13,7 @@ MULTILINERS = [ ('check-kernel-exception', r'-+\[ cut here \]-+.*?-+\[ end trace \w* \]-+'), + ('check-kernel-exception', r'--- cut here ---+.*?-+\[ end trace \w* \]-+'), ('check-kernel-kasan', r'=+\n\[[\s\.\d]+\]\s+BUG: KASAN:.*?=+'), ('check-kernel-kfence', r'=+\n\[[\s\.\d]+\]\s+BUG: KFENCE:.*?=+'), ]