Lines Matching refs:cpus
72 int parse_cpu_set(const char *s, cpu_set_t *cpus) in parse_cpu_set() argument
74 CPU_ZERO(cpus); in parse_cpu_set()
114 CPU_SET(cpu, cpus); in parse_cpu_set()
179 cpu_set_t cpus; in set_cpu_affinity() local
181 CPU_ZERO(&cpus); in set_cpu_affinity()
182 CPU_SET(cpu, &cpus); in set_cpu_affinity()
183 if (sched_setaffinity(0, sizeof cpus, &cpus) < 0) { in set_cpu_affinity()
275 check_tsc(cpu_set_t *cpus) in check_tsc() argument
289 if (!CPU_ISSET(cpu_a, cpus)) in check_tsc()
293 if (!CPU_ISSET(cpu_b, cpus) || cpu_a == cpu_b) in check_tsc()
320 cpu_set_t cpus; in main() local
334 CPU_SET(c, &cpus); in main()
340 if (parse_cpu_set(optarg, &cpus) != 0) in main()
372 sched_setaffinity(0, sizeof cpus, &cpus); in main()
373 if (sched_getaffinity(0, sizeof cpus, &cpus) < 0) { in main()
378 errs = check_tsc(&cpus); in main()