]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Support multiple .rodata/.data internal maps in skeleton
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 21 Oct 2021 01:43:59 +0000 (18:43 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 22 Oct 2021 00:10:10 +0000 (17:10 -0700)
commit17d82768172f9c5f27d9606c82fc656908a32119
treea38a3bd3f4874b0d9face7d4fa2689de8b4a04f4
parentcc556f868645b8b36cdc48963d6c87b03bb96841
bpftool: Support multiple .rodata/.data internal maps in skeleton

Remove the assumption about only single instance of each of .rodata and
.data internal maps. Nothing changes for '.rodata' and '.data' maps, but new
'.rodata.something' map will get 'rodata_something' section in BPF
skeleton for them (as well as having struct bpf_map * field in maps
section with the same field name).

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-6-andrii@kernel.org
tools/bpf/bpftool/gen.c