/bionic/libc/bionic/ |
sched_cpualloc.c | 32 cpu_set_t* __sched_cpualloc(size_t count) 34 return (cpu_set_t*) malloc(CPU_ALLOC_SIZE(count)); 37 void __sched_cpufree(cpu_set_t* set)
|
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) {
|
sched_cpucount.c | 31 int __sched_cpucount(size_t setsize, cpu_set_t* set)
|
/external/chromium_org/third_party/skia/src/utils/ |
SkThreadUtils_pthread_linux.cpp | 17 static int nth_set_cpu(unsigned int n, cpu_set_t* cpuSet) { 35 cpu_set_t parentCpuset; 36 if (0 != pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &parentCpuset)) { 40 cpu_set_t cpuset; 44 sizeof(cpu_set_t),
|
/external/skia/src/utils/ |
SkThreadUtils_pthread_linux.cpp | 17 static int nth_set_cpu(unsigned int n, cpu_set_t* cpuSet) { 35 cpu_set_t parentCpuset; 36 if (0 != pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &parentCpuset)) { 40 cpu_set_t cpuset; 44 sizeof(cpu_set_t),
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/ |
sched.h | 72 # define CPU_SET(cpu, cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp) 73 # define CPU_CLR(cpu, cpusetp) __CPU_CLR_S (cpu, sizeof (cpu_set_t), cpusetp) 74 # define CPU_ISSET(cpu, cpusetp) __CPU_ISSET_S (cpu, sizeof (cpu_set_t), \ 76 # define CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) 77 # define CPU_COUNT(cpusetp) __CPU_COUNT_S (sizeof (cpu_set_t), cpusetp) 87 __CPU_EQUAL_S (sizeof (cpu_set_t), cpusetp1, cpusetp2) 92 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, &) 94 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, |) 96 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, ^) 111 __const cpu_set_t *__cpuset) __THROW [all...] |
pthread.h | 390 __const cpu_set_t *__cpuset) 397 cpu_set_t *__cpuset) 447 __const cpu_set_t *__cpuset) 452 cpu_set_t *__cpuset) [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/ |
sched.h | 72 # define CPU_SET(cpu, cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp) 73 # define CPU_CLR(cpu, cpusetp) __CPU_CLR_S (cpu, sizeof (cpu_set_t), cpusetp) 74 # define CPU_ISSET(cpu, cpusetp) __CPU_ISSET_S (cpu, sizeof (cpu_set_t), \ 76 # define CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) 77 # define CPU_COUNT(cpusetp) __CPU_COUNT_S (sizeof (cpu_set_t), cpusetp) 87 __CPU_EQUAL_S (sizeof (cpu_set_t), cpusetp1, cpusetp2) 92 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, &) 94 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, |) 96 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, ^) 111 __const cpu_set_t *__cpuset) __THROW [all...] |
pthread.h | 390 __const cpu_set_t *__cpuset) 397 cpu_set_t *__cpuset) 447 __const cpu_set_t *__cpuset) 452 cpu_set_t *__cpuset) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/ |
sched.h | 72 # define CPU_SET(cpu, cpusetp) __CPU_SET_S (cpu, sizeof (cpu_set_t), cpusetp) 73 # define CPU_CLR(cpu, cpusetp) __CPU_CLR_S (cpu, sizeof (cpu_set_t), cpusetp) 74 # define CPU_ISSET(cpu, cpusetp) __CPU_ISSET_S (cpu, sizeof (cpu_set_t), \ 76 # define CPU_ZERO(cpusetp) __CPU_ZERO_S (sizeof (cpu_set_t), cpusetp) 77 # define CPU_COUNT(cpusetp) __CPU_COUNT_S (sizeof (cpu_set_t), cpusetp) 87 __CPU_EQUAL_S (sizeof (cpu_set_t), cpusetp1, cpusetp2) 92 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, &) 94 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, |) 96 __CPU_OP_S (sizeof (cpu_set_t), destset, srcset1, srcset2, ^) 111 __const cpu_set_t *__cpuset) __THROW [all...] |
pthread.h | 390 __const cpu_set_t *__cpuset) 397 cpu_set_t *__cpuset) 447 __const cpu_set_t *__cpuset) 452 cpu_set_t *__cpuset) [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/bits/ |
sched.h | 107 /* Type for array elements in 'cpu_set_t'. */ 118 } cpu_set_t; typedef in typeref:struct:__anon37297 129 cpu_set_t *__arr = (cpusetp); \ 160 ({ cpu_set_t *__arr1 = (cpusetp1); \ 161 cpu_set_t *__arr2 = (cpusetp2); \ 172 ({ cpu_set_t *__dest = (destset); \ 173 cpu_set_t *__arr1 = (srcset1); \ 174 cpu_set_t *__arr2 = (srcset2); \ 188 extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 190 extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/bits/ |
sched.h | 107 /* Type for array elements in 'cpu_set_t'. */ 118 } cpu_set_t; typedef in typeref:struct:__anon38887 129 cpu_set_t *__arr = (cpusetp); \ 160 ({ cpu_set_t *__arr1 = (cpusetp1); \ 161 cpu_set_t *__arr2 = (cpusetp2); \ 172 ({ cpu_set_t *__dest = (destset); \ 173 cpu_set_t *__arr1 = (srcset1); \ 174 cpu_set_t *__arr2 = (srcset2); \ 188 extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 190 extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/bits/ |
sched.h | 107 /* Type for array elements in 'cpu_set_t'. */ 118 } cpu_set_t; typedef in typeref:struct:__anon40402 129 cpu_set_t *__arr = (cpusetp); \ 160 ({ cpu_set_t *__arr1 = (cpusetp1); \ 161 cpu_set_t *__arr2 = (cpusetp2); \ 172 ({ cpu_set_t *__dest = (destset); \ 173 cpu_set_t *__arr1 = (srcset1); \ 174 cpu_set_t *__arr2 = (srcset2); \ 188 extern int __sched_cpucount (size_t __setsize, const cpu_set_t *__setp) 190 extern cpu_set_t *__sched_cpualloc (size_t __count) __THROW __wur [all...] |
/external/stressapptest/src/ |
sattypes.h | 93 // cpu_set_t versus those that take unsigned long. -johnhuang 94 typedef uint64 cpu_set_t; typedef 95 #define CPU_SETSIZE (sizeof(cpu_set_t) * 8) 102 static inline bool cpuset_isequal(const cpu_set_t *c1, const cpu_set_t *c2) { 109 static inline bool cpuset_issubset(const cpu_set_t *c1, const cpu_set_t *c2) { 116 static inline int cpuset_count(const cpu_set_t *cpuset) { 124 static inline void cpuset_set_ab(cpu_set_t *cpuset, int a, int b) { 130 static inline string cpuset_format(const cpu_set_t *cpuset) [all...] |
worker.h | 274 void set_cpu_mask(cpu_set_t *mask) { 285 bool AvailableCpus(cpu_set_t *cpuset); 287 bool CurrentCpus(cpu_set_t *cpuset); 290 cpu_set_t current_cpus; 298 bool BindToCpus(const cpu_set_t *cpuset); 381 cpu_set_t cpu_mask_; // Cores this thread is allowed to run on.
|
os.h | 83 virtual cpu_set_t *FindCoreMask(int32 region); 277 vector<cpu_set_t> cpu_sets_; // Cache for cpu masks.
|
/bionic/libc/include/ |
sched.h | 100 } cpu_set_t; typedef in typeref:struct:__anon91 102 extern int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set); 104 extern int sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set); 106 /* Provide optimized implementation for 32-bit cpu_set_t */ 148 # define CPU_ZERO(set_) CPU_ZERO_S(sizeof(cpu_set_t), set_) 149 # define CPU_SET(cpu_,set_) CPU_SET_S(cpu_,sizeof(cpu_set_t),set_) 150 # define CPU_CLR(cpu_,set_) CPU_CLR_S(cpu_,sizeof(cpu_set_t),set_) 151 # define CPU_ISSET(cpu_,set_) CPU_ISSET_S(cpu_,sizeof(cpu_set_t),set_) 152 # define CPU_COUNT(set_) CPU_COUNT_S(sizeof(cpu_set_t),set_) 153 # define CPU_EQUAL(set1_,set2_) CPU_EQUAL_S(sizeof(cpu_set_t),set1_,set2_ [all...] |
/external/chromium_org/third_party/smhasher/src/ |
Platform.cpp | 29 cpu_set_t mask;
|
/system/extras/tests/bionic/libc/common/ |
test_cpu_set.c | 67 test_1(cpu_set_t* set) 69 cpu_set_t other[1]; 130 test_1_s(size_t setsize, cpu_set_t* set) 133 cpu_set_t* other; 196 cpu_set_t set0; 203 cpu_set_t* set = CPU_ALLOC(count); 211 TEST_INT_EQ((ret = sched_getaffinity(getpid(), sizeof(cpu_set_t), &set0)), 0); 216 TEST_INT_EQ((ret = sched_setaffinity(getpid(), sizeof(cpu_set_t), &set0)), 0);
|
/system/extras/tests/binder/benchmarks/ |
binderAddInts.cpp | 96 static ostream &operator<<(ostream &stream, const cpu_set_t& set); 105 cpu_set_t availCPUs; 348 cpu_set_t cpuset; 374 static ostream &operator<<(ostream &stream, const cpu_set_t& set)
|
/system/extras/tests/wifi/stress/ |
wifiLoadScanAssoc.c | 92 cpu_set_t availCPU; 105 static void randBind(const cpu_set_t *availSet, int *chosenCPU); 476 randBind(const cpu_set_t *availSet, int *chosenCPU) 479 cpu_set_t cpuset;
|
/external/oprofile/daemon/ |
opd_perfmon.c | 54 } cpu_set_t; typedef in typeref:struct:__anon24356 59 memset((cpusetp), 0, sizeof(cpu_set_t)) 62 sched_setaffinity(pid_t pid, size_t len, cpu_set_t const * cpusetp) 150 cpu_set_t set;
|
/external/valgrind/main/gdbserver_tests/ |
sleepers.c | 121 cpu_set_t single_cpu;
|
/system/extras/tests/memtest/ |
bandwidth.cpp | 155 cpu_set_t cpuset; 183 cpu_set_t cpuset;
|