selftests/bpf: Add test involving restrict type qualifier
authorDaniel Müller <deso@posteo.net>
Wed, 6 Jul 2022 21:28:55 +0000 (21:28 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 8 Jul 2022 12:27:03 +0000 (14:27 +0200)
commit32e0d9b3104845e0b3f24d89033a17a317ba37f9
tree4c245e3e92786e7a0a64e5307b531cef7181f112
parentaad53f17f0ad7485872d66fbcb53cc0c60e811f2
selftests/bpf: Add test involving restrict type qualifier

This change adds a type based test involving the restrict type qualifier
to the BPF selftests. On the btfgen path, this will verify that bpftool
correctly handles the corresponding RESTRICT BTF kind.

Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220706212855.1700615-3-deso@posteo.net
tools/testing/selftests/bpf/prog_tests/core_reloc.c
tools/testing/selftests/bpf/progs/core_reloc_types.h
tools/testing/selftests/bpf/progs/test_core_reloc_type_based.c