Linux-kselftest Archive on lore.kernel.org
 help / color / Atom feed
From: Vincenzo Frascino <vincenzo.frascino@arm.com>
To: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>,
	Shuah Khan <shuah@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Andy Lutomirski <luto@kernel.org>, Arnd Bergmann <arnd@arndb.de>
Subject: [PATCH v4 0/5] kselftest: Extend vDSO tests
Date: Mon, 26 Oct 2020 11:49:40 +0000
Message-ID: <20201026114945.48532-1-vincenzo.frascino@arm.com> (raw)

This series extends the kselftests for the vDSO library making sure: that
they compile correctly on non x86 platforms, that they can be cross
compiled and introducing new tests that verify the correctness of the
library.

The so extended vDSO kselftests have been verified on all the platforms
supported by the unified vDSO library [1].

The only new patch that this series introduces is the first one, patch 2 and
patch 3 have already been reviewed in past as part of other series [2] [3].

[1] https://lore.kernel.org/lkml/20190621095252.32307-1-vincenzo.frascino@arm.com
[2] https://lore.kernel.org/lkml/20190621095252.32307-26-vincenzo.frascino@arm.com
[3] https://lore.kernel.org/lkml/20190523112116.19233-4-vincenzo.frascino@arm.com

It is possible to build the series using the command below:

make -C tools/testing/selftests/ ARCH=<arch> TARGETS=vDSO CC=<compiler>

A version of the series rebased on 5.10-rc1 to simplify the testing can be found
at [4].

[4] https://git.gitlab.arm.com/linux-arm/linux-vf.git vdso/v4.tests

Changes:
--------
v4:
  - Rebased on 5.10-rc1.
v3:
  - Added correctness test for clock_gettime64.
  - Rebased on 5.7-rc4.
v2:
  - Addressed review comments from Andy.
  - Rebased on 5.7-rc3.

Cc: Shuah Khan <shuah@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@arm.com>

Vincenzo Frascino (5):
  kselftest: Enable vDSO test on non x86 platforms
  kselftest: Extend vDSO selftest
  kselftest: Extend vDSO selftest to clock_getres
  kselftest: Move test_vdso to the vDSO test suite
  kselftest: Extend vdso correctness test to clock_gettime64

 tools/testing/selftests/Makefile              |   1 +
 tools/testing/selftests/vDSO/Makefile         |  16 +-
 tools/testing/selftests/vDSO/vdso_config.h    |  92 +++++++
 tools/testing/selftests/vDSO/vdso_test_abi.c  | 244 ++++++++++++++++++
 .../selftests/vDSO/vdso_test_clock_getres.c   | 124 +++++++++
 .../vdso_test_correctness.c}                  | 115 ++++++++-
 tools/testing/selftests/x86/Makefile          |   2 +-
 7 files changed, 586 insertions(+), 8 deletions(-)
 create mode 100644 tools/testing/selftests/vDSO/vdso_config.h
 create mode 100644 tools/testing/selftests/vDSO/vdso_test_abi.c
 create mode 100644 tools/testing/selftests/vDSO/vdso_test_clock_getres.c
 rename tools/testing/selftests/{x86/test_vdso.c => vDSO/vdso_test_correctness.c} (73%)

-- 
2.28.0


             reply index

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-26 11:49 Vincenzo Frascino [this message]
2020-10-26 11:49 ` [PATCH v4 1/5] kselftest: Enable vDSO test on non x86 platforms Vincenzo Frascino
2020-10-26 11:49 ` [PATCH v4 2/5] kselftest: Extend vDSO selftest Vincenzo Frascino
2020-10-26 11:49 ` [PATCH v4 3/5] kselftest: Extend vDSO selftest to clock_getres Vincenzo Frascino
2020-10-26 11:49 ` [PATCH v4 4/5] kselftest: Move test_vdso to the vDSO test suite Vincenzo Frascino
2020-10-26 11:49 ` [PATCH v4 5/5] kselftest: Extend vdso correctness test to clock_gettime64 Vincenzo Frascino
2020-10-26 23:01 ` [PATCH v4 0/5] kselftest: Extend vDSO tests Thomas Gleixner
2020-10-27  0:50   ` Shuah Khan
2020-10-28 15:20     ` Shuah Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201026114945.48532-1-vincenzo.frascino@arm.com \
    --to=vincenzo.frascino@arm.com \
    --cc=arnd@arndb.de \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=luto@kernel.org \
    --cc=shuah@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-kselftest Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-kselftest/0 linux-kselftest/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-kselftest linux-kselftest/ https://lore.kernel.org/linux-kselftest \
		linux-kselftest@vger.kernel.org
	public-inbox-index linux-kselftest

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kselftest


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git