]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add BTF_KIND_FLOAT to the existing deduplication tests
authorIlya Leoshkevich <iii@linux.ibm.com>
Fri, 26 Feb 2021 20:22:54 +0000 (21:22 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 5 Mar 2021 01:58:16 +0000 (17:58 -0800)
commitb38fec6d59e99b1f19932c64edc9a1589f2c8fa1
treeff2b9e2ea80d848fb0ed3553e383a8a52977865c
parentfb5650d2ab850aecdec6e43a215148a1c4251316
selftests/bpf: Add BTF_KIND_FLOAT to the existing deduplication tests

Check that floats don't interfere with struct deduplication, that they
are not merged with another kinds and that floats of different sizes are
not merged with each other.

Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20210226202256.116518-9-iii@linux.ibm.com
tools/testing/selftests/bpf/prog_tests/btf.c