aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJames Hilliard <[email protected]>2022-07-31 17:26:49 -0600
committerAndrii Nakryiko <[email protected]>2022-08-04 14:39:07 -0700
commit47ea7417b0744324424405fc1207e266053237a9 (patch)
treea22d754b60690412ceb85acdbc40613c44bce1db /tools/perf/scripts/python/event_analyzing_sample.py
parentf86d1fbbe7858884d6754534a0afbb74fc30bc26 (diff)
libbpf: Skip empty sections in bpf_object__init_global_data_maps
The GNU assembler generates an empty .bss section. This is a well established behavior in GAS that happens in all supported targets. The LLVM assembler doesn't generate an empty .bss section. bpftool chokes on the empty .bss section. Additionally in bpf_object__elf_collect the sec_desc->data is not initialized when a section is not recognized. In this case, this happens with .comment. So we must check that sec_desc->data is initialized before checking if the size is 0. Signed-off-by: James Hilliard <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Jiri Olsa <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions