aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <[email protected]>2021-09-29 23:38:37 +0200
committerAndrii Nakryiko <[email protected]>2021-09-29 15:50:32 -0700
commit161ecd537948a7003129889b04a3a0858687bc70 (patch)
tree5a1d2a597723c75b2f0f191559fd629315b87d03 /tools/perf/scripts/python/libxed.py
parentde21d8bf777240c6d6dfefa39b4925729e32c0fd (diff)
libbpf: Properly ignore STT_SECTION symbols in legacy map definitions
The previous patch to ignore STT_SECTION symbols only added the ignore condition in one of them. This fails if there's more than one map definition in the 'maps' section, because the subsequent modulus check will fail, resulting in error messages like: libbpf: elf: unable to determine legacy map definition size in ./xdpdump_xdp.o Fix this by also ignoring STT_SECTION in the first loop. Fixes: c3e8c44a9063 ("libbpf: Ignore STT_SECTION symbols in 'maps' section") Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions