aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/test_btf.h
AgeCommit message (Collapse)AuthorFilesLines
2021-03-04selftest/bpf: Add BTF_KIND_FLOAT testsIlya Leoshkevich1-0/+3
Test the good variants as well as the potential malformed ones. Signed-off-by: Ilya Leoshkevich <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Yonghong Song <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
2019-04-27bpf: Refactor BTF encoding macro to test_btf.hMartin KaFai Lau1-0/+69
Refactor common BTF encoding macros for other tests to use. The libbpf may reuse some of them in the future which requires some more thoughts before publishing as a libbpf API. Signed-off-by: Martin KaFai Lau <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]>