Home
last modified time | relevance | path

Searched refs:ncpus (Results 1 – 3 of 3) sorted by relevance

/external/blktrace/
Dblktrace.c96 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 …]
Dblkparse.c64 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/
Dbtreplay.c145 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()