mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
Add a kselftest that exercises the RDS getsockopt() paths converted to the getsockopt_iter() / sockopt_t callback: - RDS_RECVERR and SO_RDS_TRANSPORT, which return their int value through copy_to_iter() and report the written length in opt->optlen. - RDS_INFO_*, which obtains the userspace buffer pages with iov_iter_extract_pages() (including a non-zero starting page offset) and lets the info producers copy the snapshot in under a spinlock. Assisted-by: Claude:claude-opus-4-8 Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Allison Henderson <achender@kernel.org> Link: https://patch.msgid.link/20260608-getsock_more-v3-1-706ecf2ea332@debian.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
24 lines
339 B
Makefile
24 lines
339 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
all:
|
|
@echo mk_build_dir="$(shell pwd)" > include.sh
|
|
|
|
TEST_PROGS := rds_run.sh
|
|
|
|
TEST_GEN_PROGS := getsockopt
|
|
|
|
TEST_FILES := \
|
|
include.sh \
|
|
settings \
|
|
test.py \
|
|
# end of TEST_FILES
|
|
|
|
EXTRA_CLEAN := \
|
|
include.sh \
|
|
/tmp/rds_logs \
|
|
# end of EXTRA_CLEAN
|
|
|
|
CFLAGS += $(KHDR_INCLUDES)
|
|
|
|
include ../../lib.mk
|