kselftest: Extend vDSO selftest to clock_getres
authorVincenzo Frascino <vincenzo.frascino@arm.com>
Mon, 26 Oct 2020 11:49:43 +0000 (11:49 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 27 Oct 2020 23:58:00 +0000 (17:58 -0600)
commit03f55c7952c92d8577d6e9bc695f3fd20032cfd9
tree414882974cf64d86ad0b18d870fedd54c0c48d6e
parent693f5ca08ca0767b407b7ca634dbf1b783676ec3
kselftest: Extend vDSO selftest to clock_getres

The current version of the multiarch vDSO selftest verifies only
gettimeofday.

Extend the vDSO selftest to clock_getres, to verify that the
syscall and the vDSO library function return the same information.

The extension has been used to verify the hrtimer_resoltion fix.

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>
tools/testing/selftests/vDSO/Makefile
tools/testing/selftests/vDSO/vdso_test_clock_getres.c [new file with mode: 0644]