[PATCH v4 0/8] tests: Allow tests to append tunables
Yury Khrustalev
yury.khrustalev@arm.com
Tue Apr 21 14:37:56 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=2 \
make check
Passes regression on aarch64 and x86-64. OK for trunk?
---
Changes in v4:
- Use '$(subst $(empty) ,:,$(strip $(FOO)))' instead of 'defined'
makefile macro to avoid issues with variable expantion.
- Fixed grammar in the comment message.
- Fixed tests that would fail if ambient GLIBC_TUNABLES env
variable is be used with the aarch64_gcs tunable.
- v3: https://patchwork.sourceware.org/project/glibc/list/?series=59873
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: e3e8f814e5
---
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 | 32 ++++-
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 +++++++++---------
.../linux/aarch64/tst-gcs-audit-skeleton.c | 2 +-
time/Makefile | 2 +-
12 files changed, 110 insertions(+), 93 deletions(-)
--
2.47.3
More information about the Libc-alpha
mailing list