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)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 2 Oct 2018 06:28:32 +0000 (08:28 +0200)
commit7c03e7035ac1cf2a6165754e4f3a49c2f1977838
tree85a82b788a04b984acc70d63f7578ad89076614e
parent715bd9d12f84d8f5cc8ad21d888f9bc304a8eb0b
selftests/x86: Add clock_gettime() tests to test_vdso

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
tools/testing/selftests/x86/test_vdso.c