/aosp12/bionic/libc/include/ |
H A D | sched.h | 74 } cpu_set_t; typedef 77 int sched_getaffinity(pid_t __pid, size_t __set_size, cpu_set_t* __set); 79 #define CPU_ZERO(set) CPU_ZERO_S(sizeof(cpu_set_t), set) 80 #define CPU_SET(cpu, set) CPU_SET_S(cpu, sizeof(cpu_set_t), set) 81 #define CPU_CLR(cpu, set) CPU_CLR_S(cpu, sizeof(cpu_set_t), set) 82 #define CPU_ISSET(cpu, set) CPU_ISSET_S(cpu, sizeof(cpu_set_t), set) 83 #define CPU_COUNT(set) CPU_COUNT_S(sizeof(cpu_set_t), set) 100 cpu_set_t* __sched_cpualloc(size_t __count); 101 void __sched_cpufree(cpu_set_t* __set); 135 cpu_set_t* __dst = (dstset); \ [all …]
|
/aosp12/bionic/tests/ |
H A 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 …]
|
H A 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()
|
H A D | sys_ptrace_test.cpp | 207 cpu_set_t cpus; in watchpoint_stress_child() 229 cpu_set_t available_cpus; in TEST()
|
/aosp12/system/core/libutils/ |
H A D | RefBase_test.cpp | 296 cpu_set_t otherCpus; 301 static bool setExclusiveCpus(cpu_set_t* origCpus /* out */, in setExclusiveCpus() 302 cpu_set_t* myCpus /* out */, cpu_set_t* otherCpus) { in setExclusiveCpus() 303 if (sched_getaffinity(0, sizeof(cpu_set_t), origCpus) != 0) { in setExclusiveCpus() 325 if (sched_setaffinity(0, sizeof(cpu_set_t), &otherCpus) != 0) { in visit2AndRemove() 337 cpu_set_t origCpus; in TEST() 338 cpu_set_t myCpus; in TEST() 345 if (sched_setaffinity(0, sizeof(cpu_set_t), &myCpus) != 0) { in TEST() 377 if (sched_setaffinity(0, sizeof(cpu_set_t), &otherCpus) != 0) { in visit3AndRemove() 393 cpu_set_t origCpus; in TEST() [all …]
|
/aosp12/bionic/libc/bionic/ |
H A 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()
|
H A 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()
|
H A D | sched_cpucount.c | 31 int __sched_cpucount(size_t setsize, const cpu_set_t* set) { in __sched_cpucount()
|
/aosp12/system/extras/tests/binder/benchmarks/ |
H A D | binderAddInts.cpp | 84 static ostream &operator<<(ostream &stream, const cpu_set_t& set); 207 cpu_set_t cpuset; in bindCPU() 220 static ostream &operator<<(ostream &stream, const cpu_set_t& set) in operator <<() 239 cpu_set_t availCPUs; in main()
|
/aosp12/bionic/benchmarks/ |
H A D | util.cpp | 75 cpu_set_t cpuset; in LockToCPU()
|
/aosp12/system/extras/crypto-perf/ |
H A D | crypto.cpp | 116 cpu_set_t cpuset; in main()
|
/aosp12/system/extras/tests/icachetest/ |
H A D | icache_main.cpp | 23 static cpu_set_t g_cpu_set;
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_util_Process.cpp | 388 static void parse_cpuset_cpus(char *cpus, cpu_set_t *cpu_set) { in parse_cpuset_cpus() 419 static void get_cpuset_cores_for_policy(SchedPolicy policy, cpu_set_t *cpu_set) in get_cpuset_cores_for_policy() 472 void get_exclusive_cpuset_cores(SchedPolicy policy, cpu_set_t *cpu_set) { in get_exclusive_cpuset_cores() 475 cpu_set_t tmp_set; in get_exclusive_cpuset_cores() 493 cpu_set_t cpu_set; in android_os_Process_getExclusiveCores()
|
/aosp12/system/extras/memory_replay/ |
H A D | TraceBenchmark.cpp | 425 cpu_set_t cpuset; in main()
|
/aosp12/system/extras/simpleperf/ |
H A D | cpu_hotplug_test.cpp | 347 cpu_set_t mask; in CpuSpinThread()
|
/aosp12/frameworks/rs/cpu_ref/ |
H A D | rsCpuCore.cpp | 118 typedef struct {uint64_t bits[1024 / 64]; } cpu_set_t; in helperThreadProc() 119 cpu_set_t cpuset; in helperThreadProc()
|
/aosp12/bionic/tools/versioner/src/ |
H A D | versioner.cpp | 73 cpu_set_t cpu_set; in getCpuCount()
|
/aosp12/bionic/libc/ |
H A D | SYSCALLS.TXT | 292 int sched_setaffinity(pid_t pid, size_t setsize, const cpu_set_t* set) all 295 int __sched_getaffinity:sched_getaffinity(pid_t pid, size_t setsize, cpu_set_t* set) all
|
/aosp12/art/dex2oat/ |
H A D | dex2oat.cc | 252 cpu_set_t target_cpu_set; in SetCpuAffinity()
|