Home
last modified time | relevance | path

Searched refs:sched_setaffinity (Results 1 - 25 of 51) sorted by relevance

123

/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/
H A Dht_affinity.c40 //Any application program can invoke these system call using sched_setaffinity() and sched_getaffinity(),
43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, mask) 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/
H A 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/
H A 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()
H A Dsched_getaffinity.c34 int result = sched_setaffinity(0, sizeof(mask), &mask); in sched_getaffinity_0100()
/third_party/rust/crates/rustix/src/process/
H A Dsched.rs6 /// `CpuSet`s are used by [`sched_setaffinity`] and [`sched_getaffinity`], for
13 /// [`sched_setaffinity`]: crate::process::sched_setaffinity
78 /// `sched_setaffinity(pid, cpuset)`—Set a thread's CPU affinity mask.
89 /// [Linux]: https://man7.org/linux/man-pages/man2/sched_setaffinity.2.html
91 pub fn sched_setaffinity(pid: Option<Pid>, cpuset: &CpuSet) -> io::Result<()> { in sched_setaffinity() functions
92 backend::process::syscalls::sched_setaffinity(pid, &cpuset.cpu_set) in sched_setaffinity()
/third_party/ltp/testcases/realtime/stress/pi-tests/
H A 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/
H A 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/
H A Dsched.h44 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
/third_party/rust/crates/nix/src/
H A Dsched.rs167 /// CpuSets are used by sched_setaffinity and
241 /// `sched_setaffinity` set a thread's CPU affinity mask
242 /// ([`sched_setaffinity(2)`](https://man7.org/linux/man-pages/man2/sched_setaffinity.2.html))
255 /// use nix::sched::{CpuSet, sched_setaffinity};
260 /// sched_setaffinity(Pid::from_raw(0), &cpu_set).unwrap();
262 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() functions
264 libc::sched_setaffinity( in sched_setaffinity()
/third_party/ltp/testcases/open_posix_testsuite/include/
H A Daffinity.h38 return (sched_setaffinity(0, sizeof(cpu_set_t), &mask)); in set_affinity()
/third_party/lzma/CPP/Windows/
H A DSystem.h86 return sched_setaffinity(0, sizeof(cpu_set), &cpu_set) == 0;
/third_party/musl/libc-test/src/regression/
H A Dmalloc-free-performance.c165 if (sched_setaffinity(0, sizeof(mask), &mask) < 0) { in main()
H A Dmalloc-multi-thread-performance.c35 if (sched_setaffinity(0, sizeof(mask), &mask) < 0) { in func()
/third_party/musl/porting/liteos_a/user/src/sched/
H A 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/sched/cfs-scheduler/
H A Dstarvation.c57 TST_EXP_POSITIVE(sched_setaffinity(0, sizeof(mask), &mask)); in setup()
/third_party/ltp/testcases/kernel/syscalls/
H A DMakefile29 sched_getaffinity sched_setaffinity sendmsg setgroups setns sighold \
/third_party/musl/src/sched/
H A Daffinity.c7 int sched_setaffinity(pid_t tid, size_t size, const cpu_set_t *set) in sched_setaffinity() function
/third_party/ltp/testcases/realtime/func/measurement/
H A Dpreempt_timing.c123 err = sched_setaffinity(0, sizeof(mask), &mask); in main()
/third_party/skia/third_party/externals/oboe/samples/shared/
H A DDefaultAudioStreamCallback.h130 int result = sched_setaffinity(current_thread_id, sizeof(cpu_set_t), &cpu_set); in setThreadAffinity()
/third_party/ltp/testcases/kernel/device-drivers/cpufreq/
H A Dcpufreq_boost.c131 if (sched_setaffinity(0, sizeof(cpu_set_t), &set) < 0) in setup()
/third_party/ltp/testcases/kernel/syscalls/nice/
H A Dnice05.c95 if (sched_setaffinity(0, size, set) < 0) in setup()
96 tst_brk(TBROK | TERRNO, "sched_setaffinity()"); in setup()
/third_party/ltp/testcases/kernel/syscalls/getcpu/
H A Dgetcpu01.c59 if (sched_setaffinity(0, size, set) < 0) { in set_cpu_affinity()
61 tst_brk(TBROK | TERRNO, "sched_setaffinity()"); in set_cpu_affinity()
/third_party/ltp/testcases/realtime/func/pi-tests/
H A Dtestpi-2.c188 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
H A Dtestpi-4.c188 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
H A Dtestpi-1.c187 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()

Completed in 8 milliseconds

123