Lines Matching refs:tmp_cpus

76 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus)  in cpu_map__trim_new()  argument
83 memcpy(cpus->map, tmp_cpus, payload_size); in cpu_map__trim_new()
103 int *tmp_cpus = NULL, *tmp; in perf_cpu_map__read() local
122 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read()
125 tmp_cpus = tmp; in perf_cpu_map__read()
129 tmp_cpus[nr_cpus++] = prev; in perf_cpu_map__read()
133 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read()
136 tmp_cpus = tmp; in perf_cpu_map__read()
139 tmp_cpus[nr_cpus++] = cpu; in perf_cpu_map__read()
149 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus); in perf_cpu_map__read()
153 free(tmp_cpus); in perf_cpu_map__read()
177 int *tmp_cpus = NULL, *tmp; in perf_cpu_map__new() local
218 if (tmp_cpus[i] == (int)start_cpu) in perf_cpu_map__new()
223 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__new()
226 tmp_cpus = tmp; in perf_cpu_map__new()
228 tmp_cpus[nr_cpus++] = (int)start_cpu; in perf_cpu_map__new()
237 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus); in perf_cpu_map__new()
243 free(tmp_cpus); in perf_cpu_map__new()
301 int *tmp_cpus; in perf_cpu_map__merge() local
319 tmp_cpus = malloc(tmp_len * sizeof(int)); in perf_cpu_map__merge()
320 if (!tmp_cpus) in perf_cpu_map__merge()
329 tmp_cpus[k++] = orig->map[i++]; in perf_cpu_map__merge()
331 tmp_cpus[k++] = other->map[j++]; in perf_cpu_map__merge()
335 tmp_cpus[k++] = orig->map[i++]; in perf_cpu_map__merge()
338 tmp_cpus[k++] = other->map[j++]; in perf_cpu_map__merge()
341 merged = cpu_map__trim_new(k, tmp_cpus); in perf_cpu_map__merge()
342 free(tmp_cpus); in perf_cpu_map__merge()