about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2023-12-21 15:14:08 +0000
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2024-02-02 15:58:11 +0000
commit1e348038b0f013ef9c30e3c4072b9555344391cb (patch)
tree0931b1f2d05a954377a99f023bff0659c31baabf /sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
parent7ea8526a50e6867b154d2bb4fbe9de4ff2fc9468 (diff)
downloadglibc-1e348038b0f013ef9c30e3c4072b9555344391cb.tar.gz
glibc-1e348038b0f013ef9c30e3c4072b9555344391cb.tar.xz
glibc-1e348038b0f013ef9c30e3c4072b9555344391cb.zip
aarch64: add glibc.cpu.aarch64_gcs_policy
policy sets how gcs tunable and gcs marking turns into gcs state:

0: state = tunable
1: state = marking ? tunable : (tunable && dlopen ? err : 0)
2: state = marking ? tunable : (tunable ? err : 0)

TODO: state lock
Diffstat (limited to 'sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c')
-rw-r--r--sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
index 7af232de52..a9d5ee9df5 100644
--- a/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
+++ b/sysdeps/unix/sysv/linux/aarch64/dl-procinfo.c
@@ -54,6 +54,19 @@ PROCINFO_CLASS struct cpu_features _dl_aarch64_cpu_features
 # else
 ,
 # endif
+# if !defined PROCINFO_DECL && defined SHARED
+  ._dl_aarch64_gcs_policy
+# else
+PROCINFO_CLASS uint64_t _dl_aarch64_gcs_policy
+# endif
+# ifndef PROCINFO_DECL
+= 0
+# endif
+# if !defined SHARED || defined PROCINFO_DECL
+;
+# else
+,
+# endif
 #endif
 
 /* Number of HWCAP bits set.  */