Searched refs:tmp_cpus (Results 1 – 2 of 2) sorted by relevance
/tools/perf/lib/ |
D | cpumap.c | 71 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new() argument 78 memcpy(cpus->map, tmp_cpus, payload_size); in cpu_map__trim_new() 89 int *tmp_cpus = NULL, *tmp; in perf_cpu_map__read() local 108 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read() 111 tmp_cpus = tmp; in perf_cpu_map__read() 115 tmp_cpus[nr_cpus++] = prev; in perf_cpu_map__read() 119 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read() 122 tmp_cpus = tmp; in perf_cpu_map__read() 125 tmp_cpus[nr_cpus++] = cpu; in perf_cpu_map__read() 135 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus); in perf_cpu_map__read() [all …]
|
/tools/lib/bpf/ |
D | libbpf.c | 5997 int err, n, i, tmp_cpus; in libbpf_num_possible_cpus() local 6000 tmp_cpus = READ_ONCE(cpus); in libbpf_num_possible_cpus() 6001 if (tmp_cpus > 0) in libbpf_num_possible_cpus() 6002 return tmp_cpus; in libbpf_num_possible_cpus() 6008 tmp_cpus = 0; in libbpf_num_possible_cpus() 6011 tmp_cpus++; in libbpf_num_possible_cpus() 6015 WRITE_ONCE(cpus, tmp_cpus); in libbpf_num_possible_cpus() 6016 return tmp_cpus; in libbpf_num_possible_cpus()
|