]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: capture value in BTF type info for BTF-defined map defs
authorAndrii Nakryiko <andriin@fb.com>
Fri, 5 Jul 2019 15:50:09 +0000 (08:50 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 5 Jul 2019 20:52:25 +0000 (22:52 +0200)
commit1567886d50cffe2136b0ddef7cf544ba4ce0462b
tree0494e3e02bed4df8336a0c5bc73d014b05dffe2b
parent3975b00a4da00374b2a49a377d49291acc94f3ca
libbpf: capture value in BTF type info for BTF-defined map defs

Change BTF-defined map definitions to capture compile-time integer
values as part of BTF type definition, to avoid split of key/value type
information and actual type/size/flags initialization for maps.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c