[PATCH v3 0/8] tests: Allow tests to append tunables
Yury Khrustalev
yury.khrustalev@arm.com
Thu Apr 16 14:30:19 GMT 2026
The commit message in the 1st patch explains why and how. We plan
to use ability to combine test tunables to validate memory tagging
implementation in malloc: this will required added existing test
tunables to the memtag tunable.
Additionally, after this change testing for GCS and BTI support
will have significantly increased coverage becaused we will be able
to use ambient tunable to activate both BTI and GCS for most tests
except those that use their specific tunables by using:
GLIBC_TUNABLES=glibc.cpu.aarch64_bti=1:glibc.cpu.aarch64_gcs=3 \
make check
Passes regression on aarch64 and x86-64. OK for trunk?
---
Changes in v3:
- Reworked the whole thing to use *-TUNABLES += tunable=value
instead of +$(eval $(call tunable-add,...,tunable=value))
which wasn't ideal.
- Updated makefiles that use GLIBC_TUNABLES for tests. Not all
of them, since the old mechanism still works.
- v2: https://patchwork.sourceware.org/project/glibc/list/?series=59742
Changes in v2:
- Rebased.
- v1: https://patchwork.sourceware.org/project/glibc/list/?series=59144
---
base-commit: 0d6295e203
---
Yury Khrustalev (8):
tests: Allow tests to append tunables
tests: elf: Use new tunable handling
tests: gmon: Use new tunable handling
tests: misc: Use new tunable handling
tests: nptl: Use new tunable handling
tests: nptl: Remove unused code from makefile
tests: time: Use new tunable handling
tests: misc: Use new tunable handling for BTI and GCS tests
Rules | 40 +++++--
benchtests/Makefile | 2 +-
elf/Makefile | 8 +-
gmon/Makefile | 4 +-
malloc/Makefile | 10 +-
misc/Makefile | 4 +-
nptl/Makefile | 4 -
sysdeps/pthread/Makefile | 2 +-
sysdeps/unix/sysv/linux/Makefile | 4 +-
sysdeps/unix/sysv/linux/aarch64/Makefile | 129 ++++++++++++-----------
time/Makefile | 2 +-
11 files changed, 117 insertions(+), 92 deletions(-)
--
2.47.3
More information about the Libc-alpha
mailing list