Skip to content

Commit

Permalink
contest: vm: try to extract ref_tracker leaks
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
kuba-moo committed May 9, 2024
1 parent 8092d86 commit 95a9150
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contest/remote/lib/vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _read_pipe_nonblock(self, pipe):
return read_some, output
read_some = True
output = decode_and_filter(buf)
if output.find("] RIP: ") != -1 or output.find("] Call Trace:") != -1:
if output.find("] RIP: ") != -1 or output.find("] Call Trace:") != -1 or output.find('] ref_tracker: ') != -1:
self.fail_state = "oops"
except BlockingIOError:
pass
Expand Down Expand Up @@ -382,12 +382,14 @@ def extract_crash(self, out_path):
if in_crash:
in_crash &= '] ---[ end trace ' not in line
in_crash &= '] </TASK>' not in line
in_crash &= line[-2:] != '] '
if not in_crash:
self._load_filters()
finger_prints.append(crash_finger_print(self.filter_data,
crash_lines[start:]))
else:
in_crash |= '] Hardware name: ' in line
in_crash |= '] ref_tracker: ' in line
if in_crash:
start = len(crash_lines)
crash_lines += last5
Expand Down

0 comments on commit 95a9150

Please sign in to comment.