selftests/bpf: Test verifier log for global percpu data

Add two tests to verify the verifier log
"R%d points to percpu_array map which cannot be used as const string\n".

Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/bpf/20260813152324.97937-10-leon.hwang@linux.dev
This commit is contained in:
Leon Hwang 2026-08-13 23:23:22 +08:00 • committed by Andrii Nakryiko
commit 1ed2294b31
2 changed files with 29 additions and 0 deletions