This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/3] Add some missing cache infomation
- From: Richard Henderson <rth at twiddle dot net>
- To: libc-alpha at sourceware dot org
- Date: Thu, 8 Jun 2017 15:57:25 -0700
- Subject: [PATCH 0/3] Add some missing cache infomation
- Authentication-results: sourceware.org; auth=none
I was looking to use _SC_LEVEL1_ICACHE_LINESIZE in QEMU,
and notice that some of our common hosts are missing this
information.
For my purposes, a guess at the linesize is good enough,
and I can't imagine that returning the linesize used for
flushing the cache could be incorrect.
r~
Richard Henderson (3):
Guess L1 cache linesize for aarch64
Add hidden_proto for getauxval
Add cache info for powerpc64
include/sys/auxv.h | 2 +
misc/getauxval.c | 1 +
sysdeps/unix/sysv/linux/aarch64/sysconf.c | 55 +++++++++++++
.../unix/sysv/linux/powerpc/powerpc64/sysconf.c | 90 ++++++++++++++++++++++
4 files changed, 148 insertions(+)
create mode 100644 sysdeps/unix/sysv/linux/aarch64/sysconf.c
create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysconf.c
--
2.9.4