Home
last modified time | relevance | path

Searched refs:nr_cpus_avail (Results 1 – 12 of 12) sorted by relevance

/tools/perf/util/
Dllvm-utils.c379 static int nr_cpus_avail = 0; in llvm__get_nr_cpus() local
382 if (nr_cpus_avail > 0) in llvm__get_nr_cpus()
383 return nr_cpus_avail; in llvm__get_nr_cpus()
385 nr_cpus_avail = sysconf(_SC_NPROCESSORS_CONF); in llvm__get_nr_cpus()
386 if (nr_cpus_avail <= 0) { in llvm__get_nr_cpus()
390 nr_cpus_avail = 128; in llvm__get_nr_cpus()
392 return nr_cpus_avail; in llvm__get_nr_cpus()
435 int err, nr_cpus_avail; in llvm__compile_bpf() local
476 nr_cpus_avail = llvm__get_nr_cpus(); in llvm__compile_bpf()
478 nr_cpus_avail); in llvm__compile_bpf()
Denv.c257 if (env->nr_cpus_avail == 0) in perf_env__read_cpu_topology_map()
258 env->nr_cpus_avail = cpu__max_present_cpu(); in perf_env__read_cpu_topology_map()
260 nr_cpus = env->nr_cpus_avail; in perf_env__read_cpu_topology_map()
274 env->nr_cpus_avail = nr_cpus; in perf_env__read_cpu_topology_map()
293 if (env->nr_cpus_avail == 0) in perf_env__read_nr_cpus_avail()
294 env->nr_cpus_avail = cpu__max_present_cpu(); in perf_env__read_nr_cpus_avail()
296 return env->nr_cpus_avail ? 0 : -ENOENT; in perf_env__read_nr_cpus_avail()
306 return env && !perf_env__read_nr_cpus_avail(env) ? env->nr_cpus_avail : 0; in perf_env__nr_cpus_avail()
Denv.h46 int nr_cpus_avail; member
Dheader.c604 for (j = 0; j < perf_env.nr_cpus_avail; j++) { in write_cpu_topology()
628 for (j = 0; j < perf_env.nr_cpus_avail; j++) { in write_cpu_topology()
1421 fprintf(fp, "# nrcpus avail : %u\n", ff->ph->env.nr_cpus_avail); in print_nrcpus()
1461 int cpu_nr = ph->env.nr_cpus_avail; in print_cpu_topology()
2073 u32 nr_cpus_avail, nr_cpus_online; in process_nrcpus() local
2075 ret = do_read_u32(ff, &nr_cpus_avail); in process_nrcpus()
2082 ff->ph->env.nr_cpus_avail = (int)nr_cpus_avail; in process_nrcpus()
2200 int cpu_nr = ff->ph->env.nr_cpus_avail; in process_cpu_topology()
Dmachine.c1026 int nr_cpus_avail, cpu; in machine__map_x86_64_entry_trampolines() local
1054 nr_cpus_avail = machine__nr_cpus_avail(machine); in machine__map_x86_64_entry_trampolines()
1057 for (cpu = 0; cpu < nr_cpus_avail; cpu++) { in machine__map_x86_64_entry_trampolines()
1073 machine->trampolines_mapped = nr_cpus_avail; in machine__map_x86_64_entry_trampolines()
2591 int nr_cpus = min(machine->env->nr_cpus_avail, MAX_NR_CPUS); in machine__get_current_tid()
2603 int nr_cpus = min(machine->env->nr_cpus_avail, MAX_NR_CPUS); in machine__set_current_tid()
Ddata-convert-bt.c1337 ncpus = ph->env.nr_cpus_avail ?: MAX_CPUS; in setup_streams()
Dsession.c2327 int nr_cpus = min(session->header.env.nr_cpus_avail, MAX_NR_CPUS); in perf_session__cpu_bitmap()
/tools/perf/tests/
Dtopology.c94 for (i = 0; i < session->header.env.nr_cpus_avail; i++) { in check_cpu_topology()
/tools/perf/Documentation/
Dperf.data-file-format.txt182 uint32_t die_id[nr_cpus_avail]; /* from previously processed HEADER_NR_CPUS, VLA */
/tools/perf/
Dbuiltin-stat.c943 if (cpu >= env->nr_cpus_avail) in perf_env__get_cpu()
Dbuiltin-timechart.c1514 tchart->numcpus = ph->env.nr_cpus_avail; in process_header()
Dbuiltin-c2c.c2040 c2c.cpus_cnt = session->header.env.nr_cpus_avail; in setup_nodes()