diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-01-06 17:19:24 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2021-01-21 14:05:15 +0000 |
commit | 058308066c9ee3d08361a61cc36835abfe5ecfb6 (patch) | |
tree | d28a0d32d025f750f213b023cc3078d2aeb8a258 /scripts | |
parent | ff6d62e9edb5dce537a6dd4a237d6053f331f09c (diff) | |
download | glibc-058308066c9ee3d08361a61cc36835abfe5ecfb6.tar.gz glibc-058308066c9ee3d08361a61cc36835abfe5ecfb6.tar.xz glibc-058308066c9ee3d08361a61cc36835abfe5ecfb6.zip |
elf: Make the tunable struct definition internal only
The representation of the tunables including type information and the tunable list structure are only used in the implementation not in the tunables api that is exposed to usage within glibc. This patch moves the representation related definitions into the existing dl-tunable-types.h and uses that only for implementation. The tunable callback and related types are moved to dl-tunables.h because they are part of the tunables api. This reduces the details exposed in the tunables api so the internals are easier to change. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/gen-tunables.awk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gen-tunables.awk b/scripts/gen-tunables.awk index 622199061a..cda12ef62e 100644 --- a/scripts/gen-tunables.awk +++ b/scripts/gen-tunables.awk @@ -156,8 +156,10 @@ END { } print "} tunable_id_t;\n" - # Finally, the tunable list. print "\n#ifdef TUNABLES_INTERNAL" + # Internal definitions. + print "# include \"dl-tunable-types.h\"" + # Finally, the tunable list. print "static tunable_t tunable_list[] attribute_relro = {" for (tnm in types) { split (tnm, indices, SUBSEP); |