]> git.baikalelectronics.ru Git - kernel.git/commit
selftest/bpf: Relax btf_dedup test checks
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 5 Nov 2020 04:33:52 +0000 (20:33 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 6 Nov 2020 02:37:30 +0000 (18:37 -0800)
commitb2a879c7f5fbeb1d2c9716785e61a89d602b8e37
tree64a9971285c2fd88e664b51bb1a5d43a4f67b23e
parent5acf208d6db34b7d9c1b634e71f2f829c68a7310
selftest/bpf: Relax btf_dedup test checks

Remove the requirement of a strictly exact string section contents. This used
to be true when string deduplication was done through sorting, but with string
dedup done through hash table, it's no longer true. So relax test harness to
relax strings checks and, consequently, type checks, which now don't have to
have exactly the same string offsets.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201105043402.2530976-3-andrii@kernel.org
tools/testing/selftests/bpf/prog_tests/btf.c