contrib/plugins/uftrace_symbols.py: fix symbols reading
When running this on hexagon binary, we observe some undefined symbols without any address or size. Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Link: https://lore.kernel.org/qemu-devel/20260424194451.1439316-2-pierrick.bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Pierrick Bouvier committed
Apr 24, 2026 at 12:44 UTC
29d84c34a54c3c1db14f89f3d73273c71f1a6659
1 file changed
+2
-2
contrib/plugins/uftrace_symbols.py
+2
-2
@@ -36,8 +36,8 @@ def get_symbols(elf_file):
36
out = out.strip().split('\n')
37
for line in out:
38
info = line.split(' ')
39
- if len(info) == 3:
40
- # missing size information
39
+ if len(info) != 4:
40
+ # missing size/address information
41
continue
42
addr, size, type, name = info
43
# add only symbols from .text section