contrib/plugins/uftrace_symbols.py: filter out some addr2line error messages
This was found when tracing Hafnium and SLOF binaries, and it's probably related to a bug in toolchain used. It's safe to ignore those entries, and related symbols will still be present in output, whether they can be found or not. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260218172356.938236-1-pierrick.bouvier@linaro.org Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Pierrick Bouvier committed
Feb 18, 2026 at 09:23 UTC
bd3d912b77b5d2b13ac7b055cb5ad33d5a86dcb8
1 file changed
+3
contrib/plugins/uftrace_symbols.py
+3
@@ -59,6 +59,9 @@ def find_symbols_locations(elf_file, symbols):
59
print(e.output)
60
raise
61
out = out.strip().split('\n')
62
+ # filter out some addr2line error messages
63
+ skip_err='addr2line: DWARF error: mangled line number section (bad file number)'
64
+ out = [src for src in out if src != skip_err]
65
assert len(out) == len(symbols)
66
for i in range(len(symbols)):
67
s = symbols[i]