mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
winsup/utils: add CPU cache variables to getconf(1)
* getconf.c (conf_table): Add LEVEL*_CACHE_* variables. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
This commit is contained in:
parent
6b457615e6
commit
505812d042
@ -1,3 +1,7 @@
|
||||
2015-10-22 Yaakov Selkowitz <yselkowi@redhat.com>
|
||||
|
||||
* getconf.c (conf_table): Add LEVEL*_CACHE_* variables.
|
||||
|
||||
2015-08-30 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* cygcheck.cc (dump_sysinfo): Fix missing commas in products array.
|
||||
|
@ -357,6 +357,21 @@ static const struct conf_variable conf_table[] =
|
||||
{ "POSIX2_UPE", SYSCONF, _SC_2_UPE },
|
||||
{ "POSIX2_VERSION", SYSCONF, _SC_2_VERSION },
|
||||
/* implementation-specific values */
|
||||
{ "LEVEL1_ICACHE_SIZE", SYSCONF, _SC_LEVEL1_ICACHE_SIZE },
|
||||
{ "LEVEL1_ICACHE_ASSOC", SYSCONF, _SC_LEVEL1_ICACHE_ASSOC },
|
||||
{ "LEVEL1_ICACHE_LINESIZE", SYSCONF, _SC_LEVEL1_ICACHE_LINESIZE },
|
||||
{ "LEVEL1_DCACHE_SIZE", SYSCONF, _SC_LEVEL1_DCACHE_SIZE },
|
||||
{ "LEVEL1_DCACHE_ASSOC", SYSCONF, _SC_LEVEL1_DCACHE_ASSOC },
|
||||
{ "LEVEL1_DCACHE_LINESIZE", SYSCONF, _SC_LEVEL1_DCACHE_LINESIZE },
|
||||
{ "LEVEL2_CACHE_SIZE", SYSCONF, _SC_LEVEL2_CACHE_SIZE },
|
||||
{ "LEVEL2_CACHE_ASSOC", SYSCONF, _SC_LEVEL2_CACHE_ASSOC },
|
||||
{ "LEVEL2_CACHE_LINESIZE", SYSCONF, _SC_LEVEL2_CACHE_LINESIZE },
|
||||
{ "LEVEL3_CACHE_SIZE", SYSCONF, _SC_LEVEL3_CACHE_SIZE },
|
||||
{ "LEVEL3_CACHE_ASSOC", SYSCONF, _SC_LEVEL3_CACHE_ASSOC },
|
||||
{ "LEVEL3_CACHE_LINESIZE", SYSCONF, _SC_LEVEL3_CACHE_LINESIZE },
|
||||
{ "LEVEL4_CACHE_SIZE", SYSCONF, _SC_LEVEL4_CACHE_SIZE },
|
||||
{ "LEVEL4_CACHE_ASSOC", SYSCONF, _SC_LEVEL4_CACHE_ASSOC },
|
||||
{ "LEVEL4_CACHE_LINESIZE", SYSCONF, _SC_LEVEL4_CACHE_LINESIZE },
|
||||
{ "_NPROCESSORS_CONF", SYSCONF, _SC_NPROCESSORS_CONF },
|
||||
{ "_NPROCESSORS_ONLN", SYSCONF, _SC_NPROCESSORS_ONLN },
|
||||
{ "_AVPHYS_PAGES", SYSCONF, _SC_AVPHYS_PAGES },
|
||||
|
Loading…
x
Reference in New Issue
Block a user