Skip to content

Commit f5dcd97

Browse files
mykyta5Kernel Patches Daemon
authored andcommitted
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 parent baaa336 commit f5dcd97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/testing/selftests/bpf/progs/file_reader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ int on_open_validate_file_read(void *c)
7777
err = 1;
7878
return 0;
7979
}
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);
8181
return 0;
8282
}
8383

tools/testing/selftests/bpf/progs/verifier_async_cb_context.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ int task_work_non_sleepable_prog(void *ctx)
156156
if (!task)
157157
return 0;
158158

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);
160160
return 0;
161161
}
162162

@@ -176,6 +176,6 @@ int task_work_sleepable_prog(void *ctx)
176176
if (!task)
177177
return 0;
178178

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);
180180
return 0;
181181
}

0 commit comments

Comments
 (0)