OSDN Git Service

tools/bpf: Add tests for BTF_KIND_FUNC_PROTO and BTF_KIND_FUNC
authorMartin KaFai Lau <kafai@fb.com>
Mon, 19 Nov 2018 23:29:10 +0000 (15:29 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 20 Nov 2018 18:54:38 +0000 (10:54 -0800)
commit78a2540e8945678b390a5f41eb82459bc6f0f36c
treecab2bda07077f3d7ab9ff8e2f682a0e896ba3380
parent781e775e296ce3aabe0a4a0f773dccda02267695
tools/bpf: Add tests for BTF_KIND_FUNC_PROTO and BTF_KIND_FUNC

This patch adds unit tests for BTF_KIND_FUNC_PROTO and
BTF_KIND_FUNC to test_btf.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/btf.c
tools/testing/selftests/bpf/test_btf.c