[PATCH] S390: Get cache information via sysconf.

Stefan Liebler stli@linux.vnet.ibm.com
Fri Apr 17 13:31:00 GMT 2015


Hi,

this patch adds support to query cache information on s390
via sysconf() function - e.g. with _SC_LEVEL1_ICACHE_SIZE.
The attributes size, linesize and assoc can be queried
for cache level 1 - 4 via "extract cpu attribute" instruction,
which was first available with z10.

Tested on s390/s390x.

Ok to commit?

Bye
Stefan

---
2015-04-17  Stefan Liebler  <stli@linux.vnet.ibm.com>

	* sysdeps/unix/sysv/linux/s390/sysconf.c: New File.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysconf_cacheinfo_17042015.patch
Type: text/x-patch
Size: 6582 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150417/b0aee90d/attachment.bin>


More information about the Libc-alpha mailing list