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
This commit is contained in:
Yonghong Song
2021-09-14 15:30:25 -07:00
committed by Andrii Nakryiko
parent 966ba8918d
commit 7e7f59d658
6 changed files with 118 additions and 3 deletions

View File

@@ -388,4 +388,6 @@ LIBBPF_0.5.0 {
} LIBBPF_0.4.0;
LIBBPF_0.6.0 {
global:
btf__add_tag;
} LIBBPF_0.5.0;