Home
last modified time | relevance | path

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

/tools/lib/perf/
Dcpumap.c81 static struct perf_cpu_map *cpu_map__trim_new(int nr_cpus, int *tmp_cpus) in cpu_map__trim_new() argument
88 memcpy(cpus->map, tmp_cpus, payload_size); in cpu_map__trim_new()
108 int *tmp_cpus = NULL, *tmp; in perf_cpu_map__read() local
127 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read()
130 tmp_cpus = tmp; in perf_cpu_map__read()
134 tmp_cpus[nr_cpus++] = prev; in perf_cpu_map__read()
138 tmp = realloc(tmp_cpus, max_entries * sizeof(int)); in perf_cpu_map__read()
141 tmp_cpus = tmp; in perf_cpu_map__read()
144 tmp_cpus[nr_cpus++] = cpu; in perf_cpu_map__read()
154 cpus = cpu_map__trim_new(nr_cpus, tmp_cpus); in perf_cpu_map__read()
[all …]
/tools/lib/bpf/
Dlibbpf.c10652 int err, n, i, tmp_cpus; in libbpf_num_possible_cpus() local
10655 tmp_cpus = READ_ONCE(cpus); in libbpf_num_possible_cpus()
10656 if (tmp_cpus > 0) in libbpf_num_possible_cpus()
10657 return tmp_cpus; in libbpf_num_possible_cpus()
10663 tmp_cpus = 0; in libbpf_num_possible_cpus()
10666 tmp_cpus++; in libbpf_num_possible_cpus()
10670 WRITE_ONCE(cpus, tmp_cpus); in libbpf_num_possible_cpus()
10671 return tmp_cpus; in libbpf_num_possible_cpus()