]> 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)
commitdafa022e450ec6f842832b7ee5123fdc392cccec
tree0494e3e02bed4df8336a0c5bc73d014b05dffe2b
parentd50a0c7f617875d15acf64d988375f0ec145b80b
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