]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add test checking more characteristics
authorDaniel Müller <deso@posteo.net>
Tue, 28 Jun 2022 16:01:25 +0000 (16:01 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Jul 2022 04:15:19 +0000 (21:15 -0700)
commit8446ba63b1c1edb0398591bd25761ffe691e1ff5
tree49127554ab76ffba9af4b4821ec1038f3c4cc323
parentbd57bb8376dc55fe1a7177596d222be1031c19a6
selftests/bpf: Add test checking more characteristics

This change adds another type-based self-test that specifically aims to
test some more characteristics of the TYPE_MATCH logic. Specifically, it
covers a few more potential differences between types, such as different
orders, enum variant values, and integer signedness.

Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20220628160127.607834-9-deso@posteo.net
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/progs/btf__core_reloc_type_based___diff.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/core_reloc_types.h