Lines Matching refs:caches
1302 struct cpu_cache_level caches[MAX_CACHE_LVL]; in cpu__get_cache_details() local
1308 ret = build_caches_for_cpu(cpu.cpu, caches, &caches_cnt); in cpu__get_cache_details()
1332 if (caches[i].level > caches[max_level_index].level) in cpu__get_cache_details()
1336 cache->cache_lvl = caches[max_level_index].level; in cpu__get_cache_details()
1337 cache->cache = cpu__get_cache_id_from_map(cpu, caches[max_level_index].map); in cpu__get_cache_details()
1345 if (caches[i].level == cache_level) { in cpu__get_cache_details()
1347 cache->cache = cpu__get_cache_id_from_map(cpu, caches[i].map); in cpu__get_cache_details()
1350 cpu_cache_level__free(&caches[i]); in cpu__get_cache_details()
1358 cpu_cache_level__free(&caches[i++]); in cpu__get_cache_details()
1655 struct cpu_cache_level *caches = env->caches; in perf_env__get_cache_id_for_cpu() local
1672 if (cache_level <= MAX_CACHE_LVL && caches[i].level != cache_level) in perf_env__get_cache_id_for_cpu()
1675 cpu_map = perf_cpu_map__new(caches[i].map); in perf_env__get_cache_id_for_cpu()
1680 id->cache_lvl = caches[i].level; in perf_env__get_cache_id_for_cpu()
1681 id->cache = cpu__get_cache_id_from_map(cpu, caches[i].map); in perf_env__get_cache_id_for_cpu()