public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* V4 [PATCH 0/2] ld.so: Add --list-tunables to print tunable values
@ 2020-10-31 15:44 H.J. Lu
  2020-10-31 15:44 ` V4 [PATCH 1/2] x86: Move x86 processor cache info to cpu_features H.J. Lu
  2020-10-31 15:44 ` V4 [PATCH 2/2] ld.so: Add --list-tunables to print tunable values H.J. Lu
  0 siblings, 2 replies; 12+ messages in thread
From: H.J. Lu @ 2020-10-31 15:44 UTC (permalink / raw)
  To: libc-alpha; +Cc: Florian Weimer, Carlos O'Donell

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-02-02 18:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-31 15:44 V4 [PATCH 0/2] ld.so: Add --list-tunables to print tunable values H.J. Lu
2020-10-31 15:44 ` V4 [PATCH 1/2] x86: Move x86 processor cache info to cpu_features H.J. Lu
2021-01-14 14:13   ` Adhemerval Zanella
2021-01-14 19:28     ` V5 " H.J. Lu
2020-10-31 15:44 ` V4 [PATCH 2/2] ld.so: Add --list-tunables to print tunable values H.J. Lu
2021-01-14 18:35   ` Adhemerval Zanella
2021-01-14 22:25     ` V5 " H.J. Lu
2021-01-15 12:47       ` Adhemerval Zanella
2021-02-02 10:59       ` Andreas Schwab
2021-02-02 17:36         ` [PATCH] ld.so: Unset glibc tunables for --list-tunables test H.J. Lu
2021-02-02 18:07           ` Andreas Schwab
2021-02-02 18:12             ` [PATCH] tst-rtld-list-tunables.sh: Unset glibc tunables H.J. Lu

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).