OSDN Git Service

selftests/bpf: Add BTF_KIND_TAG unit tests
authorYonghong Song <yhs@fb.com>
Tue, 14 Sep 2021 22:30:47 +0000 (15:30 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 15 Sep 2021 01:45:52 +0000 (18:45 -0700)
commit35baba7a832fa466b4aa2e0d00473d795cec8f20
tree581b5b258e63a4d5c86c037b711e70e489cf3aa2
parent3df3bd68d4811bccc74adc04d4d84512957a1a07
selftests/bpf: Add BTF_KIND_TAG unit tests

Test good and bad variants of BTF_KIND_TAG encoding.

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/20210914223047.248223-1-yhs@fb.com
tools/testing/selftests/bpf/prog_tests/btf.c
tools/testing/selftests/bpf/test_btf.h