1/* AUTOGENERATED by gen-tunables.awk. */
2#ifndef _TUNABLES_H_
3# error "Do not include this file directly."
4# error "Include tunables.h instead."
5#endif
6#include <dl-procinfo.h>
7
8
9typedef enum
10{
11 TUNABLE_ENUM_NAME(glibc, rtld, nns),
12 TUNABLE_ENUM_NAME(glibc, elision, skip_lock_after_retries),
13 TUNABLE_ENUM_NAME(glibc, malloc, trim_threshold),
14 TUNABLE_ENUM_NAME(glibc, malloc, perturb),
15 TUNABLE_ENUM_NAME(glibc, cpu, x86_shared_cache_size),
16 TUNABLE_ENUM_NAME(glibc, elision, tries),
17 TUNABLE_ENUM_NAME(glibc, elision, enable),
18 TUNABLE_ENUM_NAME(glibc, cpu, x86_rep_movsb_threshold),
19 TUNABLE_ENUM_NAME(glibc, malloc, mxfast),
20 TUNABLE_ENUM_NAME(glibc, elision, skip_lock_busy),
21 TUNABLE_ENUM_NAME(glibc, malloc, top_pad),
22 TUNABLE_ENUM_NAME(glibc, cpu, x86_rep_stosb_threshold),
23 TUNABLE_ENUM_NAME(glibc, cpu, x86_non_temporal_threshold),
24 TUNABLE_ENUM_NAME(glibc, cpu, x86_shstk),
25 TUNABLE_ENUM_NAME(glibc, cpu, hwcap_mask),
26 TUNABLE_ENUM_NAME(glibc, malloc, mmap_max),
27 TUNABLE_ENUM_NAME(glibc, elision, skip_trylock_internal_abort),
28 TUNABLE_ENUM_NAME(glibc, malloc, tcache_unsorted_limit),
29 TUNABLE_ENUM_NAME(glibc, cpu, x86_ibt),
30 TUNABLE_ENUM_NAME(glibc, cpu, hwcaps),
31 TUNABLE_ENUM_NAME(glibc, elision, skip_lock_internal_abort),
32 TUNABLE_ENUM_NAME(glibc, malloc, arena_max),
33 TUNABLE_ENUM_NAME(glibc, malloc, mmap_threshold),
34 TUNABLE_ENUM_NAME(glibc, cpu, x86_data_cache_size),
35 TUNABLE_ENUM_NAME(glibc, malloc, tcache_count),
36 TUNABLE_ENUM_NAME(glibc, malloc, arena_test),
37 TUNABLE_ENUM_NAME(glibc, pthread, mutex_spin_count),
38 TUNABLE_ENUM_NAME(glibc, rtld, optional_static_tls),
39 TUNABLE_ENUM_NAME(glibc, malloc, tcache_max),
40 TUNABLE_ENUM_NAME(glibc, malloc, check),
41} tunable_id_t;
42
43
44#ifdef TUNABLES_INTERNAL
45static tunable_t tunable_list[] attribute_relro = {
46 {TUNABLE_NAME_S(glibc, rtld, nns), {TUNABLE_TYPE_SIZE_T, 1, 16}, {.numval = 4}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
47 {TUNABLE_NAME_S(glibc, elision, skip_lock_after_retries), {TUNABLE_TYPE_INT_32, INT32_MIN, INT32_MAX}, {.numval = 3}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
48 {TUNABLE_NAME_S(glibc, malloc, trim_threshold), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, "MALLOC_TRIM_THRESHOLD_"},
49 {TUNABLE_NAME_S(glibc, malloc, perturb), {TUNABLE_TYPE_INT_32, 0, 0xff}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, "MALLOC_PERTURB_"},
50 {TUNABLE_NAME_S(glibc, cpu, x86_shared_cache_size), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
51 {TUNABLE_NAME_S(glibc, elision, tries), {TUNABLE_TYPE_INT_32, INT32_MIN, INT32_MAX}, {.numval = 3}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
52 {TUNABLE_NAME_S(glibc, elision, enable), {TUNABLE_TYPE_INT_32, 0, 1}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
53 {TUNABLE_NAME_S(glibc, cpu, x86_rep_movsb_threshold), {TUNABLE_TYPE_SIZE_T, 1, SIZE_MAX}, {.numval = 2048}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
54 {TUNABLE_NAME_S(glibc, malloc, mxfast), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, NULL},
55 {TUNABLE_NAME_S(glibc, elision, skip_lock_busy), {TUNABLE_TYPE_INT_32, INT32_MIN, INT32_MAX}, {.numval = 3}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
56 {TUNABLE_NAME_S(glibc, malloc, top_pad), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, "MALLOC_TOP_PAD_"},
57 {TUNABLE_NAME_S(glibc, cpu, x86_rep_stosb_threshold), {TUNABLE_TYPE_SIZE_T, 1, SIZE_MAX}, {.numval = 2048}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
58 {TUNABLE_NAME_S(glibc, cpu, x86_non_temporal_threshold), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
59 {TUNABLE_NAME_S(glibc, cpu, x86_shstk), {TUNABLE_TYPE_STRING, 0, 0}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
60 {TUNABLE_NAME_S(glibc, cpu, hwcap_mask), {TUNABLE_TYPE_UINT_64, 0, UINT64_MAX}, {.numval = HWCAP_IMPORTANT}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, "LD_HWCAP_MASK"},
61 {TUNABLE_NAME_S(glibc, malloc, mmap_max), {TUNABLE_TYPE_INT_32, INT32_MIN, INT32_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, "MALLOC_MMAP_MAX_"},
62 {TUNABLE_NAME_S(glibc, elision, skip_trylock_internal_abort), {TUNABLE_TYPE_INT_32, INT32_MIN, INT32_MAX}, {.numval = 3}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
63 {TUNABLE_NAME_S(glibc, malloc, tcache_unsorted_limit), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
64 {TUNABLE_NAME_S(glibc, cpu, x86_ibt), {TUNABLE_TYPE_STRING, 0, 0}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
65 {TUNABLE_NAME_S(glibc, cpu, hwcaps), {TUNABLE_TYPE_STRING, 0, 0}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
66 {TUNABLE_NAME_S(glibc, elision, skip_lock_internal_abort), {TUNABLE_TYPE_INT_32, INT32_MIN, INT32_MAX}, {.numval = 3}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
67 {TUNABLE_NAME_S(glibc, malloc, arena_max), {TUNABLE_TYPE_SIZE_T, 1, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, "MALLOC_ARENA_MAX"},
68 {TUNABLE_NAME_S(glibc, malloc, mmap_threshold), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, "MALLOC_MMAP_THRESHOLD_"},
69 {TUNABLE_NAME_S(glibc, cpu, x86_data_cache_size), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
70 {TUNABLE_NAME_S(glibc, malloc, tcache_count), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
71 {TUNABLE_NAME_S(glibc, malloc, arena_test), {TUNABLE_TYPE_SIZE_T, 1, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_IGNORE, "MALLOC_ARENA_TEST"},
72 {TUNABLE_NAME_S(glibc, pthread, mutex_spin_count), {TUNABLE_TYPE_INT_32, 0, 32767}, {.numval = 100}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
73 {TUNABLE_NAME_S(glibc, rtld, optional_static_tls), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {.numval = 512}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
74 {TUNABLE_NAME_S(glibc, malloc, tcache_max), {TUNABLE_TYPE_SIZE_T, 0, SIZE_MAX}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, NULL},
75 {TUNABLE_NAME_S(glibc, malloc, check), {TUNABLE_TYPE_INT_32, 0, 3}, {}, NULL, TUNABLE_SECLEVEL_SXID_ERASE, "MALLOC_CHECK_"},
76};
77#endif
78