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

kselftest: Move test_vdso to the vDSO test suite

Move test_vdso from x86 to the vDSO test suite.

Suggested-by: Andy Lutomirski <luto@kernel.org>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Vincenzo Frascino and committed by
Shuah Khan
c7e5789b 03f55c79

+9 -3
+8 -2
tools/testing/selftests/vDSO/Makefile
··· 7 7 TEST_GEN_PROGS := $(OUTPUT)/vdso_test_gettimeofday $(OUTPUT)/vdso_test_getcpu 8 8 TEST_GEN_PROGS += $(OUTPUT)/vdso_test_abi 9 9 TEST_GEN_PROGS += $(OUTPUT)/vdso_test_clock_getres 10 - ifeq ($(ARCH),x86) 10 + ifeq ($(ARCH),$(filter $(ARCH),x86 x86_64)) 11 11 TEST_GEN_PROGS += $(OUTPUT)/vdso_standalone_test_x86 12 12 endif 13 + TEST_GEN_PROGS += $(OUTPUT)/vdso_test_correctness 13 14 14 15 CFLAGS := -std=gnu99 15 16 CFLAGS_vdso_standalone_test_x86 := -nostdlib -fno-asynchronous-unwind-tables -fno-stack-protector 17 + LDFLAGS_vdso_test_correctness := -ldl 16 18 ifeq ($(CONFIG_X86_32),y) 17 19 LDLIBS += -lgcc_s 18 20 endif ··· 28 26 $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ 29 27 vdso_standalone_test_x86.c parse_vdso.c \ 30 28 -o $@ 31 - 29 + $(OUTPUT)/vdso_test_correctness: vdso_test_correctness.c 30 + $(CC) $(CFLAGS) \ 31 + vdso_test_correctness.c \ 32 + -o $@ \ 33 + $(LDFLAGS_vdso_test_correctness)
+1 -1
tools/testing/selftests/x86/Makefile
··· 12 12 13 13 TARGETS_C_BOTHBITS := single_step_syscall sysret_ss_attrs syscall_nt test_mremap_vdso \ 14 14 check_initial_reg_state sigreturn iopl ioperm \ 15 - test_vdso test_vsyscall mov_ss_trap \ 15 + test_vsyscall mov_ss_trap \ 16 16 syscall_arg_fault fsgsbase_restore 17 17 TARGETS_C_32BIT_ONLY := entry_from_vm86 test_syscall_vdso unwind_vdso \ 18 18 test_FCMOV test_FCOMI test_FISTTP \
tools/testing/selftests/x86/test_vdso.c tools/testing/selftests/vDSO/vdso_test_correctness.c