Lines Matching refs:cpus
25 { "cpus", required_argument, 0, 'c' },
43 printf("check TSC synchronization between CPUs\n");
44 printf(" -c,--cpus set of cpus to test (default: all)\n");
72 int parse_cpu_set(const char *s, cpu_set_t *cpus)
74 CPU_ZERO(cpus);
114 CPU_SET(cpu, cpus);
179 cpu_set_t cpus;
181 CPU_ZERO(&cpus);
182 CPU_SET(cpu, &cpus);
183 if (sched_setaffinity(0, sizeof cpus, &cpus) < 0) {
275 check_tsc(cpu_set_t *cpus)
289 if (!CPU_ISSET(cpu_a, cpus))
293 if (!CPU_ISSET(cpu_b, cpus) || cpu_a == cpu_b)
320 cpu_set_t cpus;
331 * default to checking all cpus
334 CPU_SET(c, &cpus);
340 if (parse_cpu_set(optarg, &cpus) != 0)
367 * limit the set of CPUs to the ones that are currently available
369 * if you specify CPUs that are not currently online so we ignore
372 sched_setaffinity(0, sizeof cpus, &cpus);
373 if (sched_getaffinity(0, sizeof cpus, &cpus) < 0) {
378 errs = check_tsc(&cpus);