[PATCH 0/3] Add --with-test-tunables configure option
Yury Khrustalev
yury.khrustalev@arm.com
Fri Nov 6 10:42:17 GMT 2026
Allow propagating global tunables for all tests excluding the tests
that override tunables in makefiles and tests with custom rules for
generating .out files.
This is very useful for testing Glibc on hosts that support BTI, MTE,
and other architecture features.
Tunables configured via this option will be prepended to the
GLIBC_TUNABLES environment variable used in the test command.
The ambient environment variable GLIBC_TUNABLES will be appended
to that and, finally, the test's own tunables will be appended to
that. This determines override rules in cases the same tunable is
defined in several places:
Test's own tunables override ambient environment variable
which in turn overrides tunables configured at configure time.
Tested on aarch64-linux-gnu, armhf-linux-gnu, i686-linux-gnu,
x86_64-linux-gnu and no regression has been found.
OK for trunk?
---
Yury Khrustalev (3):
tests: x86: Use new tunable handling
Add --with-test-tunables configure option
Rules: Add check for test tunables in *-ENV
INSTALL | 6 ++
NEWS | 2 +
Rules | 12 ++--
config.make.in | 1 +
configure | 17 ++++++
configure.ac | 10 ++++
manual/install.texi | 6 ++
sysdeps/unix/sysv/linux/Makefile | 14 ++---
sysdeps/unix/sysv/linux/aarch64/Makefile | 8 +--
.../sysv/linux/aarch64/tst-thp-size-mod.S | 24 ++++++++
.../unix/sysv/linux/aarch64/tst-thp-size.S | 22 +++++++
sysdeps/x86/Makefile | 10 ++--
sysdeps/x86_64/64/Makefile | 2 +-
sysdeps/x86_64/Makefile | 57 ++++++++++---------
14 files changed, 142 insertions(+), 49 deletions(-)
create mode 100644 sysdeps/unix/sysv/linux/aarch64/tst-thp-size-mod.S
create mode 100644 sysdeps/unix/sysv/linux/aarch64/tst-thp-size.S
base-commit: 00fe1d5d46b18edf1380fcd3236de9e80b19075d
--
2.47.3
More information about the Libc-alpha
mailing list