Home
last modified time | relevance | path

Searched refs:cpus (Results 1 – 2 of 2) sorted by relevance

/bionic/tests/
Dpty_test.cpp84 cpu_set_t cpus; in PtyReader_28979140() local
85 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus)); in PtyReader_28979140()
86 CPU_CLR(arg->main_cpu_id, &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() local
110 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus)); in TEST()
111 if (CPU_COUNT(&cpus) < 2) { in TEST()
130 if (CPU_ISSET(i, &cpus)) { in TEST()
146 CPU_ZERO(&cpus); in TEST()
147 CPU_SET(arg.main_cpu_id, &cpus); in TEST()
[all …]
Dsys_ptrace_test.cpp207 cpu_set_t cpus; in watchpoint_stress_child() local
208 CPU_ZERO(&cpus); in watchpoint_stress_child()
209 CPU_SET(cpu, &cpus); in watchpoint_stress_child()
210 if (sched_setaffinity(0, sizeof cpus, &cpus) == -1) { in watchpoint_stress_child()