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)
commitd9448f94962bd28554df7d9a342d37c7f13d6232
tree64a9971285c2fd88e664b51bb1a5d43a4f67b23e
parentc81ed6d81e0560713ceb94917ff1981848d0614e
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