~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/testing/selftests/vDSO/vdso_config.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 */
  2 /*
  3  * vdso_config.h: Configuration options for vDSO tests.
  4  * Copyright (c) 2019 Arm Ltd.
  5  */
  6 #ifndef __VDSO_CONFIG_H__
  7 #define __VDSO_CONFIG_H__
  8 
  9 /*
 10  * Each architecture exports its vDSO implementation with different names
 11  * and a different version from the others, so we need to handle it as a
 12  * special case.
 13  */
 14 #if defined(__arm__)
 15 #define VDSO_VERSION            0
 16 #define VDSO_NAMES              1
 17 #define VDSO_32BIT              1
 18 #elif defined(__aarch64__)
 19 #define VDSO_VERSION            3
 20 #define VDSO_NAMES              0
 21 #elif defined(__powerpc64__)
 22 #define VDSO_VERSION            1
 23 #define VDSO_NAMES              0
 24 #elif defined(__powerpc__)
 25 #define VDSO_VERSION            1
 26 #define VDSO_NAMES              0
 27 #define VDSO_32BIT              1
 28 #elif defined (__s390__) && !defined(__s390x__)
 29 #define VDSO_VERSION            2
 30 #define VDSO_NAMES              0
 31 #define VDSO_32BIT              1
 32 #elif defined (__s390x__)
 33 #define VDSO_VERSION            2
 34 #define VDSO_NAMES              0
 35 #elif defined(__mips__)
 36 #define VDSO_VERSION            0
 37 #define VDSO_NAMES              1
 38 #define VDSO_32BIT              1
 39 #elif defined(__sparc__)
 40 #define VDSO_VERSION            0
 41 #define VDSO_NAMES              1
 42 #define VDSO_32BIT              1
 43 #elif defined(__i386__)
 44 #define VDSO_VERSION            0
 45 #define VDSO_NAMES              1
 46 #define VDSO_32BIT              1
 47 #elif defined(__x86_64__)
 48 #define VDSO_VERSION            0
 49 #define VDSO_NAMES              1
 50 #elif defined(__riscv__) || defined(__riscv)
 51 #define VDSO_VERSION            5
 52 #define VDSO_NAMES              1
 53 #if __riscv_xlen == 32
 54 #define VDSO_32BIT              1
 55 #endif
 56 #elif defined(__loongarch__)
 57 #define VDSO_VERSION            6
 58 #define VDSO_NAMES              1
 59 #endif
 60 
 61 static const char *versions[7] = {
 62         "LINUX_2.6",
 63         "LINUX_2.6.15",
 64         "LINUX_2.6.29",
 65         "LINUX_2.6.39",
 66         "LINUX_4",
 67         "LINUX_4.15",
 68         "LINUX_5.10"
 69 };
 70 
 71 static const char *names[2][6] = {
 72         {
 73                 "__kernel_gettimeofday",
 74                 "__kernel_clock_gettime",
 75                 "__kernel_time",
 76                 "__kernel_clock_getres",
 77                 "__kernel_getcpu",
 78 #if defined(VDSO_32BIT)
 79                 "__kernel_clock_gettime64",
 80 #endif
 81         },
 82         {
 83                 "__vdso_gettimeofday",
 84                 "__vdso_clock_gettime",
 85                 "__vdso_time",
 86                 "__vdso_clock_getres",
 87                 "__vdso_getcpu",
 88 #if defined(VDSO_32BIT)
 89                 "__vdso_clock_gettime64",
 90 #endif
 91         },
 92 };
 93 
 94 #endif /* __VDSO_CONFIG_H__ */
 95 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php