]> 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)
commitbb6911a8da5e5ddae4c9e0d30429393ffb8b55af
tree66e9ffe057aa4888a9878033486b7a43a32f93f2
parent5c6569060597b2d706ffd97e82b4d527ec2664cc
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]