Lines Matching defs:cpu
29 * -c cpu - bind client to specified cpu (default: unbound)
30 * -s cpu - bind server to specified cpu (default: unbound)
76 AddIntsService(int cpu = unbound);
94 static void bindCPU(unsigned int cpu);
121 int cpu = strtoul(optarg, &chptr, 10);
123 cerr << "Invalid cpu specified for -" << (char) opt
129 if (!CPU_ISSET(cpu, &availCPUs)) {
136 *((opt == 'c') ? &options.clientCPU : &options.serverCPU) = cpu;
165 cerr << " -s cpu - server CPU number" << endl;
166 cerr << " -c cpu - client CPU number" << endl;
307 AddIntsService::AddIntsService(int cpu): cpu_(cpu) {
308 if (cpu != unbound) { bindCPU(cpu); }
316 int cpu;
321 cpu = sched_getcpu();
322 if (cpu != cpu_) {
323 cerr << "server onTransact on CPU " << cpu << " expected CPU "
345 static void bindCPU(unsigned int cpu)
351 CPU_SET(cpu, &cpuset);