/tools/testing/selftests/x86/ |
D | sysret_ss_attrs.c | 63 cpu_set_t cpuset; in main() local 64 CPU_ZERO(&cpuset); in main() 65 CPU_SET(0, &cpuset); in main() 66 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | iopl.c | 46 cpu_set_t cpuset; in main() local 47 CPU_ZERO(&cpuset); in main() 48 CPU_SET(0, &cpuset); in main() 49 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | ldt_gdt.c | 400 cpu_set_t cpuset; in threadproc() local 401 CPU_ZERO(&cpuset); in threadproc() 402 CPU_SET(1, &cpuset); in threadproc() 403 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in threadproc() 495 cpu_set_t cpuset; in do_multicpu_tests() local 500 CPU_ZERO(&cpuset); in do_multicpu_tests() 501 CPU_SET(1, &cpuset); in do_multicpu_tests() 502 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in do_multicpu_tests() 507 CPU_ZERO(&cpuset); in do_multicpu_tests() 508 CPU_SET(0, &cpuset); in do_multicpu_tests() [all …]
|
D | fsgsbase.c | 391 cpu_set_t cpuset; in main() local 392 CPU_ZERO(&cpuset); in main() 393 CPU_SET(0, &cpuset); in main() 394 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | test_vsyscall.c | 314 cpu_set_t cpuset; in test_getcpu() local 315 CPU_ZERO(&cpuset); in test_getcpu() 316 CPU_SET(cpu, &cpuset); in test_getcpu() 317 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in test_getcpu()
|
/tools/testing/selftests/powerpc/context_switch/ |
D | cp_abort.c | 69 cpu_set_t cpuset; in test_cp_abort() local 80 CPU_ZERO(&cpuset); in test_cp_abort() 81 CPU_SET(pick_online_cpu(), &cpuset); in test_cp_abort() 82 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset)); in test_cp_abort()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-tmspr.c | 44 cpu_set_t cpuset; in tfiar_tfhar() local 46 CPU_ZERO(&cpuset); in tfiar_tfhar() 48 CPU_SET(cpu, &cpuset); in tfiar_tfhar() 49 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
|
/tools/testing/selftests/intel_pstate/ |
D | aperf.c | 24 cpu_set_t cpuset; in main() local 47 CPU_ZERO(&cpuset); in main() 48 CPU_SET(cpu, &cpuset); in main() 50 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/tools/power/cpupower/bench/ |
D | system.c | 90 cpu_set_t cpuset; in set_cpu_affinity() local 92 CPU_ZERO(&cpuset); in set_cpu_affinity() 93 CPU_SET(cpu, &cpuset); in set_cpu_affinity() 97 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | context_switch.c | 79 cpu_set_t cpuset; in start_thread_on() local 82 CPU_ZERO(&cpuset); in start_thread_on() 83 CPU_SET(cpu, &cpuset); in start_thread_on() 87 if (pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset)) { in start_thread_on() 101 cpu_set_t cpuset; in start_process_on() local 112 CPU_ZERO(&cpuset); in start_process_on() 113 CPU_SET(cpu, &cpuset); in start_process_on() 115 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in start_process_on()
|
/tools/perf/bench/ |
D | futex.h | 93 cpu_set_t *cpuset) in pthread_attr_setaffinity_np() argument 97 cpuset = cpuset; in pthread_attr_setaffinity_np()
|
/tools/virtio/ringtest/ |
D | main.c | 77 cpu_set_t cpuset; in set_affinity() local 92 CPU_ZERO(&cpuset); in set_affinity() 93 CPU_SET(cpu, &cpuset); in set_affinity() 95 ret = pthread_setaffinity_np(self, sizeof(cpu_set_t), &cpuset); in set_affinity()
|