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

selftests: vdso: Rename vdso_test to vdso_test_gettimeofday

Currently the vDSO kselftests have a test called vdso_test which tests
the vDSO implementation of gettimeofday(). In preparation for adding
tests for other vDSO functionality rename this test to reflect what's
going on.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Mark Brown and committed by
Shuah Khan
babf8a97 61016db1

+6 -4
+1
tools/testing/selftests/vDSO/.gitignore
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 vdso_test 3 + vdso_test_gettimeofday 3 4 vdso_standalone_test_x86
+2 -2
tools/testing/selftests/vDSO/Makefile
··· 4 4 uname_M := $(shell uname -m 2>/dev/null || echo not) 5 5 ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) 6 6 7 - TEST_GEN_PROGS := $(OUTPUT)/vdso_test 7 + TEST_GEN_PROGS := $(OUTPUT)/vdso_test_gettimeofday 8 8 ifeq ($(ARCH),x86) 9 9 TEST_GEN_PROGS += $(OUTPUT)/vdso_standalone_test_x86 10 10 endif ··· 17 17 endif 18 18 19 19 all: $(TEST_GEN_PROGS) 20 - $(OUTPUT)/vdso_test: parse_vdso.c vdso_test.c 20 + $(OUTPUT)/vdso_test_gettimeofday: parse_vdso.c vdso_test_gettimeofday.c 21 21 $(OUTPUT)/vdso_standalone_test_x86: vdso_standalone_test_x86.c parse_vdso.c 22 22 $(CC) $(CFLAGS) $(CFLAGS_vdso_standalone_test_x86) \ 23 23 vdso_standalone_test_x86.c parse_vdso.c \
+3 -2
tools/testing/selftests/vDSO/vdso_test.c tools/testing/selftests/vDSO/vdso_test_gettimeofday.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 /* 3 - * vdso_test.c: Sample code to test parse_vdso.c 3 + * vdso_test_gettimeofday.c: Sample code to test parse_vdso.c and 4 + * vDSO gettimeofday() 4 5 * Copyright (c) 2014 Andy Lutomirski 5 6 * 6 7 * Compile with: 7 - * gcc -std=gnu99 vdso_test.c parse_vdso.c 8 + * gcc -std=gnu99 vdso_test_gettimeofday.c parse_vdso_gettimeofday.c 8 9 * 9 10 * Tested on x86, 32-bit and 64-bit. It may work on other architectures, too. 10 11 */