about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.com>2015-04-17 10:58:31 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2015-05-26 10:10:36 -0300
commitf534255e4d276ee7b20b45637d16a00b122e5df3 (patch)
treeabbedc3d05bdfb526d0171fccd87fb84ecb1acd9 /ChangeLog
parent829a679fac1fe173e81cb2c08204d2da86cf3f3a (diff)
downloadglibc-f534255e4d276ee7b20b45637d16a00b122e5df3.tar.gz
glibc-f534255e4d276ee7b20b45637d16a00b122e5df3.tar.xz
glibc-f534255e4d276ee7b20b45637d16a00b122e5df3.zip
Consolidate vDSO macros and usage
This patch consolidate the Linux vDSO define and usage across all ports
that uses it.  The common vDSO definitions and calling through
{INLINE/INTERNAL}_VSYSCALL macros are moved to a common header
sysdep-vdso.h and vDSO name declaration and prototype is defined
using a common macro.

Also PTR_{MANGLE,DEMANGLE} is added to ports that does not use them
for vDSO calls (aarch64, powerpc, s390, and tile) and thus it will
reflect in code changes.  For ports that already implement pointer
mangling/demangling in vDSO system (i386, x32, x86_64) this patch
is mainly a code refactor.

Checked on x32, x86_64, x32, ppc64le, and aarch64.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog121
1 files changed, 121 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d7ad59f675..f06cb9487d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,124 @@
+2015-05-26  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
+
+	* sysdeps/unix/sysv/linux/aarch64/gettimeofday.c (HAVE_VSYSCALL):
+	Define and include sysdep-vdso.h.
+	* sysdeps/unix/sysv/linux/s390/gettimeofday.c (HAVE_VSYSCALL):
+	Likewise.
+	* sysdeps/unix/sysv/linux/tile/gettimeofday.c (HAVE_VSYSCALL):
+	Likewise.
+	* sysdeps/unix/sysv/linux/aarch64/init-first.c (__vdso_gettimeofday):
+	Define with VDSO_SYMBOL and use PTR_MANGLE.
+	(__vdso_clock_gettime): Likewise.
+	(__vdso_clock_getres): Likewise.
+	(_libc_vdso_platform_setup): Likewise.
+	* sysdeps/unix/sysv/linux/i386/init-first.c (__vdso_clock_gettime):
+	Likewise.
+	(_libc_vdso_platform_setup): Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/init-first.c (__vdso_gettimeofday):
+	Likewise.
+	(__vdso_clock_gettime): Likewise.
+	(__vdso_clock_getres): Likewise.
+	(__vdso_get_tbfreq): Likewise.
+	(__vdso_getcpu): Likewise.
+	(__vdso_time): Likewise.
+	(__vdso_sigtramp_rt64): Likewise.
+	(__vdso_signtramp32): Likewise.
+	(__vdso_sigtramp_rt32): Likewise.
+	(_libc_vdso_platform_setup): Likewise.
+	* sysdeps/unix/sysv/linux/s390/init-first.c (__vdso_gettimeofay):
+	Likewise.
+	(__vdso_clock_gettime): Likewise.
+	(__vdso_clock_getres): Likewise.
+	(_libc_vdso_platform_setup): Likewise.
+	* sysdeps/unix/sysv/linux/tile/init-first.c (__vdso_gettimeofday):
+	Likewise.
+	(__vdso_clock_gettime): Likewise.
+	(_libc_vdso_platform_setup): Likewise.
+	* sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_clock_gettime):
+	Likewise.
+	(__vdso_getcpu): Likewise.
+	* sysdeps/unix/sysv/linux/aarch64/libc-vdso.h (__vdso_gettimeoday):
+	Use VDSO_SYMBOL macro to define.
+	(__vdso_clock_gettime): Likewise.
+	(__vdso_clock_getres): Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/libc-vdso.h (__vdso_gettimeofday):
+	Likewise.
+	(__vdso_clock_gettime): Likewise.
+	(__vdso_clock_getres): Likewise.
+	(__vdso_get_tbfreq): Likewise.
+	(__vdso_getcpu): Likewise.
+	(__vdso_time): Likewise.
+	(__vdso_sigtramp_rt64): Likewise.
+	(__vdso_signtramp32): Likewise.
+	(__vdso_sigtramp_rt32): Likewise.
+	* sysdeps/unix/sysv/linux/s390/libc-vdso.h (__vdso_gettimeofday):
+	Likewise.
+	(__vdso_clock_gettime): Likewise.
+	(__vdso_clock_getres): Likewise.
+	* sysdeps/unix/sysv/linux/tile/libc-vdso.h (__vdso_gettimeofday):
+	Likewise.
+	(__vdso_clock_gettime): Likewise.
+	* sysdeps/unix/sysv/linux/x86/libc-vdso.h (__vdso_clock_gettime):
+	Likewise.
+	* sysdeps/unix/sysv/linux/aarch64/sysdep.h (INLINE_VSYSCALL):  Remove
+	macro.
+	(INTERNAL_VSYSCALL): Likewise.
+	* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h (INLINE_VSYSCALL):
+	Remove macro.
+	(INTERNAL_VSYSCALL): Likewise.
+	(INTERNAL_VSYSCALL_NCS): Likewise.
+	(INTERNAL_VSYSCALL_CALL): New macro.
+	(INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
+	* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h (INLINE_VSYSCALL):
+	Likewise.
+	(INTERNAL_VSYSCALL): Likewise.
+	(INTERNAL_VSYSCALL_NCS): Likewise.
+	(INTERNAL_VSYSCALL_CALL): New macro.
+	(INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use PTR_DEMANGLE.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
+	(INLINE_VSYSCALL): Remove macro.
+	(INTERNAL_VSYSCALL): Remove macro.
+	(INTERNAL_VSYSCALL_NCS): Remove macro.
+	(INTERNAL_VSYSCALL_CALL): New macro.
+	(INTERNAL_VSYSCALL_CALL_TYPE): New macro.
+	(INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL.
+	(INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
+	(HAVE_CLOCK_GETRES_VSYSCALL): New define.
+	(HAVE_CLOCK_GETTIME_VSYSCALL): Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
+	(INLINE_VSYSCALL): Remove macro.
+	(INTERNAL_VSYSCALL): Likewise.
+	(INTERNAL_VSYSCALL_NCS): Likewise.
+	(INTERNAL_VSYSCALL_CALL): New macro.
+	(INTERNAL_VSYSCALL_CALL_TYPE): Likewise.
+	(INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Use INTERNAL_VSYSCALL_CALL and
+	PTR_DEMANGLE on vDSO pointer.
+	(INTERNAL_VSYSCALL_NCS_TYPE): Likewise.
+	* sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Remove
+	macro.
+	(INTERNAL_SYSCALL): Likewise.
+	(INTERNAL_VSYSCALL_NCS): Remove macro.
+	(INTERNAL_VSYSCALL_CALL): New macro.
+	* sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_VSYSCALL):
+	Remove macro.
+	(INTERNAL_VSYSCALL): Likewise.
+	* sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: Include
+	sysdep-vdso.h instead of libc-vdso.h.
+	* sysdeps/unix/sysv/linux/clock_getres.c (INTERNAL_VSYSCALL): Remove
+	definition.
+	(INLINE_VSYSCALL): Likewise.
+	(HAVE_VSYSCALL) [HAVE_CLOCK_GETRES_VSYSCALL]: Define.
+	* sysdeps/unix/sysv/linux/clock_gettime.c (INTERNAL_VSYSCALL): Remove
+	definition.
+	(INLINE_VSYSCALL): Likewise.
+	(INTERNAL_VSYSCALL): Likewise.
+	(HAVE_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
+	* sysdeps/unix/sysv/linux/timespec_get.c
+	(INTERNAL_VSYSCALL) [HAVE_CLOCK_GETTIME_VSYSCALL]: Define.
+	(timespec_get): Use ANSI prototype.
+	* sysdeps/unix/sysv/linux/sysdep-vdso.h: New file: default vDSO macros
+	and definition for Linux.
+
 2015-05-25  Andrew Senkevich  <andrew.senkevich@intel.com>
 
 	* elf/Makefile (localplt-built-dso): libmvec added to localplt test.