selftests/bpf: Add a dedup selftest with equivalent structure types
authorYonghong Song <yhs@fb.com>
Mon, 15 Nov 2021 16:39:43 +0000 (08:39 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Nov 2021 12:12:55 +0000 (13:12 +0100)
commit4746158305e98c91c479539d53ef9bf8c520dd66
treeaaaa6ee8671e195656bf7809fc1a22c80729d0b5
parent69a055d546156adc6f7727ec981f721d5ba9231a
selftests/bpf: Add a dedup selftest with equivalent structure types

Without previous libbpf patch, the following error will occur:

  $ ./test_progs -t btf
  ...
  do_test_dedup:FAIL:check btf_dedup failed errno:-22#13/205 btf/dedup: btf_type_tag #5, struct:FAIL

And the previous libbpf patch fixed the issue.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20211115163943.3922547-1-yhs@fb.com
tools/testing/selftests/bpf/prog_tests/btf.c