V4 [PATCH 0/2] ld.so: Add --list-tunables to print tunable values
H.J. Lu
hjl.tools@gmail.com
Sat Oct 31 15:44:35 GMT 2020
Tunable values and their minimum/maximum values are invisible to users.
This patch set adds --list-tunables to ld.so to print tunable values
with their minimum and maximum values.
--list-tunables works on i686 and x86-64. Please test --list-tunables on
your native processors. users/hjl/tunable/master branch at:
https://gitlab.com/x86-glibc/glibc/-/commits/users/hjl/tunable/master
contains the same set of patches.
On x86, to make cache info accessible to --list-tunables, they are moved
to cpu_features in ld.so and TUNABLE_SET_WITH_BOUNDS is used to update
tunable bounds.
Rebased on top of
commit cb3a749a22a55645dc6a52659eea765300623f98
Author: Florian Weimer <fweimer@redhat.com>
Date: Wed Oct 28 15:53:26 2020 +0100
x86: Restore processing of cache size tunables in init_cacheinfo
H.J. Lu (2):
x86: Move x86 processor cache info to cpu_features
ld.so: Add --list-tunables to print tunable values
NEWS | 2 +
elf/Makefile | 8 +
elf/dl-main.h | 2 +-
elf/dl-tunables.c | 36 +++
elf/dl-tunables.h | 2 +
elf/dl-usage.c | 7 +-
elf/rtld.c | 23 ++
manual/tunables.texi | 37 +++
sysdeps/x86/cacheinfo.c | 46 ++-
sysdeps/x86/cacheinfo.h | 400 ++-----------------------
sysdeps/x86/cpu-features.c | 35 +--
sysdeps/x86/dl-cacheinfo.h | 460 +++++++++++++++++++++++++++++
sysdeps/x86/include/cpu-features.h | 22 ++
13 files changed, 666 insertions(+), 414 deletions(-)
--
2.28.0
More information about the Libc-alpha
mailing list