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)
commitef99b02b23ef4308057573f76750e661b5aea3e1
tree0494e3e02bed4df8336a0c5bc73d014b05dffe2b
parentc5f48c92760115282c80136839eabdbf3183f0b9
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