]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Add support for BTF_KIND_TAG
authorYonghong Song <yhs@fb.com>
Tue, 14 Sep 2021 22:30:25 +0000 (15:30 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Sep 2021 01:45:52 +0000 (18:45 -0700)
commit0bd4d69e31a83c39cda0b2d0fbcba86615b7fcf2
tree908974045efcd5f2b1485aac3e19763d94250c72
parent414933ec4c4b5b6d88fa8d9b74856a37faa18c9f
libbpf: Add support for BTF_KIND_TAG

Add BTF_KIND_TAG support for parsing and dedup.
Also added sanitization for BTF_KIND_TAG. If BTF_KIND_TAG is not
supported in the kernel, sanitize it to INTs.

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/20210914223025.246687-1-yhs@fb.com
tools/lib/bpf/btf.c
tools/lib/bpf/btf.h
tools/lib/bpf/btf_dump.c
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.map
tools/lib/bpf/libbpf_internal.h