Skip to content

Commit 72ec037

Browse files
committed
fix: tools: sof_perf_analyzer: ignore errors when decoding mtrace file
Signed-off-by: Emilia Kurdybelska <emiliax.kurdybelska@intel.com>
1 parent 53d0819 commit 72ec037

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

case-lib/lib.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,12 +1496,10 @@ perf_analyze()
14961496
fi
14971497
dlogc "$perf_cmd"
14981498
eval "$perf_cmd" || {
1499-
dloge "SOF component performace analysis tool exit with error"
1500-
return 1
1499+
dlogw "SOF component performace analysis tool exit with error"
15011500
}
15021501
else
1503-
dloge "Firmware trace file not found"
1504-
return 1
1502+
dlogw "Firmware trace file not found"
15051503
fi
15061504
}
15071505

tools/sof_perf_analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def process_trace_file():
173173
#
174174
# pylint: disable=C0103
175175
ts_shift = 0
176-
with open(args.filename, 'r', encoding='utf8') as file:
176+
with open(args.filename, 'r', encoding='utf8', errors='ignore') as file:
177177
trace_item_gen = make_trace_item(file)
178178
trace_prev = None
179179
try:

0 commit comments

Comments
 (0)