Lines Matching defs:cache
1134 * The format to specify cache level is LX or lX where X is the
1135 * cache level.
1153 pr_err("perf only supports max cache level of %d.\n"
1240 OPT_CALLBACK_OPTARG(0, "per-cache", &stat_config.aggr_mode, &stat_config.aggr_level,
1241 "cache level", "aggregate count at this cache level (Default: LLC)",
1305 * Calculate the cache instance ID from the map in
1306 * /sys/devices/system/cpu/cpuX/cache/indexY/shared_cpu_list
1316 * be the first online CPU in the cache domain else use the
1317 * first online CPU of the cache domain as the ID.
1324 /* Free the perf_cpu_map used to find the cache ID */
1332 * cache level and cache id. Cache level is read from
1333 * /sys/devices/system/cpu/cpuX/cache/indexY/level where as cache instance ID
1335 * /sys/devices/system/cpu/cpuX/cache/indexY/shared_cpu_list
1337 static int cpu__get_cache_details(struct perf_cpu cpu, struct perf_cache *cache)
1344 cache->cache_lvl = (cache_level > MAX_CACHE_LVL) ? 0 : cache_level;
1345 cache->cache = -1;
1375 cache->cache_lvl = caches[max_level_index].level;
1376 cache->cache = cpu__get_cache_id_from_map(cpu, caches[max_level_index].map);
1385 cache->cache_lvl = cache_level;
1386 cache->cache = cpu__get_cache_id_from_map(cpu, caches[i].map);
1403 * aggr_cpu_id__cache - Create an aggr_cpu_id with cache instache ID, cache
1404 * level, die and socket populated with the cache instache ID, cache level,
1412 struct perf_cache cache;
1418 ret = cpu__get_cache_details(cpu, &cache);
1422 id.cache_lvl = cache.cache_lvl;
1423 id.cache = cache.cache;
1429 [AGGR_CACHE] = "cache",
1693 id->cache = -1;
1716 id->cache = cpu__get_cache_id_from_map(cpu, caches[i].map);
1981 * Very detailed stats (-d -d), covering the instruction cache and the TLB caches:
2400 OPT_CALLBACK_OPTARG(0, "per-cache", &perf_stat.aggr_mode, &perf_stat.aggr_level,
2401 "cache level",
2402 "aggregate count at this cache level (Default: LLC)",