Lines Matching refs:ncpus
96 int fd, idx, ncpus;
218 int fd, ncpus;
277 static int ncpus;
866 hdr.max_cpus = ncpus;
1009 cl_fds = calloc(ncpus, sizeof(*cl_fds));
1010 for (cpu = 0; cpu < ncpus; cpu++) {
1029 for (cpu = 0, fdp = cl_fds; cpu < ncpus; cpu++, fdp++) {
1052 dpp->ncpus = ncpus;
1056 dpp->stats = calloc(dpp->ncpus, sizeof(*dpp->stats));
1057 memset(dpp->stats, 0, dpp->ncpus * sizeof(*dpp->stats));
1136 for (cpu = 0, hd = dpp->heads; cpu < ncpus; cpu++, hd++) {
1158 dpp->heads = calloc(ncpus, sizeof(struct tracer_devpath_head));
1159 for (cpu = 0, hd = dpp->heads; cpu < ncpus; cpu++, hd++) {
1398 for (cpu = 0; cpu < ncpus; cpu++, hd++) {
1852 for (cpu = 0; cpu < ncpus; cpu++)
1970 for (cpu = 0, sp = dpp->stats; cpu < dpp->ncpus; cpu++, sp++) {
2176 nc->ncpus = -1;
2238 static void device_done(struct devpath *dpp, int ncpus)
2243 for (cpu = 0, iop = dpp->ios; cpu < ncpus; cpu++, iop++)
2250 static void net_ch_remove(struct cl_host *ch, int ncpus)
2257 device_done(dpp, ncpus);
2313 dpp->ncpus = nc->ncpus;
2314 dpp->stats = calloc(dpp->ncpus, sizeof(*dpp->stats));
2315 ncpus * sizeof(*dpp->stats));
2320 dpp->ios = calloc(nc->ncpus, sizeof(*iop));
2323 for (cpu = 0, iop = dpp->ios; cpu < nc->ncpus; cpu++, iop++) {
2427 if (nc->ncpus == -1)
2428 nc->ncpus = bnh.max_cpus;
2450 net_ch_remove(nc->ch, nc->ncpus);
2595 if (nthreads_running == ncpus) {
2606 if (nthreads_running == ncpus)
2621 ncpus = sysconf(_SC_NPROCESSORS_ONLN);
2622 if (ncpus < 0) {