]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: vdso: Add a selftest for vDSO getcpu()
authorMark Brown <broonie@kernel.org>
Fri, 22 May 2020 16:21:39 +0000 (17:21 +0100)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 22 May 2020 17:05:07 +0000 (11:05 -0600)
commitbaf25b114f06c2e030bf098ca62566d9c3c91335
tree875a9b773d5a6df3050a8c791a6cd4c49c9214d0
parentd9e5e3e15463a671df5a8c4dd099f4113febd4da
selftests: vdso: Add a selftest for vDSO getcpu()

Provide a very basic selftest for getcpu() which similarly to our existing
test for gettimeofday() looks up the function in the vDSO and prints the
results it gets if the function exists and succeeds.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/vDSO/.gitignore
tools/testing/selftests/vDSO/Makefile
tools/testing/selftests/vDSO/vdso_test_getcpu.c [new file with mode: 0644]