V3 [PATCH 0/2] ld.so: Add --list-tunables to print tunable values

H.J. Lu hjl.tools@gmail.com
Sat Oct 17 01:02:05 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.

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            | 384 ++-----------------------
 sysdeps/x86/cpu-features.c         |  35 +--
 sysdeps/x86/dl-cacheinfo.h         | 446 +++++++++++++++++++++++++++++
 sysdeps/x86/include/cpu-features.h |  22 ++
 13 files changed, 652 insertions(+), 398 deletions(-)

-- 
2.26.2



More information about the Libc-alpha mailing list