/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
D | ht_affinity.c | 43 #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()
|
/external/rust/crates/nix/test/ |
D | test_sched.rs | 1 use nix::sched::{sched_getaffinity, sched_setaffinity, CpuSet}; 21 sched_setaffinity(Pid::from_raw(0), &new_affinity).unwrap(); in test_sched_affinity() 31 sched_setaffinity(Pid::from_raw(0), &initial_affinity).unwrap(); in test_sched_affinity()
|
/external/linux-kselftest/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()
|
/external/llvm-project/lldb/source/Plugins/Process/Linux/ |
D | SingleStepCheck.cpp | 103 if (sched_setaffinity(child_pid, sizeof cpus, &cpus) == -1) { in WorkaroundNeeded() 166 if (sched_setaffinity(tid, sizeof set, &set) != 0) { in Get() 181 if (sched_setaffinity(m_tid, sizeof m_original_set, &m_original_set) != 0) { in ~SingleStepWorkaround()
|
/external/crosvm/sys_util/src/ |
D | sched.rs | 10 use libc::{cpu_set_t, sched_setaffinity, CPU_SET, CPU_SETSIZE, CPU_ZERO, EINVAL}; 57 let res = unsafe { sched_setaffinity(0, mem::size_of_val(&cpuset), &cpuset) }; in set_cpu_affinity()
|
/external/ltp/testcases/realtime/stress/pi-tests/ |
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()
|
/external/toybox/toys/other/ |
D | taskset.c | 38 #define sched_setaffinity(pid, size, cpuset) \ macro 86 if (-1 == sched_setaffinity(pid, sizeof(toybuf), (void *)mask)) in do_taskset()
|
/external/strace/tests-mx32/ |
D | sched_xetaffinity.gen.test | 4 run_strace_match_diff -a28 -e trace=sched_getaffinity,sched_setaffinity
|
/external/strace/tests-m32/ |
D | sched_xetaffinity.gen.test | 4 run_strace_match_diff -a28 -e trace=sched_getaffinity,sched_setaffinity
|
/external/strace/tests/ |
D | sched_xetaffinity.gen.test | 4 run_strace_match_diff -a28 -e trace=sched_getaffinity,sched_setaffinity
|
/external/libchrome/ipc/ |
D | ipc_perftest_util.cc | 83 auto set_result = sched_setaffinity(0, sizeof(cpuset), &cpuset); in LockThreadAffinity() 98 auto set_result = sched_setaffinity(0, sizeof(old_cpuset_), &old_cpuset_); in ~LockThreadAffinity()
|
/external/rust/crates/nix/src/ |
D | sched.rs | 132 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() function 134 libc::sched_setaffinity( in sched_setaffinity()
|
/external/perfetto/tools/skippy/ |
D | skippy.cc | 35 sched_setaffinity(0 /* calling process */, sizeof(cpu_set_t), &set) == 0); in SetAffinity()
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | sysret_ss_attrs.c | 58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/ |
D | tm-poison.c | 41 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tm_poison_test()
|
D | tm-tmspr.c | 48 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | affinity.h | 38 return (sched_setaffinity(0, sizeof(cpu_set_t), &mask)); in set_affinity()
|
/external/linux-kselftest/tools/testing/selftests/powerpc/dscr/ |
D | dscr_sysfs_thread_test.c | 44 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
|
/external/autotest/client/tests/tsc/src/ |
D | checktsc.c | 183 if (sched_setaffinity(0, sizeof cpus, &cpus) < 0) { in set_cpu_affinity() 372 sched_setaffinity(0, sizeof cpus, &cpus); in main()
|
/external/ltp/testcases/kernel/syscalls/ |
D | Makefile | 43 sched_getaffinity sched_setaffinity sendmsg setgroups setns sighold \
|
/external/strace/ |
D | affinity.c | 100 SYS_FUNC(sched_setaffinity) in SYS_FUNC() argument
|
/external/crosvm/seccomp/x86_64/ |
D | video_device.policy | 35 sched_setaffinity: 1
|
/external/linux-kselftest/tools/testing/selftests/intel_pstate/ |
D | aperf.c | 53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
|
/external/autotest/client/tests/monotonic_time/src/ |
D | threads.c | 38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0) in run_thread()
|
/external/oboe/samples/shared/ |
D | DefaultDataCallback.h | 121 int result = sched_setaffinity(current_thread_id, sizeof(cpu_set_t), &cpu_set); in setThreadAffinity()
|