Skip to content

Commit

Permalink
lib/dmesg.rb: convert "Bad pagetable: 000f [#1]" to "Bad pagetable: # [
Browse files Browse the repository at this point in the history
…#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 <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
xilabao authored and rli9 committed Feb 19, 2019
1 parent b99da7b commit 341b417
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/dmesg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 341b417

Please sign in to comment.