Searched refs:ncpus (Results 1 – 16 of 16) sorted by relevance
/external/llvm/utils/lit/lit/ |
D | util.py | 33 ncpus = os.sysconf("SC_NPROCESSORS_ONLN") 34 if isinstance(ncpus, int) and ncpus > 0: 35 return ncpus 40 ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 41 if ncpus > 0: 42 return ncpus
|
/external/autotest/client/tests/monotonic_time/src/ |
D | time_test.c | 234 int ncpus; in run_test() local 256 ncpus = count_cpus(cpus); in run_test() 258 if (nthreads != ncpus) { in run_test() 260 ncpus, nthreads); in run_test() 270 test->name, ncpus, duration); in run_test() 272 INFO("running %s test on %d cpus", test->name, ncpus); in run_test()
|
/external/strace/xlat/ |
D | gen.sh | 251 local ncpus="$(getconf _NPROCESSORS_ONLN)" 252 [ "${ncpus}" -ge 1 ] || 253 ncpus=1 264 if [ ${jobs} -ge ${ncpus} ]; then
|
/external/blktrace/ |
D | blktrace.c | 96 int fd, idx, ncpus; member 218 int fd, ncpus; member 277 static int ncpus; variable 866 hdr.max_cpus = ncpus; in net_send_header() 1009 cl_fds = calloc(ncpus, sizeof(*cl_fds)); in open_client_connections() 1010 for (cpu = 0; cpu < ncpus; cpu++) { in open_client_connections() 1029 for (cpu = 0, fdp = cl_fds; cpu < ncpus; cpu++, fdp++) { in close_client_connections() 1052 dpp->ncpus = ncpus; in setup_buts() 1056 dpp->stats = calloc(dpp->ncpus, sizeof(*dpp->stats)); in setup_buts() 1057 memset(dpp->stats, 0, dpp->ncpus * sizeof(*dpp->stats)); in setup_buts() [all …]
|
D | blkparse.c | 64 int ncpus; member 324 int ncpus = pdi->ncpus; in resize_cpu_info() local 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); in resize_cpu_info() 339 new_space = (new_count - ncpus) * sizeof(struct per_cpu_info); in resize_cpu_info() 342 pdi->ncpus = new_count; in resize_cpu_info() 345 for (new_count = 0; new_count < pdi->ncpus; new_count++) { in resize_cpu_info() 361 if (cpu >= pdi->ncpus) in get_cpu_info() 490 for (cpu = 0; cpu < pdi->ncpus; cpu++) { in collect_pdi_skips() 1786 for (pci = pdi->cpus, j = 0; j < pdi->ncpus; j++, pci++) { in show_device_and_cpu_stats()
|
/external/blktrace/btreplay/ |
D | btreplay.c | 145 static int ncpus = 0; // Number of CPUs in the system variable 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) in get_ncpus() 518 if (ncpus == 0) { in get_ncpus() 532 assert(0 <= tip->cpu && tip->cpu < ncpus); in pin_to_cpu() 547 for (i = 0; i < ncpus; i++) in pin_to_cpu() 863 assert(0 <= cpu && cpu < ncpus); in add_input_file() 1471 if (cpus_to_use <= 0 || cpus_to_use > ncpus) { in handle_args() 1474 cpus_to_use, ncpus); in handle_args() 1566 cpus_to_use = ncpus; in handle_args()
|
/external/clang/utils/analyzer/ |
D | SATestBuild.py | 69 ncpus = os.sysconf("SC_NPROCESSORS_ONLN") 70 if isinstance(ncpus, int) and ncpus > 0: 71 return ncpus 76 ncpus = int(os.environ["NUMBER_OF_PROCESSORS"]) 77 if ncpus > 0: 78 return ncpus
|
/external/autotest/client/profilers/cpistat/ |
D | cpistat | 30 ncpus = os.sysconf('SC_NPROCESSORS_ONLN') variable 31 cpus = range(0, ncpus)
|
/external/jemalloc/include/jemalloc/internal/ |
D | private_symbols.txt | 330 ncpus
|
D | private_namespace.h | 332 #define ncpus JEMALLOC_N(ncpus) macro
|
D | private_unnamespace.h | 332 #undef ncpus
|
D | jemalloc_internal.h | 441 extern unsigned ncpus;
|
D | jemalloc_internal.h.in | 441 extern unsigned ncpus;
|
/external/jemalloc/src/ |
D | jemalloc.c | 48 unsigned ncpus; variable 1301 ncpus = malloc_ncpus(); 1333 if (ncpus > 1) 1334 opt_narenas = ncpus << 2;
|
D | stats.c | 539 malloc_cprintf(write_cb, cbopaque, "CPUs: %u\n", ncpus); in stats_print()
|
/external/fio/ |
D | HOWTO | 238 $ncpus Number of online available CPUs
|