Home
last modified time | relevance | path

Searched refs:sched_setaffinity (Results 1 – 25 of 84) sorted by relevance

1234

/kernel/liteos_a/testsuites/unittest/process/basic/process/smoke/
Dprocess_test_045.cpp46 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()
Dprocess_test_046.cpp52 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/
Dbasic_test.c26 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/
Daffinity.c61 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/
Dprocess_test_smp_006.cpp40 ret = sched_setaffinity(0, sizeof(cpu_set_t), &cpuset); in PthreadTest01()
68 ret = sched_setaffinity(0, sizeof(cpu_set_t), &cpuset); in Testcase()
Dprocess_test_smp_002.cpp82 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
106 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &initCpuset); in Testcase()
Dprocess_test_smp_008.cpp54 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in PthreadTest01()
90 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
Dprocess_test_smp_004.cpp41 ret = sched_setaffinity(getpid(), 0, &cpuset); in Testcase()
Dprocess_test_smp_001.cpp46 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in Testcase()
/kernel/linux/linux-5.10/tools/perf/tests/
Dmmap-basic.c63 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()
Dopenat-syscall-all-cpus.c75 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/
Dcpustat_user.c137 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/
Dsysret_ss_attrs.c58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
Dioperm.c93 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/tm/
Dtm-poison.c44 FAIL_IF(sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0); in tm_poison_test()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_thread_test.c44 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
Dcpupower-monitor.h90 return sched_setaffinity(getpid(), sizeof(set), &set); in bind_cpu()
/kernel/liteos_a/testsuites/unittest/container/full/
DIt_pid_container_008.cpp47 ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset); in ChildFun()
/kernel/liteos_a/compat/posix/src/
Dsched.c62 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/
Dcompat.c124 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/
Dsystem.c84 if (sched_setaffinity(getpid(), sizeof(cpu_set_t), &cpuset) < 0) { in set_cpu_affinity()
/kernel/linux/linux-5.10/tools/testing/selftests/intel_pstate/
Daperf.c57 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
/kernel/linux/linux-5.10/tools/lib/perf/tests/
Dtest-evlist.c363 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/
Dtrace-agent-rw.c100 if (sched_setaffinity(0, sizeof(mask), &mask) == -1) in bind_cpu()
/kernel/linux/linux-5.10/kernel/trace/
Dtrace_hwlat.c313 sched_setaffinity(0, current_mask); in move_to_next_cpu()
388 sched_setaffinity(kthread->pid, current_mask); in start_kthread()

1234