Searched refs:cpu_set_t (Results 1 – 10 of 10) sorted by relevance
/bionic/libc/bionic/ |
D | sched_cpualloc.c | 32 cpu_set_t* __sched_cpualloc(size_t count) in __sched_cpualloc() 37 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count)); // NOLINT in __sched_cpualloc() 40 void __sched_cpufree(cpu_set_t* set) in __sched_cpufree()
|
D | sched_getaffinity.cpp | 33 extern "C" int __sched_getaffinity(pid_t, size_t, cpu_set_t*); 35 int sched_getaffinity(pid_t pid, size_t set_size, cpu_set_t* set) { in sched_getaffinity()
|
D | sched_cpucount.c | 31 int __sched_cpucount(size_t setsize, const cpu_set_t* set) { in __sched_cpucount()
|
/bionic/libc/include/ |
D | sched.h | 75 } cpu_set_t; typedef 77 int sched_setaffinity(pid_t __pid, size_t __set_size, const cpu_set_t* __set) __INTRODUCED_IN(12); 78 int sched_getaffinity(pid_t __pid, size_t __set_size, cpu_set_t* __set) __INTRODUCED_IN(12); 80 #define CPU_ZERO(set) CPU_ZERO_S(sizeof(cpu_set_t), set) 81 #define CPU_SET(cpu, set) CPU_SET_S(cpu, sizeof(cpu_set_t), set) 82 #define CPU_CLR(cpu, set) CPU_CLR_S(cpu, sizeof(cpu_set_t), set) 83 #define CPU_ISSET(cpu, set) CPU_ISSET_S(cpu, sizeof(cpu_set_t), set) 84 #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set) 85 #define CPU_EQUAL(set1, set2) CPU_EQUAL_S(sizeof(cpu_set_t), set1, set2) 91 #define __CPU_OP(dst, set1, set2, op) __CPU_OP_S(sizeof(cpu_set_t), dst, set1, set2, op) [all …]
|
/bionic/tests/ |
D | sched_test.cpp | 71 cpu_set_t set; in TEST() 86 cpu_set_t set; in TEST() 98 cpu_set_t set; in TEST() 108 cpu_set_t set; in TEST() 127 cpu_set_t set1; in TEST() 128 cpu_set_t set2; in TEST() 139 cpu_set_t set1; in TEST() 140 cpu_set_t set2; in TEST() 141 cpu_set_t set3; in TEST() 168 cpu_set_t* set = CPU_ALLOC(17); in TEST() [all …]
|
D | pty_test.cpp | 84 cpu_set_t cpus; in PtyReader_28979140() 85 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus)); in PtyReader_28979140() 87 ASSERT_EQ(0, sched_setaffinity(0, sizeof(cpu_set_t), &cpus)); in PtyReader_28979140() 109 cpu_set_t cpus; in TEST() 110 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus)); in TEST() 148 ASSERT_EQ(0, sched_setaffinity(0, sizeof(cpu_set_t), &cpus)); in TEST()
|
D | sys_ptrace_test.cpp | 198 cpu_set_t cpus; in watchpoint_stress_child() 220 cpu_set_t available_cpus; in TEST()
|
/bionic/benchmarks/ |
D | util.cpp | 75 cpu_set_t cpuset; in LockToCPU()
|
/bionic/tools/versioner/src/ |
D | versioner.cpp | 73 cpu_set_t cpu_set; in getCpuCount()
|
/bionic/libc/ |
D | SYSCALLS.TXT | 286 int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) all 289 int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all
|