Searched refs:tmp_cpus (Results 1 - 2 of 2) sorted by relevance

/linux-master/tools/lib/perf/
H A Dcpumap.c132 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) argument
139 memcpy(RC_CHK_ACCESS(cpus)->map, tmp_cpus, payload_size);
161 struct perf_cpu *tmp_cpus = NULL, *tmp; local
180 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu));
183 tmp_cpus = tmp;
187 tmp_cpus[nr_cpus++].cpu = prev;
191 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu));
194 tmp_cpus = tmp;
197 tmp_cpus[nr_cpus++].cpu = cpu;
207 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus);
219 struct perf_cpu *tmp_cpus = NULL, *tmp; local
418 struct perf_cpu *tmp_cpus; local
462 struct perf_cpu *tmp_cpus; local
[all...]
/linux-master/tools/lib/bpf/
H A Dlibbpf.c13465 int err, n, i, tmp_cpus; local
13468 tmp_cpus = READ_ONCE(cpus);
13469 if (tmp_cpus > 0)
13470 return tmp_cpus;
13476 tmp_cpus = 0;
13479 tmp_cpus++;
13483 WRITE_ONCE(cpus, tmp_cpus);
13484 return tmp_cpus;

Completed in 180 milliseconds