about summary refs log tree commit diff
path: root/elf/Versions
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-11-23 14:29:14 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-11-29 09:30:00 -0300
commita4c3f5f46e850c977cda81c251036475aab8313c (patch)
tree6463279ee78a80d5aebeb1f351b2fb2d8c447b6a /elf/Versions
parent9469261cf1924d350feeec64d2c80cafbbdcdd4d (diff)
downloadglibc-a4c3f5f46e850c977cda81c251036475aab8313c.tar.gz
glibc-a4c3f5f46e850c977cda81c251036475aab8313c.tar.xz
glibc-a4c3f5f46e850c977cda81c251036475aab8313c.zip
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>
Diffstat (limited to 'elf/Versions')
-rw-r--r--elf/Versions1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/Versions b/elf/Versions
index 4614acea3e..1591031da9 100644
--- a/elf/Versions
+++ b/elf/Versions
@@ -77,6 +77,7 @@ ld {
     _dl_signal_error;
 
     # Set value of a tunable.
+    __tunable_is_initialized;
     __tunable_get_val;
   }
 }