Home
last modified time | relevance | path

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

1234

/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/
Dht_affinity.c43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, m… macro
70 sched_setaffinity(pid, sizeof(unsigned long), &mask); in HT_SetAffinity()
98 sched_setaffinity(pid, sizeof(unsigned long), &mask); in HT_SetAffinity()
158 sched_setaffinity(pid, sizeof(mask), mask); in HT_GetAffinity()
166 sched_setaffinity(pid, sizeof(mask), mask); in HT_GetAffinity()
188 sched_setaffinity(pid, sizeof(mask), mask); in HT_InheritAffinity()
/third_party/rust/crates/nix/test/
Dtest_sched.rs1 use nix::sched::{sched_getaffinity, sched_getcpu, sched_setaffinity, CpuSet};
21 sched_setaffinity(Pid::from_raw(0), &new_affinity).unwrap(); in test_sched_affinity()
38 sched_setaffinity(Pid::from_raw(0), &initial_affinity).unwrap(); in test_sched_affinity()
/third_party/musl/libc-test/src/functionalext/supplement/sched/
Dsched_setaffinity.c40 int result = sched_setaffinity(0, set_size, set); in sched_setaffinity_0100()
63 int result = sched_setaffinity(0, sizeof(mask), &mask); in sched_setaffinity_0200()
Dsched_getaffinity.c34 int result = sched_setaffinity(0, sizeof(mask), &mask); in sched_getaffinity_0100()
Dtest_src_functionalext_supplement_sched.gni19 "sched_setaffinity",
/third_party/rust/crates/rustix/src/process/
Dsched.rs91 pub fn sched_setaffinity(pid: Option<Pid>, cpuset: &CpuSet) -> io::Result<()> { in sched_setaffinity() function
92 backend::process::syscalls::sched_setaffinity(pid, &cpuset.cpu_set) in sched_setaffinity()
Dmod.rs76 pub use sched::{sched_getaffinity, sched_setaffinity, CpuSet};
/third_party/ltp/testcases/realtime/stress/pi-tests/
Dtestpi-3.c107 rc = sched_setaffinity(0, sizeof(mask), &mask); in func_nonrt()
156 rc = sched_setaffinity(0, sizeof(mask), &mask); in func_rt()
212 rc = sched_setaffinity(0, sizeof(mask), &mask); in func_noise()
333 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
/third_party/toybox/toys/other/
Dtaskset.c38 #define sched_setaffinity(pid, size, cpuset) \ macro
86 if (-1 == sched_setaffinity(pid, sizeof(toybuf), (void *)mask)) in do_taskset()
/third_party/musl/porting/liteos_a_newlib/kernel/include/
Dsched.h44 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
/third_party/rust/crates/nix/src/
Dsched.rs262 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() function
264 libc::sched_setaffinity( in sched_setaffinity()
/third_party/ltp/testcases/open_posix_testsuite/include/
Daffinity.h38 return (sched_setaffinity(0, sizeof(cpu_set_t), &mask)); in set_affinity()
/third_party/musl/src/sched/
Daffinity.c7 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t *set) in sched_setaffinity() function
/third_party/musl/libc-test/src/regression/
Dmalloc-free-performance.c165 if (sched_setaffinity(0, sizeof(mask), &mask) < 0) { in main()
Dmalloc-multi-thread-performance.c35 if (sched_setaffinity(0, sizeof(mask), &mask) < 0) { in func()
/third_party/musl/porting/liteos_a/user/src/sched/
Daffinity.c7 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t *set) in sched_setaffinity() function
/third_party/ltp/testcases/kernel/syscalls/
DMakefile29 sched_getaffinity sched_setaffinity sendmsg setgroups setns sighold \
/third_party/lzma/CPP/Windows/
DSystem.h86 return sched_setaffinity(0, sizeof(cpu_set), &cpu_set) == 0;
/third_party/ltp/testcases/realtime/func/measurement/
Dpreempt_timing.c123 err = sched_setaffinity(0, sizeof(mask), &mask); in main()
/third_party/skia/third_party/externals/oboe/samples/shared/
DDefaultAudioStreamCallback.h130 int result = sched_setaffinity(current_thread_id, sizeof(cpu_set_t), &cpu_set); in setThreadAffinity()
/third_party/ltp/testcases/kernel/syscalls/getcpu/
Dgetcpu01.c73 if (sched_setaffinity(0, size, set) < 0) { in set_cpu_affinity()
/third_party/ltp/testcases/realtime/func/pi-tests/
Dtestpi-1.c187 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
Dtestpi-2.c188 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
Dtestpi-4.c188 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_syscall_test/
Dcpuset_syscall_test.c130 ret = sched_setaffinity(0, sizeof(tmask), &tmask); in test_setaffinity()

1234