Home
last modified time | relevance | path

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

123456

/external/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()
/external/rust/crates/nix/test/
Dtest_sched.rs1 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/
Dbasic_test.c26 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/
DSingleStepCheck.cpp103 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/
Dsched.rs10 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/
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()
/external/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()
/external/strace/tests-mx32/
Dsched_xetaffinity.gen.test4 run_strace_match_diff -a28 -e trace=sched_getaffinity,sched_setaffinity
/external/strace/tests-m32/
Dsched_xetaffinity.gen.test4 run_strace_match_diff -a28 -e trace=sched_getaffinity,sched_setaffinity
/external/strace/tests/
Dsched_xetaffinity.gen.test4 run_strace_match_diff -a28 -e trace=sched_getaffinity,sched_setaffinity
/external/libchrome/ipc/
Dipc_perftest_util.cc83 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/
Dsched.rs132 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() function
134 libc::sched_setaffinity( in sched_setaffinity()
/external/perfetto/tools/skippy/
Dskippy.cc35 sched_setaffinity(0 /* calling process */, sizeof(cpu_set_t), &set) == 0); in SetAffinity()
/external/linux-kselftest/tools/testing/selftests/x86/
Dsysret_ss_attrs.c58 if (sched_setaffinity(0, sizeof(cpuset), &cpuset) != 0) in main()
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/
Dtm-poison.c41 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tm_poison_test()
Dtm-tmspr.c48 sched_setaffinity(0, sizeof(cpuset), &cpuset); in tfiar_tfhar()
/external/ltp/testcases/open_posix_testsuite/include/
Daffinity.h38 return (sched_setaffinity(0, sizeof(cpu_set_t), &mask)); in set_affinity()
/external/linux-kselftest/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_thread_test.c44 if (sched_setaffinity(0, sizeof(mask), &mask)) in check_cpu_dscr_thread()
/external/autotest/client/tests/tsc/src/
Dchecktsc.c183 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/
DMakefile43 sched_getaffinity sched_setaffinity sendmsg setgroups setns sighold \
/external/strace/
Daffinity.c100 SYS_FUNC(sched_setaffinity) in SYS_FUNC() argument
/external/crosvm/seccomp/x86_64/
Dvideo_device.policy35 sched_setaffinity: 1
/external/linux-kselftest/tools/testing/selftests/intel_pstate/
Daperf.c53 if (sched_setaffinity(0, sizeof(cpu_set_t), &cpuset)) { in main()
/external/autotest/client/tests/monotonic_time/src/
Dthreads.c38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0) in run_thread()
/external/oboe/samples/shared/
DDefaultDataCallback.h121 int result = sched_setaffinity(current_thread_id, sizeof(cpu_set_t), &cpu_set); in setThreadAffinity()

123456