Home
last modified time | relevance | path

Searched refs:cpu_set_t (Results 1 – 19 of 19) sorted by relevance

/aosp12/bionic/libc/include/
H A Dsched.h74 } 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 Dsched_test.cpp71 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 Dpty_test.cpp84 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 Dsys_ptrace_test.cpp207 cpu_set_t cpus; in watchpoint_stress_child()
229 cpu_set_t available_cpus; in TEST()
/aosp12/system/core/libutils/
H A DRefBase_test.cpp296 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 Dsched_cpualloc.c32 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 Dsched_getaffinity.cpp33 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 Dsched_cpucount.c31 int __sched_cpucount(size_t setsize, const cpu_set_t* set) { in __sched_cpucount()
/aosp12/system/extras/tests/binder/benchmarks/
H A DbinderAddInts.cpp84 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 Dutil.cpp75 cpu_set_t cpuset; in LockToCPU()
/aosp12/system/extras/crypto-perf/
H A Dcrypto.cpp116 cpu_set_t cpuset; in main()
/aosp12/system/extras/tests/icachetest/
H A Dicache_main.cpp23 static cpu_set_t g_cpu_set;
/aosp12/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp388 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 DTraceBenchmark.cpp425 cpu_set_t cpuset; in main()
/aosp12/system/extras/simpleperf/
H A Dcpu_hotplug_test.cpp347 cpu_set_t mask; in CpuSpinThread()
/aosp12/frameworks/rs/cpu_ref/
H A DrsCpuCore.cpp118 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 Dversioner.cpp73 cpu_set_t cpu_set; in getCpuCount()
/aosp12/bionic/libc/
H A DSYSCALLS.TXT292 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 Ddex2oat.cc252 cpu_set_t target_cpu_set; in SetCpuAffinity()