diff mbox series

tst-rtld-list-tunables.sh: Unset glibc tunables

Message ID CAMe9rOp8kcdVTeFRuiZoKz1jQaWM6195YviZHhXN9RmmLvnh=g@mail.gmail.com
State New
Headers show
Series tst-rtld-list-tunables.sh: Unset glibc tunables | expand

Commit Message

H.J. Lu Feb. 2, 2021, 6:12 p.m. UTC
On Tue, Feb 2, 2021 at 10:07 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
>
> On Feb 02 2021, H.J. Lu wrote:
>
> > From 321acb682702dd6ee273207b7ce832f8133abbfa Mon Sep 17 00:00:00 2001
> > From: "H.J. Lu" <hjl.tools@gmail.com>
> > Date: Tue, 2 Feb 2021 09:31:56 -0800
> > Subject: [PATCH] ld.so: Unset glibc tunables for --list-tunables test
> >
> > Unset glibc tunables and their aliases for --list-tunables test.
>
> Ok.  I think the subject should use tst-rtld-list-tunables.sh as the
> topic prefix, since it doesn't change ld.so.

Fixed.

> Andreas.

Here is the updated patch I am checking in.

Thanks.
diff mbox series

Patch

From b711bfe5480bf55ae0cb18e03defc1e2a405e1b6 Mon Sep 17 00:00:00 2001
From: "H.J. Lu" <hjl.tools@gmail.com>
Date: Tue, 2 Feb 2021 09:31:56 -0800
Subject: [PATCH] tst-rtld-list-tunables.sh: Unset glibc tunables

Unset glibc tunables and their aliases for --list-tunables test.
---
 elf/tst-rtld-list-tunables.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/elf/tst-rtld-list-tunables.sh b/elf/tst-rtld-list-tunables.sh
index e7bbdde949..78f4ed2ebb 100755
--- a/elf/tst-rtld-list-tunables.sh
+++ b/elf/tst-rtld-list-tunables.sh
@@ -26,6 +26,17 @@  run_program_env=$3
 LC_ALL=C
 export LC_ALL
 
+# Unset tunables and their aliases.
+GLIBC_TUNABLES=
+MALLOC_ARENA_MAX=
+MALLOC_ARENA_TEST=
+MALLOC_CHECK_=
+MALLOC_MMAP_MAX_=
+MALLOC_MMAP_THRESHOLD_=
+MALLOC_PERTURB_=
+MALLOC_TOP_PAD_=
+MALLOC_TRIM_THRESHOLD_=
+
 ${test_wrapper_env} \
 ${run_program_env} \
 $rtld --list-tunables \
-- 
2.29.2