elf: Add a way to check if tunable is set (BZ 27069)
commita4c3f5f46e850c977cda81c251036475aab8313c
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 23 Nov 2023 17:29:14 +0000 (23 14:29 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 29 Nov 2023 12:30:00 +0000 (29 09:30 -0300)
tree6463279ee78a80d5aebeb1f351b2fb2d8c447b6a
parent9469261cf1924d350feeec64d2c80cafbbdcdd4d
elf: Add a way to check if tunable is set (BZ 27069)

The patch adds two new macros, TUNABLE_GET_DEFAULT and TUNABLE_IS_INITIALIZED,
here the former get the default value with a signature similar to
TUNABLE_GET, while the later returns whether the tunable was set by
the environment variable.

Checked on x86_64-linux-gnu.
Reviewed-by: DJ Delorie <dj@redhat.com>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
elf/Versions
elf/dl-tunable-types.h
elf/dl-tunables.c
elf/dl-tunables.h
elf/dl-tunables.list
scripts/gen-tunables.awk