File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ v13=UBSAN:
2121[suppressions]
2222v1 =test_debug_virtual_init
2323v2 =at drivers/misc/lkdtm/
24+
25+ [suppression_patterns]
Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ def filter_log_warnings(infile, outfile):
141141 parser = ConfigParser ()
142142 parser .read_file (open (path ))
143143 suppressions = [t [1 ] for t in parser .items ('suppressions' , [])]
144+ suppression_patterns = [t [1 ] for t in parser .items ('suppression_patterns' , [])]
145+ suppression_patterns = [re .compile (p ) for p in suppression_patterns ]
144146 strings = [t [1 ] for t in parser .items ('strings' , [])]
145147 patterns = [t [1 ] for t in parser .items ('patterns' , [])]
146148 patterns = [re .compile (p ) for p in patterns ]
@@ -150,6 +152,10 @@ def suppress(line):
150152 if suppression in line :
151153 return True
152154
155+ for pattern in suppression_patterns :
156+ if pattern .search (line ):
157+ return True
158+
153159 return False
154160
155161 found = False
You can’t perform that action at this time.
0 commit comments