public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Siddhesh Poyarekar <siddhesh@sourceware.org>
To: libc-alpha@sourceware.org
Cc: adhemerval.zanella@linaro.org
Subject: [PATCH v2 0/5] aarch64: Allow overriding HWCAP_CPUID feature check
Date: Thu, 18 May 2017 20:07:00 -0000	[thread overview]
Message-ID: <1495138038-32212-1-git-send-email-siddhesh@sourceware.org> (raw)

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

             reply	other threads:[~2017-05-18 20:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 20:07 Siddhesh Poyarekar [this message]
2017-05-18 20:07 ` [PATCH 2/5] tunables: Add LD_HWCAP_MASK to tunables Siddhesh Poyarekar
2017-05-22 13:20   ` Adhemerval Zanella
2017-05-18 20:07 ` [PATCH 1/5] tunables: Add hooks to get and update tunables Siddhesh Poyarekar
2017-05-22 14:07   ` Adhemerval Zanella
2017-05-18 20:07 ` [PATCH 3/5] tunables: Use glibc.tune.hwcap_mask tunable instead of _dl_hwcap_mask Siddhesh Poyarekar
2017-05-22 14:51   ` Adhemerval Zanella
2017-05-18 20:07 ` [PATCH 5/5] aarch64: Allow overriding HWCAP_CPUID feature check using HWCAP_MASK Siddhesh Poyarekar
2017-05-19  9:49   ` Szabolcs Nagy
2017-05-19 17:44     ` Siddhesh Poyarekar
2017-05-19 22:12       ` Szabolcs Nagy
2017-05-20  3:32         ` Siddhesh Poyarekar
2017-05-20 12:35           ` Szabolcs Nagy
2017-05-20 13:23             ` Siddhesh Poyarekar
2017-05-18 20:07 ` [PATCH 4/5] Delay initialization of CPU features struct in static binaries Siddhesh Poyarekar
2017-05-25  3:05   ` H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1495138038-32212-1-git-send-email-siddhesh@sourceware.org \
    --to=siddhesh@sourceware.org \
    --cc=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).