Lines Matching refs:caches
1215 struct cpu_cache_level caches[MAX_CACHE_LVL]; in cpu__get_cache_details() local
1221 ret = build_caches_for_cpu(cpu.cpu, caches, &caches_cnt); in cpu__get_cache_details()
1245 if (caches[i].level > caches[max_level_index].level) in cpu__get_cache_details()
1249 cache->cache_lvl = caches[max_level_index].level; in cpu__get_cache_details()
1250 cache->cache = cpu__get_cache_id_from_map(cpu, caches[max_level_index].map); in cpu__get_cache_details()
1258 if (caches[i].level == cache_level) { in cpu__get_cache_details()
1260 cache->cache = cpu__get_cache_id_from_map(cpu, caches[i].map); in cpu__get_cache_details()
1263 cpu_cache_level__free(&caches[i]); in cpu__get_cache_details()
1271 cpu_cache_level__free(&caches[i++]); in cpu__get_cache_details()
1568 struct cpu_cache_level *caches = env->caches; in perf_env__get_cache_id_for_cpu() local
1585 if (cache_level <= MAX_CACHE_LVL && caches[i].level != cache_level) in perf_env__get_cache_id_for_cpu()
1588 cpu_map = perf_cpu_map__new(caches[i].map); in perf_env__get_cache_id_for_cpu()
1593 id->cache_lvl = caches[i].level; in perf_env__get_cache_id_for_cpu()
1594 id->cache = cpu__get_cache_id_from_map(cpu, caches[i].map); in perf_env__get_cache_id_for_cpu()