/tools/testing/selftests/x86/ |
D | sysret_ss_attrs.c | 55 cpu_set_t cpuset; in main() local 56 CPU_ZERO(&cpuset); in main() 57 CPU_SET(0, &cpuset); in main() 58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | ioperm.c | 90 cpu_set_t cpuset; in main() local 91 CPU_ZERO(&cpuset); in main() 92 CPU_SET(0, &cpuset); in main() 93 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | iopl.c | 174 cpu_set_t cpuset; in main() local 176 CPU_ZERO(&cpuset); in main() 177 CPU_SET(0, &cpuset); in main() 178 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | ldt_gdt.c | 437 cpu_set_t cpuset; in threadproc() local 438 CPU_ZERO(&cpuset); in threadproc() 439 CPU_SET(1, &cpuset); in threadproc() 440 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in threadproc() 532 cpu_set_t cpuset; in do_multicpu_tests() local 537 CPU_ZERO(&cpuset); in do_multicpu_tests() 538 CPU_SET(1, &cpuset); in do_multicpu_tests() 539 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in do_multicpu_tests() 544 CPU_ZERO(&cpuset); in do_multicpu_tests() 545 CPU_SET(0, &cpuset); in do_multicpu_tests() [all …]
|
D | test_vdso.c | 139 cpu_set_t cpuset; in test_getcpu() local 140 CPU_ZERO(&cpuset); in test_getcpu() 141 CPU_SET(cpu, &cpuset); in test_getcpu() 142 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in test_getcpu()
|
D | test_vsyscall.c | 320 cpu_set_t cpuset; in test_getcpu() local 321 CPU_ZERO(&cpuset); in test_getcpu() 322 CPU_SET(cpu, &cpuset); in test_getcpu() 323 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) { in test_getcpu()
|
D | fsgsbase.c | 625 cpu_set_t cpuset; in main() local 626 CPU_ZERO(&cpuset); in main() 627 CPU_SET(0, &cpuset); in main() 628 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
/tools/testing/selftests/powerpc/tm/ |
D | tm-poison.c | 30 cpu_set_t cpuset; in tm_poison_test() local 42 CPU_ZERO(&cpuset); in tm_poison_test() 43 CPU_SET(cpu, &cpuset); in tm_poison_test() 44 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0); in tm_poison_test()
|
D | tm-trap.c | 253 cpu_set_t cpuset; in tm_trap_test() local 273 CPU_ZERO(&cpuset); in tm_trap_test() 274 CPU_SET(cpu, &cpuset); in tm_trap_test() 286 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_trap_test()
|
D | tm-unavailable.c | 344 cpu_set_t cpuset; in tm_unavailable_test() local 352 CPU_ZERO(&cpuset); in tm_unavailable_test() 353 CPU_SET(cpu, &cpuset); in tm_unavailable_test() 361 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in tm_unavailable_test()
|
/tools/testing/selftests/powerpc/benchmarks/ |
D | fork.c | 32 cpu_set_t cpuset; in set_cpu() local 37 CPU_ZERO(&cpuset); in set_cpu() 38 CPU_SET(cpu, &cpuset); in set_cpu() 40 if (sched_setaffinity(0, sizeof(cpuset), &cpuset)) { in set_cpu() 137 cpu_set_t cpuset; in bench_thread() local 149 CPU_ZERO(&cpuset); in bench_thread() 150 CPU_SET(cpu, &cpuset); in bench_thread() 152 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in bench_thread()
|
D | context_switch.c | 78 cpu_set_t cpuset; in start_thread_on() local 81 CPU_ZERO(&cpuset); in start_thread_on() 82 CPU_SET(cpu, &cpuset); in start_thread_on() 91 rc = pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in start_thread_on() 109 cpu_set_t *cpuset; in start_process_on() local 123 cpuset = CPU_ALLOC(ncpus); in start_process_on() 124 if (!cpuset) { in start_process_on() 128 CPU_ZERO_S(size, cpuset); in start_process_on() 129 CPU_SET_S(cpu, size, cpuset); in start_process_on() 131 if (sched_setaffinity(0, size, cpuset)) { in start_process_on() [all …]
|
/tools/testing/selftests/intel_pstate/ |
D | aperf.c | 31 cpu_set_t cpuset; in main() local 54 CPU_ZERO(&cpuset); in main() 55 CPU_SET(cpu, &cpuset); in main() 57 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/tools/power/cpupower/bench/ |
D | system.c | 77 cpu_set_t cpuset; in set_cpu_affinity() local 79 CPU_ZERO(&cpuset); in set_cpu_affinity() 80 CPU_SET(cpu, &cpuset); in set_cpu_affinity() 84 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
|
/tools/testing/selftests/bpf/prog_tests/ |
D | test_overhead.c | 49 cpu_set_t cpuset; in setaffinity() local 52 CPU_ZERO(&cpuset); in setaffinity() 53 CPU_SET(cpu, &cpuset); in setaffinity() 54 sched_setaffinity(0, sizeof(cpuset), &cpuset); in setaffinity()
|
/tools/testing/selftests/bpf/ |
D | test_tcpnotify_user.c | 82 cpu_set_t cpuset; in main() local 85 CPU_ZERO(&cpuset); in main() 86 CPU_SET(0, &cpuset); in main() 87 pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in main()
|
D | bench.c | 267 cpu_set_t cpuset; in set_thread_affinity() local 269 CPU_ZERO(&cpuset); in set_thread_affinity() 270 CPU_SET(cpu, &cpuset); in set_thread_affinity() 271 if (pthread_setaffinity_np(thread, sizeof(cpuset), &cpuset)) { in set_thread_affinity()
|
/tools/testing/selftests/vm/ |
D | hugetlb_reparenting_test.sh | 131 echo 0 >$CGROUP_ROOT/a/cpuset.mems 132 echo 0 >$CGROUP_ROOT/a/cpuset.cpus 138 echo 0 >$CGROUP_ROOT/a/b/cpuset.mems 139 echo 0 >$CGROUP_ROOT/a/b/cpuset.cpus 154 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.mems 155 echo 0 >$CGROUP_ROOT/$cgroup/cpuset.cpus
|
/tools/perf/bench/ |
D | futex-requeue.c | 90 cpu_set_t cpuset; in block_threads() local 97 CPU_ZERO(&cpuset); in block_threads() 98 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 100 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
D | futex-wake.c | 96 cpu_set_t cpuset; in block_threads() local 103 CPU_ZERO(&cpuset); in block_threads() 104 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 106 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
D | futex-hash.c | 123 cpu_set_t cpuset; in bench_futex_hash() local 172 CPU_ZERO(&cpuset); in bench_futex_hash() 173 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in bench_futex_hash() 175 ret = pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset); in bench_futex_hash()
|
D | futex-lock-pi.c | 121 cpu_set_t cpuset; in create_threads() local 136 CPU_ZERO(&cpuset); in create_threads() 137 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in create_threads() 139 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in create_threads()
|
D | futex-wake-parallel.c | 144 cpu_set_t cpuset; in block_threads() local 151 CPU_ZERO(&cpuset); in block_threads() 152 CPU_SET(cpu->map[i % cpu->nr], &cpuset); in block_threads() 154 if (pthread_attr_setaffinity_np(&thread_attr, sizeof(cpu_set_t), &cpuset)) in block_threads()
|
/tools/virtio/ringtest/ |
D | main.c | 78 cpu_set_t cpuset; in set_affinity() local 93 CPU_ZERO(&cpuset); in set_affinity() 94 CPU_SET(cpu, &cpuset); in set_affinity() 96 ret = pthread_setaffinity_np(self, sizeof(cpu_set_t), &cpuset); in set_affinity()
|
/tools/testing/selftests/kvm/ |
D | steal_time.c | 278 cpu_set_t cpuset; in main() local 288 CPU_ZERO(&cpuset); in main() 289 CPU_SET(0, &cpuset); in main() 291 pthread_attr_setaffinity_np(&attr, sizeof(cpu_set_t), &cpuset); in main() 292 pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); in main()
|