Lines Matching refs:ncpus
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()
1136 for (cpu = 0, hd = dpp->heads; cpu < ncpus; cpu++, hd++) { in free_tracer_heads()
1158 dpp->heads = calloc(ncpus, sizeof(struct tracer_devpath_head)); in setup_tracer_devpaths()
1159 for (cpu = 0, hd = dpp->heads; cpu < ncpus; cpu++, hd++) { in setup_tracer_devpaths()
1398 for (cpu = 0; cpu < ncpus; cpu++, hd++) { in __process_trace_bufs()
1852 for (cpu = 0; cpu < ncpus; cpu++) in start_tracers()
1970 for (cpu = 0, sp = dpp->stats; cpu < dpp->ncpus; cpu++, sp++) { in show_stats()
2176 nc->ncpus = -1; in ch_add_connection()
2238 static void device_done(struct devpath *dpp, int ncpus) in device_done() argument
2243 for (cpu = 0, iop = dpp->ios; cpu < ncpus; cpu++, iop++) in device_done()
2250 static void net_ch_remove(struct cl_host *ch, int ncpus) in net_ch_remove() argument
2257 device_done(dpp, ncpus); in net_ch_remove()
2313 dpp->ncpus = nc->ncpus; in nc_add_dpp()
2314 dpp->stats = calloc(dpp->ncpus, sizeof(*dpp->stats)); in nc_add_dpp()
2315 memset(dpp->stats, 0, dpp->ncpus * sizeof(*dpp->stats)); in nc_add_dpp()
2320 dpp->ios = calloc(nc->ncpus, sizeof(*iop)); in nc_add_dpp()
2323 for (cpu = 0, iop = dpp->ios; cpu < nc->ncpus; cpu++, iop++) { in nc_add_dpp()
2427 if (nc->ncpus == -1) in net_client_data()
2428 nc->ncpus = bnh.max_cpus; in net_client_data()
2450 net_ch_remove(nc->ch, nc->ncpus); in net_client_data()
2595 if (nthreads_running == ncpus) { in run_tracers()
2606 if (nthreads_running == ncpus) in run_tracers()
2621 ncpus = sysconf(_SC_NPROCESSORS_ONLN); in main()
2622 if (ncpus < 0) { in main()