Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/bpf: Align kfuncs renamed in bpf tree

bpf_task_work_schedule_resume() and bpf_task_work_schedule_signal() have
been renamed in bpf tree to bpf_task_work_schedule_resume_impl() and
bpf_task_work_schedule_signal_impl() accordingly.
There are few uses of these kfuncs in selftests that are not in bpf
tree, so that when we port [1] into bpf-next, those BPF programs will
not compile.
This patch aligns those remaining callsites with the kfunc renaming.
It should go on top of [1] when applying on bpf-next.

1: https://lore.kernel.org/all/20251104-implv2-v3-0-4772b9ae0e06@meta.com/

Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Link: https://lore.kernel.org/r/20251105132105.597344-1-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>

authored by

Mykyta Yatsenko and committed by
Alexei Starovoitov
a4d31f45 e47b68bd

+3 -3
+1 -1
tools/testing/selftests/bpf/progs/file_reader.c
··· 77 77 err = 1; 78 78 return 0; 79 79 } 80 - bpf_task_work_schedule_signal(task, &work->tw, &arrmap, task_work_callback, NULL); 80 + bpf_task_work_schedule_signal_impl(task, &work->tw, &arrmap, task_work_callback, NULL); 81 81 return 0; 82 82 } 83 83
+2 -2
tools/testing/selftests/bpf/progs/verifier_async_cb_context.c
··· 156 156 if (!task) 157 157 return 0; 158 158 159 - bpf_task_work_schedule_resume(task, &val->tw, &task_work_map, task_work_cb, NULL); 159 + bpf_task_work_schedule_resume_impl(task, &val->tw, &task_work_map, task_work_cb, NULL); 160 160 return 0; 161 161 } 162 162 ··· 176 176 if (!task) 177 177 return 0; 178 178 179 - bpf_task_work_schedule_resume(task, &val->tw, &task_work_map, task_work_cb, NULL); 179 + bpf_task_work_schedule_resume_impl(task, &val->tw, &task_work_map, task_work_cb, NULL); 180 180 return 0; 181 181 }