summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEmil Tsalapatis <emil@etsalapatis.com>2026-10-02 10:52:18 +0000
committerAlexei Starovoitov <ast@kernel.org>2026-10-02 13:00:59 +0000
commitfc38f07781ca3e40f4f39532d83b5cb3d75a3ab5 (patch)
tree3d35625acd88758419b570549dd1a27c968f231d /include/linux
parent23290213e1abfc71731a6491ca278141e8cbbf3b (diff)
downloadlinux-next-fc38f07781ca3e40f4f39532d83b5cb3d75a3ab5.tar.gz
linux-next-fc38f07781ca3e40f4f39532d83b5cb3d75a3ab5.zip
selftests/bpf: Test per-call site function specialization
Add a test to ensure function call specialization is done per-call site. Use bpf_dynptr_from_file that has observably different behavior between its sleepable and nonsleepable versions. The sleepable path fails in the sleepable __kernel_read() call with -EIO, while the nonsleepable fails in the page-cache lookup path with -EFAULT. Test that whatever the order the nonsleepable and sleepable calls are made in the program, both call sites use the correct specialized kfunc. Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://patch.msgid.link/20261002105218.6171-8-emil@etsalapatis.com
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions