OSDN Git Service

btf: Change BTF_KIND_* macros to enums
authorYonghong Song <yhs@fb.com>
Tue, 14 Sep 2021 22:30:09 +0000 (15:30 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Sep 2021 01:45:52 +0000 (18:45 -0700)
commit41ced4cd88020c9d4b71ff7c50d020f081efa4a0
tree168463da95bacaf8873bc7742745c7d14845c3c0
parent8987ede3ed276f669eb88d952184e1d2bf42ea6b
btf: Change BTF_KIND_* macros to enums

Change BTF_KIND_* macros to enums so they are encoded in dwarf and
appear in vmlinux.h. This will make it easier for bpf programs
to use these constants without macro definitions.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210914223009.245307-1-yhs@fb.com
include/uapi/linux/btf.h
tools/include/uapi/linux/btf.h