elf: Add a way to check if tunable is set (BZ 27069)
[glibc.git] / elf / dl-tunables.list
blob1b23fc94733c3df807adedd62832c686f761397a
1 # Copyright (C) 2016-2023 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library; if not, see
16 # <https://www.gnu.org/licenses/>.
18 # Allowed attributes for tunables:
20 # type: Defaults to STRING
21 # minval: Optional minimum acceptable value
22 # maxval: Optional maximum acceptable value
23 # default: Optional default value (if not specified it will be 0 or "")
24 # env_alias: An alias environment variable
26 glibc {
27   malloc {
28     check {
29       type: INT_32
30       minval: 0
31       maxval: 3
32       env_alias: MALLOC_CHECK_
33     }
34     top_pad {
35       type: SIZE_T
36       env_alias: MALLOC_TOP_PAD_
37       default: 131072
38     }
39     perturb {
40       type: INT_32
41       minval: 0
42       maxval: 0xff
43       env_alias: MALLOC_PERTURB_
44     }
45     mmap_threshold {
46       type: SIZE_T
47       env_alias: MALLOC_MMAP_THRESHOLD_
48     }
49     trim_threshold {
50       type: SIZE_T
51       env_alias: MALLOC_TRIM_THRESHOLD_
52     }
53     mmap_max {
54       type: INT_32
55       env_alias: MALLOC_MMAP_MAX_
56       minval: 0
57     }
58     arena_max {
59       type: SIZE_T
60       env_alias: MALLOC_ARENA_MAX
61       minval: 1
62     }
63     arena_test {
64       type: SIZE_T
65       env_alias: MALLOC_ARENA_TEST
66       minval: 1
67     }
68     tcache_max {
69       type: SIZE_T
70     }
71     tcache_count {
72       type: SIZE_T
73     }
74     tcache_unsorted_limit {
75       type: SIZE_T
76     }
77     mxfast {
78       type: SIZE_T
79       minval: 0
80     }
81     hugetlb {
82       type: SIZE_T
83       minval: 0
84     }
85   }
86   cpu {
87     hwcap_mask {
88       type: UINT_64
89       env_alias: LD_HWCAP_MASK
90       default: HWCAP_IMPORTANT
91     }
92   }
94   elision {
95     enable {
96       type: INT_32
97       minval: 0
98       maxval: 1
99     }
100     skip_lock_busy {
101       type: INT_32
102       default: 3
103       minval: 0
104     }
105     skip_lock_internal_abort {
106       type: INT_32
107       default: 3
108       minval: 0
109     }
110     skip_lock_after_retries {
111       type: INT_32
112       default: 3
113       minval: 0
114     }
115     tries {
116       type: INT_32
117       default: 3
118       minval: 0
119     }
120     skip_trylock_internal_abort {
121       type: INT_32
122       default: 3
123       minval: 0
124     }
125   }
127   rtld {
128     nns {
129       type: SIZE_T
130       minval: 1
131       maxval: 16
132       default: 4
133     }
134     optional_static_tls {
135       type: SIZE_T
136       minval: 0
137       default: 512
138     }
139   }
141   mem {
142     tagging {
143       type: INT_32
144       minval: 0
145       maxval: 255
146     }
147     decorate_maps {
148       type: INT_32
149       minval: 0
150       maxval: 1
151     }
152   }
154   rtld {
155     dynamic_sort {
156       type: INT_32
157       minval: 1
158       maxval: 2
159       default: 2
160     }
161   }
163   gmon {
164     minarcs {
165       type: INT_32
166       minval: 50
167       default: 50
168     }
169     maxarcs {
170       type: INT_32
171       minval: 50
172       default: 1048576
173     }
174   }