]> git.hungrycats.org Git - linux/commit
selftests/x86: Add clock_gettime() tests to test_vdso
authorAndy Lutomirski <luto@kernel.org>
Mon, 1 Oct 2018 19:52:16 +0000 (12:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Oct 2018 07:33:12 +0000 (09:33 +0200)
commit1af2998c34e186636588e97a7ae6bcd6bb7b8936
treed91e3ac1753b50dd33a3e2c977e685551ad4fd2e
parente7e1889390a4a2b1e32edf26d7119ee92ad375cc
selftests/x86: Add clock_gettime() tests to test_vdso

commit 7c03e7035ac1cf2a6165754e4f3a49c2f1977838 upstream.

Now that the vDSO implementation of clock_gettime() is getting
reworked, add a selftest for it.  This tests that its output is
consistent with the syscall version.

This is marked for stable to serve as a test for commit

  715bd9d12f84 ("x86/vdso: Fix asm constraints on vDSO syscall fallbacks")

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lkml.kernel.org/r/082399674de2619b2befd8c0dde49b260605b126.1538422295.git.luto@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/x86/test_vdso.c