]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Allow prog name matching for tests with __description
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Tue, 7 Apr 2026 14:56:06 +0000 (16:56 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 7 Apr 2026 19:24:29 +0000 (12:24 -0700)
commita8aa306741cdeb7b1cb4832133390f9cd08ece14
tree284141b16f103b27226bbfb261f87c604cb7d259
parent1c22483a2c4bbf747787f328392ca3e68619c4dc
selftests/bpf: Allow prog name matching for tests with __description

For tests that carry a __description tag, allow matching on both the
description string and program name for convenience. Before this commit,
the description string must be spelt out to filter the tests.

Suggested-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20260407145606.3991770-1-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/bpf_misc.h
tools/testing/selftests/bpf/test_loader.c
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_progs.h