selftests/bpf: Add tests for extending sleepable global subprogs
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Sat, 1 Mar 2025 15:18:46 +0000 (07:18 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 15 Mar 2025 18:48:25 +0000 (11:48 -0700)
commit72ed076abf54cce939f706d673416f954ea47bcd
tree6b87bf2b6ca50dc4d227dd7453be85a5bc5caf5a
parentb2bb70343477859736920539f43f611d7d2a35a6
selftests/bpf: Add tests for extending sleepable global subprogs

Add tests for freplace behavior with the combination of sleepable
and non-sleepable global subprogs. The changes_pkt_data selftest
did all the hardwork, so simply rename it and include new support
for more summarization tests for might_sleep bit.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20250301151846.1552362-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/changes_pkt_data.c [deleted file]
tools/testing/selftests/bpf/prog_tests/summarization.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/changes_pkt_data.c [deleted file]
tools/testing/selftests/bpf/progs/changes_pkt_data_freplace.c [deleted file]
tools/testing/selftests/bpf/progs/summarization.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/summarization_freplace.c [new file with mode: 0644]