-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'linux-kselftest-next-5.11-rc1' of git://git.kernel.org/pub…
…/scm/linux/kernel/git/shuah/linux-kselftest Pull Kselftest updates from Shuah Khan: - Much needed gpio test Makefile cleanup to various problems with test dependencies and build errors from Michael Ellerman - Enabling vDSO test on non x86 platforms from Vincenzo Frascino - Fix intel_pstate to replace deprecated ftime() usages with clock_gettime() from Tommi Rantala - cgroup test build fix on older releases from Sachin Sant - A couple of spelling mistake fixes * tag 'linux-kselftest-next-5.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: selftests/cgroup: Fix build on older distros selftests/run_kselftest.sh: fix dry-run typo tool: selftests: fix spelling typo of 'writting' selftests/memfd: Fix implicit declaration warnings selftests: intel_pstate: ftime() is deprecated selftests/gpio: Add to CLEAN rule rather than overriding selftests/gpio: Fix build when source tree is read only selftests/gpio: Move include of lib.mk up selftests/gpio: Use TEST_GEN_PROGS_EXTENDED kselftest: Extend vdso correctness test to clock_gettime64 kselftest: Move test_vdso to the vDSO test suite kselftest: Extend vDSO selftest to clock_getres kselftest: Extend vDSO selftest kselftest: Enable vDSO test on non x86 platforms
- Loading branch information
Showing
14 changed files
with
621 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* | ||
* vdso_config.h: Configuration options for vDSO tests. | ||
* Copyright (c) 2019 Arm Ltd. | ||
*/ | ||
#ifndef __VDSO_CONFIG_H__ | ||
#define __VDSO_CONFIG_H__ | ||
|
||
/* | ||
* Each architecture exports its vDSO implementation with different names | ||
* and a different version from the others, so we need to handle it as a | ||
* special case. | ||
*/ | ||
#if defined(__arm__) | ||
#define VDSO_VERSION 0 | ||
#define VDSO_NAMES 1 | ||
#define VDSO_32BIT 1 | ||
#elif defined(__aarch64__) | ||
#define VDSO_VERSION 3 | ||
#define VDSO_NAMES 0 | ||
#elif defined(__powerpc__) | ||
#define VDSO_VERSION 1 | ||
#define VDSO_NAMES 0 | ||
#define VDSO_32BIT 1 | ||
#elif defined(__powerpc64__) | ||
#define VDSO_VERSION 1 | ||
#define VDSO_NAMES 0 | ||
#elif defined (__s390__) | ||
#define VDSO_VERSION 2 | ||
#define VDSO_NAMES 0 | ||
#define VDSO_32BIT 1 | ||
#elif defined (__s390X__) | ||
#define VDSO_VERSION 2 | ||
#define VDSO_NAMES 0 | ||
#elif defined(__mips__) | ||
#define VDSO_VERSION 0 | ||
#define VDSO_NAMES 1 | ||
#define VDSO_32BIT 1 | ||
#elif defined(__sparc__) | ||
#define VDSO_VERSION 0 | ||
#define VDSO_NAMES 1 | ||
#define VDSO_32BIT 1 | ||
#elif defined(__i386__) | ||
#define VDSO_VERSION 0 | ||
#define VDSO_NAMES 1 | ||
#define VDSO_32BIT 1 | ||
#elif defined(__x86_64__) | ||
#define VDSO_VERSION 0 | ||
#define VDSO_NAMES 1 | ||
#elif defined(__riscv__) | ||
#define VDSO_VERSION 5 | ||
#define VDSO_NAMES 1 | ||
#define VDSO_32BIT 1 | ||
#else /* nds32 */ | ||
#define VDSO_VERSION 4 | ||
#define VDSO_NAMES 1 | ||
#define VDSO_32BIT 1 | ||
#endif | ||
|
||
static const char *versions[6] = { | ||
"LINUX_2.6", | ||
"LINUX_2.6.15", | ||
"LINUX_2.6.29", | ||
"LINUX_2.6.39", | ||
"LINUX_4", | ||
"LINUX_4.15", | ||
}; | ||
|
||
static const char *names[2][6] = { | ||
{ | ||
"__kernel_gettimeofday", | ||
"__kernel_clock_gettime", | ||
"__kernel_time", | ||
"__kernel_clock_getres", | ||
"__kernel_getcpu", | ||
#if defined(VDSO_32BIT) | ||
"__kernel_clock_gettime64", | ||
#endif | ||
}, | ||
{ | ||
"__vdso_gettimeofday", | ||
"__vdso_clock_gettime", | ||
"__vdso_time", | ||
"__vdso_clock_getres", | ||
"__vdso_getcpu", | ||
#if defined(VDSO_32BIT) | ||
"__vdso_clock_gettime64", | ||
#endif | ||
}, | ||
}; | ||
|
||
#endif /* __VDSO_CONFIG_H__ */ |
Oops, something went wrong.