]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Refactor BTF encoding macro to test_btf.h
authorMartin KaFai Lau <kafai@fb.com>
Fri, 26 Apr 2019 23:39:46 +0000 (16:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Apr 2019 16:07:05 +0000 (09:07 -0700)
commita131d7f924d2bbff8a2fc0bfcefeccc77e3fa41b
tree66e9ffe057aa4888a9878033486b7a43a32f93f2
parente82bf0fece328c785b17c6a79aa3e770ac129638
bpf: Refactor BTF encoding macro to test_btf.h

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>
tools/testing/selftests/bpf/test_btf.c
tools/testing/selftests/bpf/test_btf.h [new file with mode: 0644]