Home | History | Annotate | Download | only in btreplay

Lines Matching refs:cpus

142 static int cpus_to_use = -1;		// Number of CPUs to use
145 static int ncpus = 0; // Number of CPUs in the system
505 cpu_set_t cpus;
507 if (sched_getaffinity(getpid(), sizeof(cpus), &cpus)) {
516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++)
519 fatal(NULL, ERR_SYSCALL, "Insufficient number of CPUs\n");
530 cpu_set_t cpus;
534 CPU_ZERO(&cpus);
535 CPU_SET(tip->cpu, &cpus);
536 if (sched_setaffinity(getpid(), sizeof(cpus), &cpus)) {
1361 "\t[ -c <cpus> : --cpus=<cpus> ] Default: 1\n" \
1379 .name = "cpus",
1473 "Invalid number of cpus %d (0<x<%d)\n",