summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorRong Tao <rongtao@cestc.cn>2025-08-29 19:32:13 +0300
committerAlexei Starovoitov <ast@kernel.org>2025-09-10 01:07:58 +0300
commit6624fb2f3382271953f951d46f2ea30415a0917e (patch)
treeb28fb0d124e318582dbf9586f3de16535c41bb45 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent7edfc024708258d75f65fadffd7e5f6ac46810b6 (diff)
downloadlinux-6624fb2f3382271953f951d46f2ea30415a0917e.tar.xz
selftests/bpf: Add tests for bpf_strnstr
Add tests for bpf_strnstr(): bpf_strnstr("", "", 0) = 0 bpf_strnstr("hello world", "hello", 5) = 0 bpf_strnstr(str, "hello", 4) = -ENOENT bpf_strnstr("", "a", 0) = -ENOENT Signed-off-by: Rong Tao <rongtao@cestc.cn> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/tencent_2ED218F8082565C95D86A804BDDA8DBA200A@qq.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions