diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-07-12 06:04:53 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-01-15 05:59:10 -0800 |
commit | 86f65dffc2396d408beb628f1cad2b8f63e197bd (patch) | |
tree | 70d71a492800a6b4838ff2232ecc315d353a469b /elf/Makefile | |
parent | cc528f9a7e51f769ea79a9c413af417671bcc695 (diff) | |
download | glibc-86f65dffc2396d408beb628f1cad2b8f63e197bd.tar.gz glibc-86f65dffc2396d408beb628f1cad2b8f63e197bd.tar.xz glibc-86f65dffc2396d408beb628f1cad2b8f63e197bd.zip |
ld.so: Add --list-tunables to print tunable values
Pass --list-tunables to ld.so to print tunables with min and max values. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'elf/Makefile')
-rw-r--r-- | elf/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/elf/Makefile b/elf/Makefile index c41d11693b..5e7f938e2d 100644 --- a/elf/Makefile +++ b/elf/Makefile @@ -45,6 +45,10 @@ dl-routines += dl-tunables tunables-type = $(addprefix TUNABLES_FRONTEND_,$(have-tunables)) CPPFLAGS-dl-tunables.c += -DTUNABLES_FRONTEND=$(tunables-type) +ifeq (yesyes,$(build-shared)$(run-built-tests)) +tests-special += $(objpfx)list-tunables.out +endif + # Make sure that the compiler does not insert any library calls in tunables # code paths. ifeq (yes,$(have-loop-to-function)) @@ -1896,3 +1900,10 @@ $(objpfx)tst-glibc-hwcaps-mask.out: \ # Generic dependency for sysdeps implementation of # tst-glibc-hwcaps-cache. $(objpfx)tst-glibc-hwcaps-cache.out: $(objpfx)tst-glibc-hwcaps + +$(objpfx)list-tunables.out: tst-rtld-list-tunables.sh $(objpfx)ld.so + $(SHELL) $< $(objpfx)ld.so '$(test-wrapper-env)' \ + '$(run_program_env)' > $(objpfx)/tst-rtld-list-tunables.out + cmp tst-rtld-list-tunables.exp \ + $(objpfx)/tst-rtld-list-tunables.out > $@; \ + $(evaluate-test) |