[12/16] linux: Enable vDSO clock_gettime64 for i386

Message ID 20191217214728.2886-12-adhemerval.zanella@linaro.org
State Dropped
Headers

Commit Message

Adhemerval Zanella Dec. 17, 2019, 9:47 p.m. UTC
  It was added on Linux 5.3 (commit 22ca962288c0a).

Checked on i686-linux-gnu with 5.3.0 kernel.
---
 sysdeps/unix/sysv/linux/i386/sysdep.h | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Siddhesh Poyarekar Jan. 2, 2020, 1:08 p.m. UTC | #1
On 18/12/19 3:17 am, Adhemerval Zanella wrote:
> It was added on Linux 5.3 (commit 22ca962288c0a).
> 
> Checked on i686-linux-gnu with 5.3.0 kernel.
> ---
>  sysdeps/unix/sysv/linux/i386/sysdep.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
> index b2e750d490..5156587d95 100644
> --- a/sysdeps/unix/sysv/linux/i386/sysdep.h
> +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
> @@ -314,6 +314,7 @@ struct libc_do_syscall_args
>  
>  /* List of system calls which are supported as vsyscalls.  */
>  # define HAVE_CLOCK_GETTIME_VSYSCALL    "__vdso_clock_gettime"
> +# define HAVE_CLOCK_GETTIME64_VSYSCALL  "__vdso_clock_gettime64"
>  # define HAVE_GETTIMEOFDAY_VSYSCALL     "__vdso_gettimeofday"
>  # define HAVE_TIME_VSYSCALL             "__vdso_time"
>  # define HAVE_CLOCK_GETRES_VSYSCALL     "__vdso_clock_getres"
> 

OK.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
  
Siddhesh Poyarekar Jan. 2, 2020, 1:08 p.m. UTC | #2
On 18/12/19 3:17 am, Adhemerval Zanella wrote:
> It was added on Linux 5.3 (commit 22ca962288c0a).
> 
> Checked on i686-linux-gnu with 5.3.0 kernel.
> ---
>  sysdeps/unix/sysv/linux/i386/sysdep.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
> index b2e750d490..5156587d95 100644
> --- a/sysdeps/unix/sysv/linux/i386/sysdep.h
> +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
> @@ -314,6 +314,7 @@ struct libc_do_syscall_args
>  
>  /* List of system calls which are supported as vsyscalls.  */
>  # define HAVE_CLOCK_GETTIME_VSYSCALL    "__vdso_clock_gettime"
> +# define HAVE_CLOCK_GETTIME64_VSYSCALL  "__vdso_clock_gettime64"
>  # define HAVE_GETTIMEOFDAY_VSYSCALL     "__vdso_gettimeofday"
>  # define HAVE_TIME_VSYSCALL             "__vdso_time"
>  # define HAVE_CLOCK_GETRES_VSYSCALL     "__vdso_clock_getres"
> 

OK.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
  

Patch

diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h
index b2e750d490..5156587d95 100644
--- a/sysdeps/unix/sysv/linux/i386/sysdep.h
+++ b/sysdeps/unix/sysv/linux/i386/sysdep.h
@@ -314,6 +314,7 @@  struct libc_do_syscall_args
 
 /* List of system calls which are supported as vsyscalls.  */
 # define HAVE_CLOCK_GETTIME_VSYSCALL    "__vdso_clock_gettime"
+# define HAVE_CLOCK_GETTIME64_VSYSCALL  "__vdso_clock_gettime64"
 # define HAVE_GETTIMEOFDAY_VSYSCALL     "__vdso_gettimeofday"
 # define HAVE_TIME_VSYSCALL             "__vdso_time"
 # define HAVE_CLOCK_GETRES_VSYSCALL     "__vdso_clock_getres"