/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
H A D | ht_affinity.c | 40 //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 D | test_sched.rs | 1 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 D | sched_setaffinity.c | 40 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 D | sched_getaffinity.c | 34 int result = sched_setaffinity(0, sizeof(mask), &mask); in sched_getaffinity_0100()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | sched.rs | 6 /// `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 D | testpi-3.c | 107 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 D | taskset.c | 38 #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 D | sched.h | 44 int sched_setaffinity(pid_t, size_t, const cpu_set_t *);
|
/third_party/rust/crates/nix/src/ |
H A D | sched.rs | 167 /// 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 D | affinity.h | 38 return (sched_setaffinity(0, sizeof(cpu_set_t), &mask)); in set_affinity()
|
/third_party/lzma/CPP/Windows/ |
H A D | System.h | 86 return sched_setaffinity(0, sizeof(cpu_set), &cpu_set) == 0;
|
/third_party/musl/libc-test/src/regression/ |
H A D | malloc-free-performance.c | 165 if (sched_setaffinity(0, sizeof(mask), &mask) < 0) { in main()
|
H A D | malloc-multi-thread-performance.c | 35 if (sched_setaffinity(0, sizeof(mask), &mask) < 0) { in func()
|
/third_party/musl/porting/liteos_a/user/src/sched/ |
H A D | affinity.c | 7 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 D | starvation.c | 57 TST_EXP_POSITIVE(sched_setaffinity(0, sizeof(mask), &mask)); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/ |
H A D | Makefile | 29 sched_getaffinity sched_setaffinity sendmsg setgroups setns sighold \
|
/third_party/musl/src/sched/ |
H A D | affinity.c | 7 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 D | preempt_timing.c | 123 err = sched_setaffinity(0, sizeof(mask), &mask); in main()
|
/third_party/skia/third_party/externals/oboe/samples/shared/ |
H A D | DefaultAudioStreamCallback.h | 130 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 D | cpufreq_boost.c | 131 if (sched_setaffinity(0, sizeof(cpu_set_t), &set) < 0) in setup()
|
/third_party/ltp/testcases/kernel/syscalls/nice/ |
H A D | nice05.c | 95 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 D | getcpu01.c | 59 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 D | testpi-2.c | 188 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
|
H A D | testpi-4.c | 188 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
|
H A D | testpi-1.c | 187 retc = sched_setaffinity(0, sizeof(mask), &mask); in main()
|