From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 115617 invoked by alias); 18 May 2017 20:07:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 115530 invoked by uid 89); 18 May 2017 20:07:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.1 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL autolearn=ham version=3.3.2 spammy= X-HELO: homiemail-a68.g.dreamhost.com From: Siddhesh Poyarekar 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 Message-Id: <1495138038-32212-1-git-send-email-siddhesh@sourceware.org> X-SW-Source: 2017-05/txt/msg00570.txt.bz2 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