Home
last modified time | relevance | path

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

/linux/tools/lib/perf/
H A Dcpumap.c136 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, const struct perf_cpu *tmp_cpus) in cpu_map__trim_new()
143 memcpy(RC_CHK_ACCESS(cpus)->map, tmp_cpus, payload_size); in cpu_map__trim_new()
165 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__read()
184 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read()
187 tmp_cpus = tmp; in perf_cpu_map__read()
191 tmp_cpus[nr_cpus++].cpu = prev; in perf_cpu_map__read()
195 tmp = realloc(tmp_cpus, max_entries * sizeof(struct perf_cpu)); in perf_cpu_map__read()
198 tmp_cpus = tmp; in perf_cpu_map__read()
201 tmp_cpus[nr_cpus++].cpu = cpu; in perf_cpu_map__read()
211 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus); in perf_cpu_map__read()
132 cpu_map__trim_new(int nr_cpus,const struct perf_cpu * tmp_cpus) cpu_map__trim_new() argument
161 struct perf_cpu *tmp_cpus = NULL, *tmp; perf_cpu_map__read() local
219 struct perf_cpu *tmp_cpus = NULL, *tmp; perf_cpu_map__new() local
418 struct perf_cpu *tmp_cpus; perf_cpu_map__merge() local
462 struct perf_cpu *tmp_cpus; perf_cpu_map__intersect() local
[all...]
/linux/tools/lib/bpf/
H A Dlibbpf.c13740 int err, n, i, tmp_cpus; in libbpf_num_possible_cpus() local
13743 tmp_cpus = READ_ONCE(cpus); in libbpf_num_possible_cpus()
13744 if (tmp_cpus > 0) in libbpf_num_possible_cpus()
13745 return tmp_cpus; in libbpf_num_possible_cpus()
13751 tmp_cpus = 0; in libbpf_num_possible_cpus()
13754 tmp_cpus++; in libbpf_num_possible_cpus()
13758 WRITE_ONCE(cpus, tmp_cpus); in libbpf_num_possible_cpus()
13759 return tmp_cpus; in libbpf_num_possible_cpus()