aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2021-10-20 18:44:00 -0700
committerAlexei Starovoitov <ast@kernel.org>2021-10-21 17:10:10 -0700
commitef9356d392f980b3b192668fa05b2eaaad127da1 (patch)
treee06f4ed73f3d525fefaf1dca390db07a09332cbd /tools/perf/scripts/python/export-to-postgresql.py
parentbpftool: Support multiple .rodata/.data internal maps in skeleton (diff)
downloadlinux-dev-ef9356d392f980b3b192668fa05b2eaaad127da1.tar.xz
linux-dev-ef9356d392f980b3b192668fa05b2eaaad127da1.zip
bpftool: Improve skeleton generation for data maps without DATASEC type
It can happen that some data sections (e.g., .rodata.cst16, containing compiler populated string constants) won't have a corresponding BTF DATASEC type. Now that libbpf supports .rodata.* and .data.* sections, situation like that will cause invalid BPF skeleton to be generated that won't compile successfully, as some parts of skeleton would assume memory-mapped struct definitions for each special data section. Fix this by generating empty struct definitions for such data sections. Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20211021014404.2635234-7-andrii@kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions