Lines Matching refs:caches
1341 struct cpu_cache_level caches[MAX_CACHE_LVL]; in cpu__get_cache_details() local
1347 ret = build_caches_for_cpu(cpu.cpu, caches, &caches_cnt); in cpu__get_cache_details()
1371 if (caches[i].level > caches[max_level_index].level) in cpu__get_cache_details()
1375 cache->cache_lvl = caches[max_level_index].level; in cpu__get_cache_details()
1376 cache->cache = cpu__get_cache_id_from_map(cpu, caches[max_level_index].map); in cpu__get_cache_details()
1384 if (caches[i].level == cache_level) { in cpu__get_cache_details()
1386 cache->cache = cpu__get_cache_id_from_map(cpu, caches[i].map); in cpu__get_cache_details()
1389 cpu_cache_level__free(&caches[i]); in cpu__get_cache_details()
1397 cpu_cache_level__free(&caches[i++]); in cpu__get_cache_details()
1690 struct cpu_cache_level *caches = env->caches; in perf_env__get_cache_id_for_cpu() local
1707 if (cache_level <= MAX_CACHE_LVL && caches[i].level != cache_level) in perf_env__get_cache_id_for_cpu()
1710 cpu_map = perf_cpu_map__new(caches[i].map); in perf_env__get_cache_id_for_cpu()
1715 id->cache_lvl = caches[i].level; in perf_env__get_cache_id_for_cpu()
1716 id->cache = cpu__get_cache_id_from_map(cpu, caches[i].map); in perf_env__get_cache_id_for_cpu()