This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 0/5] aarch64: Allow overriding HWCAP_CPUID feature check


Hi,

This is take 2 of the remaining patches in the set that allows overriding
aarch64 ifunc using the LD_HWCAP_MASK.  This set gets the LD_HWCAP_MASK into
tunables so that it can be read early enough to influence tunables behaviour.
In the process, the routines to detect CPU features have been delayed in x86
and aarch64 so that they can be influenced by tunables.

Changes from previous version:

 - Add documentation for the new tunable and for new tunables API
 - Fixed errors that Adhemerval noted

Siddhesh Poyarekar (5):
  tunables: Add hooks to get and update tunables
  tunables: Add LD_HWCAP_MASK to tunables
  tunables: Use glibc.tune.hwcap_mask tunable instead of _dl_hwcap_mask
  Delay initialization of CPU features struct in static binaries
  aarch64: Allow overriding HWCAP_CPUID feature check using HWCAP_MASK

 README.tunables                                | 27 ++++++++++++++++
 csu/libc-start.c                               |  6 ++++
 elf/dl-cache.c                                 |  9 +++++-
 elf/dl-hwcaps.c                                | 15 +++++++--
 elf/dl-support.c                               |  2 ++
 elf/dl-tunables.c                              | 44 +++++++++++++++++++++-----
 elf/dl-tunables.h                              | 42 +++++++++++++++++-------
 elf/dl-tunables.list                           |  7 ++++
 elf/rtld.c                                     |  4 +++
 manual/tunables.texi                           | 22 +++++++++++++
 scripts/gen-tunables.awk                       |  1 +
 sysdeps/generic/ldsodefs.h                     |  2 ++
 sysdeps/sparc/sparc32/dl-machine.h             |  8 ++++-
 sysdeps/unix/sysv/linux/aarch64/cpu-features.c | 15 ++++++---
 sysdeps/unix/sysv/linux/aarch64/libc-start.c   | 23 +++-----------
 sysdeps/x86/cpu-features.c                     |  4 +++
 sysdeps/x86/libc-start.c                       | 23 +++-----------
 17 files changed, 190 insertions(+), 64 deletions(-)

-- 
2.7.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]