Lines Matching defs:map
61 static int check_cpu_topology(char *path, struct perf_cpu_map *map)
95 if (!cpu_map__has(map, i))
102 for (i = 0; i < map->nr; i++) {
104 (session->header.env.cpu[map->map[i]].core_id == (cpu_map__get_core(map, i, NULL) & 0xffff)));
107 (session->header.env.cpu[map->map[i]].socket_id == cpu_map__get_socket(map, i, NULL)));
118 struct perf_cpu_map *map;
128 map = perf_cpu_map__new(NULL);
129 if (map == NULL) {
134 ret = check_cpu_topology(path, map);
135 perf_cpu_map__put(map);