selftests/bpf: Test cases for '?' in BTF names
authorEduard Zingerman <eddyz87@gmail.com>
Wed, 6 Mar 2024 10:45:29 +0000 (12:45 +0200)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 6 Mar 2024 23:18:16 +0000 (15:18 -0800)
commit5208930a909ad618363471e2872d79abef103626
tree06fb0432340f8ae5ca35102e7250a394274051c4
parentbd70a8fb7ca4fcb078086f4d96b048aaf1aa4786
selftests/bpf: Test cases for '?' in BTF names

Two test cases to verify that '?' and other printable characters are
allowed in BTF DATASEC names:
- DATASEC with name "?.foo bar:buz" should be accepted;
- type with name "?foo" should be rejected.

Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240306104529.6453-16-eddyz87@gmail.com
tools/testing/selftests/bpf/prog_tests/btf.c