Home
last modified time | relevance | path

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

/linux-6.15/tools/lib/perf/
H A Dcpumap.c171 struct perf_cpu *tmp_cpus = NULL, *tmp; in perf_cpu_map__new() local
220 tmp_cpus = tmp; in perf_cpu_map__new()
240 free(tmp_cpus); in perf_cpu_map__new()
400 struct perf_cpu *tmp_cpus; in perf_cpu_map__merge() local
415 if (!tmp_cpus) in perf_cpu_map__merge()
436 merged = cpu_map__trim_new(k, tmp_cpus); in perf_cpu_map__merge()
437 free(tmp_cpus); in perf_cpu_map__merge()
446 struct perf_cpu *tmp_cpus; in perf_cpu_map__intersect() local
458 if (!tmp_cpus) in perf_cpu_map__intersect()
473 merged = cpu_map__trim_new(k, tmp_cpus); in perf_cpu_map__intersect()
[all …]
/linux-6.15/tools/lib/bpf/
H A Dlibbpf.c13852 int err, n, i, tmp_cpus; in libbpf_num_possible_cpus() local
13855 tmp_cpus = READ_ONCE(cpus); in libbpf_num_possible_cpus()
13856 if (tmp_cpus > 0) in libbpf_num_possible_cpus()
13857 return tmp_cpus; in libbpf_num_possible_cpus()
13863 tmp_cpus = 0; in libbpf_num_possible_cpus()
13866 tmp_cpus++; in libbpf_num_possible_cpus()
13870 WRITE_ONCE(cpus, tmp_cpus); in libbpf_num_possible_cpus()
13871 return tmp_cpus; in libbpf_num_possible_cpus()