/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/ |
D | process_test_045.cpp | 46 ret = sched_setaffinity(getpid(), 0, &cpuset); in Testcase() 54 ret = sched_setaffinity(-15, sizeof(cpu_set_t), &cpuset); // -15, pid num in Testcase() 58 ret = sched_setaffinity(1, sizeof(cpu_set_t), &cpuset); // init process, no permission in Testcase() 62 ret = sched_setaffinity(128, sizeof(cpu_set_t), &cpuset); // 128, pid num in Testcase()
|
D | process_test_046.cpp | 52 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase() 57 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
/kernel/linux/linux-5.10/tools/testing/selftests/rseq/ |
D | basic_test.c | 26 sched_setaffinity(0, sizeof(test_affinity), in test_cpu_pointer() 35 sched_setaffinity(0, sizeof(affinity), &affinity); in test_cpu_pointer()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
D | affinity.c | 61 sched_setaffinity(0, cpu_set_size, (cpu_set_t *)a->sched_cpus); in affinity__set() 70 sched_setaffinity(0, cpu_set_size, (cpu_set_t *)a->orig_cpus); in affinity__cleanup()
|
/kernel/liteos_a/testsuites/unittest/process/basic/process/smp/ |
D | process_test_smp_006.cpp | 40 ret = sched_setaffinity(0, sizeof(cpu_set_t), &cpuset); in PthreadTest01() 68 ret = sched_setaffinity(0, sizeof(cpu_set_t), &cpuset); in Testcase()
|
D | process_test_smp_002.cpp | 82 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase() 106 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &initCpuset); in Testcase()
|
D | process_test_smp_008.cpp | 54 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in PthreadTest01() 90 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
D | process_test_smp_004.cpp | 41 ret = sched_setaffinity(getpid(), 0, &cpuset); in Testcase()
|
D | process_test_smp_001.cpp | 46 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
D | mmap-basic.c | 63 sched_setaffinity(0, sizeof(cpu_set), &cpu_set); in test__basic_mmap() 64 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__basic_mmap()
|
D | openat-syscall-all-cpus.c | 75 if (sched_setaffinity(0, sizeof(cpu_set), &cpu_set) < 0) { in test__openat_syscall_event_on_all_cpus()
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | cpustat_user.c | 137 sched_setaffinity(0, sizeof(cpumask), &cpumask); in cpu_stat_inject_cpu_idle_event() 141 sched_setaffinity(0, sizeof(original_cpumask), &original_cpumask); in cpu_stat_inject_cpu_idle_event()
|
/kernel/linux/linux-5.10/tools/testing/selftests/x86/ |
D | sysret_ss_attrs.c | 58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
D | ioperm.c | 93 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/ |
D | tm-poison.c | 44 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0); in tm_poison_test()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/ |
D | dscr_sysfs_thread_test.c | 44 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.h | 90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
|
/kernel/liteos_a/testsuites/unittest/container/full/ |
D | It_pid_container_008.cpp | 47 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in ChildFun()
|
/kernel/liteos_a/compat/posix/src/ |
D | sched.c | 62 int sched_setaffinity(pid_t pid, size_t set_size, const cpu_set_t* set) in sched_setaffinity() function
|
/kernel/linux/linux-5.10/kernel/ |
D | compat.c | 124 COMPAT_SYSCALL_DEFINE3(sched_setaffinity, compat_pid_t, pid, in COMPAT_SYSCALL_DEFINE3() argument 138 retval = sched_setaffinity(pid, new_mask); in COMPAT_SYSCALL_DEFINE3()
|
/kernel/linux/linux-5.10/tools/power/cpupower/bench/ |
D | system.c | 84 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
|
/kernel/linux/linux-5.10/tools/testing/selftests/intel_pstate/ |
D | aperf.c | 57 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/kernel/linux/linux-5.10/tools/lib/perf/tests/ |
D | test-evlist.c | 363 err = sched_setaffinity(0, sizeof(mask), &mask); in test_mmap_cpus() 369 err = sched_setaffinity(0, sizeof(saved_mask), &saved_mask); in test_mmap_cpus()
|
/kernel/linux/linux-5.10/tools/virtio/virtio-trace/ |
D | trace-agent-rw.c | 100 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
|
/kernel/linux/linux-5.10/kernel/trace/ |
D | trace_hwlat.c | 313 sched_setaffinity(0, current_mask); in move_to_next_cpu() 388 sched_setaffinity(kthread->pid, current_mask); in start_kthread()
|