Home
last modified time | relevance | path

Searched refs:cpuset (Results 1 – 12 of 12) sorted by relevance

/tools/testing/selftests/x86/
Dsysret_ss_attrs.c63 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()
Diopl.c46 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()
Dldt_gdt.c400 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 …]
Dfsgsbase.c391 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()
Dtest_vsyscall.c314 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/
Dcp_abort.c69 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/
Dtm-tmspr.c44 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/
Daperf.c24 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/
Dsystem.c90 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/
Dcontext_switch.c79 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/
Dfutex.h93 cpu_set_t *cpuset) in pthread_attr_setaffinity_np() argument
97 cpuset = cpuset; in pthread_attr_setaffinity_np()
/tools/virtio/ringtest/
Dmain.c77 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()