aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_btf.h (follow)
AgeCommit message (Collapse)AuthorFilesLines
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 <kafai@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>