Home
last modified time | relevance | path

Searched refs:cachesize (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/contrib/plugins/
H A Dcache.c74 int cachesize; member
233 static const char *cache_config_error(int blksize, int assoc, int cachesize) in cache_config_error() argument
235 if (cachesize % blksize != 0) { in cache_config_error()
237 } else if (cachesize % (blksize * assoc) != 0) { in cache_config_error()
244 static bool bad_cache_params(int blksize, int assoc, int cachesize) in bad_cache_params() argument
246 return (cachesize % blksize) != 0 || (cachesize % (blksize * assoc) != 0); in bad_cache_params()
249 static Cache *cache_init(int blksize, int assoc, int cachesize) in cache_init() argument
259 g_assert(!bad_cache_params(blksize, assoc, cachesize)); in cache_init()
263 cache->cachesize = cachesize; in cache_init()
264 cache->num_sets = cachesize / (blksize * assoc); in cache_init()
[all …]
/openbmc/openbmc/poky/bitbake/lib/bb/
H A Dcache.py453 def cachesize(self): member in Cache
454 cachesize = 0
459 cachesize += os.fstat(cachefile.fileno()).st_size
463 return cachesize
731 nonlocal cachesize
735 if current_progress > cachesize:
738 cachesize = current_progress
739 current_percent = 100 * current_progress / cachesize
742 bb.event.fire(bb.event.CacheLoadProgress(current_progress, cachesize),
746 cachesize = 0
[all …]
/openbmc/openbmc/poky/meta/recipes-core/glibc/ldconfig-native-2.12.1/
H A Dldconfig.patch86 @@ -39,103 +39,7 @@ static size_t cachesize;
216 - void *file = _dl_sysdep_read_whole_file (LD_SO_CACHE, &cachesize,
224 - if (file != MAP_FAILED && cachesize > sizeof *cache
236 - if (cachesize < (offset + sizeof (struct cache_file_new))
241 - else if (file != MAP_FAILED && cachesize > sizeof *cache_new
251 - __munmap (file, cachesize);
272 - cache_data_size = (const char *) cache + cachesize - cache_data;
300 - cache_data_size = (const char *) cache + cachesize - cache_data;
325 - __munmap (cache, cachesize);