]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb3e9f462b9d7d53ab7d4c629219078ff9ed872e1
tree168463da95bacaf8873bc7742745c7d14845c3c0
parent14ff8573217822b9a72a40799e509a2527883d5e
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