This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] sysdeps: Add clock_gettime64 vDSO
- From: "Maciej W. Rozycki" <macro at wdc dot com>
- To: Alistair Francis <alistair dot francis at wdc dot com>
- Cc: libc-alpha at sourceware dot org, alistair23 at gmail dot com
- Date: Thu, 19 Sep 2019 13:26:05 +0100 (BST)
- Subject: Re: [PATCH] sysdeps: Add clock_gettime64 vDSO
- Ironport-sdr: usOUefhWOFQM5TreuKXyicCavTVkbRCopeHZ//SQ50CHqM4mlupZlZU6yqzk0ePQ+E2Sx/WEyo yTuk3MRjvosXDJ28kaduW1m5NBjLInSjOCGOfxM91x7wejCHkdnXY8J00x1butdw5c0JnuHoyU Ch0+MDBGEoDD6dTz7FxpYtYKcZRt+K1TtGqss22Tme7ujKXvxNLfNUJ3nSpztoekXQfkScgflR ee6u+1HTcb0igH6MRWIuSqwb+JG0Ptl2Bnu7/nrQlLo1h5qH+KfWelj63qRd3NaBt9TaFWS8Mb 6Q8=
- Ironport-sdr: RpedFJlvlYUbFyt/7AYPwcQSDUxaSvEjRkIOgg+qEUgSo1bZy2ID7NFTiy8AOvLPGLDAsYE2oL JZrrCHLywRB6OYKYNFsZY0KObt1rc2e12TiC7SAR6oY4ElA/Bgft1Uabh59NPn9wHDBIgq+HuB lKNT8DIqg4m2clyZ97Ewe8guCYDU3zTzkX5nCarR83uMLETNnc5I7FDr26sgJPhjHU3TpdBXgJ f7QDNmNCD9ksA0haB07U23+fZxj1rQiC6itqXt0Rsr4Owl6gZhbr5V75pG3RPUDtgxlDaH0Ivj +gP5P2yRCBPoWOfSTmaGMIOK
- Ironport-sdr: 07t0r6lmjFQnelO/KSj3sle3wmMYHpfYqcLrRt0KHvAs2CKWkI4F1xplR1Hz5xTg+Swb/8QxVT Jp54sHZegeXB9BEcSfZpV7A31XL37z2IwagiUS+CwWek0ZeXVDdUC72QOyCiYXelcFQR4mp6r3 JAn1WrFfOy2qzDeZqvqy8KsQmtv8HG/uqGSbUKBifFj3I3cthzcNNaebRdaVS5oybo4q3H6uVB lGgt0I3Cy5WD+x8IqGEWAN4X8Bhbjfi5oPv6Wh/F+n7pGpHNeHKte56lbU1lm9u3ttRb7fkqQC Tjw=
- References: <20190918235554.15873-1-alistair.francis@wdc.com>
- Wdcironportexception: Internal
On Wed, 18 Sep 2019, Alistair Francis wrote:
> Add support for the clock_gettim64 vDSO calls.
>
> 2019-09-18 Alistair Francis <alistair.francis@wdc.com>
>
> * sysdeps/unix/sysv/linux/init-first.c: Add clock_gettime64
> vDSO.
> * sysdeps/unix/sysv/linux/libc-vdso.h: Likewise.
FYI, I believe this requires a complementing change like below.
Maciej
---
sysdeps/unix/sysv/linux/riscv/sysdep.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
glibc-clock-gettime-vdso-update.diff
Index: glibc/sysdeps/unix/sysv/linux/riscv/sysdep.h
===================================================================
--- glibc.orig/sysdeps/unix/sysv/linux/riscv/sysdep.h
+++ glibc/sysdeps/unix/sysv/linux/riscv/sysdep.h
@@ -199,7 +199,11 @@
/* List of system calls which are supported as vsyscalls. */
# define HAVE_CLOCK_GETRES_VSYSCALL "__vdso_clock_getres"
-# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime"
+# if __riscv_xlen == 32
+# define HAVE_CLOCK_GETTIME64_VSYSCALL "__vdso_clock_gettime64"
+# else
+# define HAVE_CLOCK_GETTIME_VSYSCALL "__vdso_clock_gettime"
+# endif
# define HAVE_GETTIMEOFDAY_VSYSCALL "__vdso_gettimeofday"
# define HAVE_GETCPU_VSYSCALL "__vdso_getcpu"