From 341b41793362f4d89e8b1553a78f61a46912e781 Mon Sep 17 00:00:00 2001 From: Chen Rong Date: Tue, 19 Feb 2019 16:01:54 +0800 Subject: [PATCH] lib/dmesg.rb: convert "Bad pagetable: 000f [#1]" to "Bad pagetable: # [#1]" to align with others from [ 29.493015 ] Bad pagetable: 000f [#1] PTI to [ 29.493015 ] Bad pagetable: # [#1] PTI Signed-off-by: Chen Rong Signed-off-by: Philip Li --- lib/dmesg.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/dmesg.rb b/lib/dmesg.rb index 151ae9395..deb7249d0 100755 --- a/lib/dmesg.rb +++ b/lib/dmesg.rb @@ -342,6 +342,12 @@ def analyze_error_id(line) # [ 11.380524 ] BUG: Bad rss-counter state mm:(ptrval) idx:1 val:1 bug_to_bisect = oops_to_bisect_pattern line line = line.sub(/BUG: Bad rss-counter state mm:([0-9a-f]+|\(_*ptrval_*\)) idx:/, 'BUG: Bad rss-counter state mm:# idx:') + when /Bad pagetable: [0-9a-f]+ \[#/ + # [ 29.493015 ] Bad pagetable: 000f [#1] PTI + # [ 9.167214 ] Bad pagetable: 001d [#1] PTI + # [ 9.170529 ] Bad pagetable: 0009 [#2] PTI + bug_to_bisect = oops_to_bisect_pattern line + line = line.sub(/Bad pagetable: [0-9a-f]+ \[#/, 'Bad pagetable: # [#') else bug_to_bisect = oops_to_bisect_pattern line end