/external/autotest/client/site_tests/power_CPUIdle/ |
power_CPUIdle.py | 17 all_cpus = cpus() 23 # sleep for some time to allow the CPUs to drop into idle states 58 class cpus(object): class in inherits:object
|
/external/autotest/client/tests/monotonic_time/src/ |
threads.c | 21 cpu_set_t cpus; member in struct:thread 31 * Helper function to run a thread on a specific set of CPUs. 38 if (sched_setaffinity(0, sizeof thread->cpus, &thread->cpus) < 0) 49 * the CPUs specified by cpus. 52 int create_per_cpu_threads(cpu_set_t *cpus, thread_func_t func, void *arg) 59 if (!CPU_ISSET(cpu, cpus)) 67 CPU_ZERO(&thread->cpus); 68 CPU_SET(cpu, &thread->cpus); [all...] |
time_test.c | 38 { "cpus", required_argument, 0, 'c' }, 55 "check time sources for monotonicity across multiple CPUs\n" 56 " -c,--cpus set of cpus to test (default: all)\n" 231 int run_test(cpu_set_t *cpus, long duration, struct test_info *test) 256 ncpus = count_cpus(cpus); 257 nthreads = create_per_cpu_threads(cpus, test_loop, test); 269 INFO("running %s test on %d cpus for %ld seconds", 272 INFO("running %s test on %d cpus", test->name, ncpus); 309 cpu_set_t cpus; local [all...] |
/bionic/tests/ |
pty_test.cpp | 84 cpu_set_t cpus; local 85 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus)); 86 CPU_CLR(arg->main_cpu_id, &cpus); 87 ASSERT_EQ(0, sched_setaffinity(0, sizeof(cpu_set_t), &cpus)); 109 cpu_set_t cpus; local 110 ASSERT_EQ(0, sched_getaffinity(0, sizeof(cpu_set_t), &cpus)); 111 if (CPU_COUNT(&cpus) < 2) { 126 // 2. Make master thread and slave thread running on different cpus: 127 // master thread uses first available cpu, and slave thread uses other cpus. 131 if (CPU_ISSET(i, &cpus)) { [all...] |
/external/autotest/client/profilers/cpistat/ |
cpistat | 22 parser.add_option('-c', '--cpulist', help='CPUs to monitor', 31 cpus = range(0, ncpus) variable 33 cpus = options.cpulist.split(',') variable 34 cpus = [ int(c) for c in cpus ] variable 42 s = perfmon.SystemWideSession(cpus, events) 61 for c in cpus: 69 for c in cpus:
|
/external/autotest/client/tests/tsc/src/ |
checktsc.c | 25 { "cpus", required_argument, 0, 'c' }, 43 printf("check TSC synchronization between CPUs\n"); 44 printf(" -c,--cpus set of cpus to test (default: all)\n"); 72 int parse_cpu_set(const char *s, cpu_set_t *cpus) 74 CPU_ZERO(cpus); 114 CPU_SET(cpu, cpus); 179 cpu_set_t cpus; local 181 CPU_ZERO(&cpus); 182 CPU_SET(cpu, &cpus); 320 cpu_set_t cpus; local [all...] |
/external/fio/os/ |
os-solaris.h | 111 processorid_t *cpus; local 114 cpus = malloc(sizeof(*cpus) * max_cpus); 116 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { 117 free(cpus); 123 if (cpus[i] == cpu) { 129 free(cpus);
|
/ndk/sources/host-tools/make-3.81/ |
getloadavg.c | 470 static unsigned int cpus = 0; 690 if (cpus == 0) 721 cpus = c; 722 samples = cpus < 2 ? 3 : (2 * cpus / 3); 745 loadavg[elem++] = load / samples / cpus; 469 static unsigned int cpus = 0; variable
|
/external/fio/ |
server.h | 129 uint32_t cpus; member in struct:cmd_probe_reply_pdu
|
/frameworks/base/core/jni/ |
android_util_Process.cpp | 299 static void parse_cpuset_cpus(char *cpus, cpu_set_t *cpu_set) { 301 char *cpu_range = strtok(cpus, ","); 320 ALOGE("Failed to match cpus"); 327 * Stores the CPUs assigned to the cpuset corresponding to the 339 filename = "/dev/cpuset/background/cpus"; 344 filename = "/dev/cpuset/foreground/cpus"; 347 filename = "/dev/cpuset/top-app/cpus"; 357 // Parse cpus string 402 jintArray cpus; local 410 cpus = env->NewIntArray(num_cpus) [all...] |
/external/blktrace/btreplay/ |
btreplay.c | 142 static int cpus_to_use = -1; // Number of CPUs to use 145 static int ncpus = 0; // Number of CPUs in the system 505 cpu_set_t cpus; local 507 if (sched_getaffinity(getpid(), sizeof(cpus), &cpus)) { 516 for (ncpus = 0; ncpus < CPU_SETSIZE && CPU_ISSET(ncpus, &cpus); ncpus++) 519 fatal(NULL, ERR_SYSCALL, "Insufficient number of CPUs\n"); 530 cpu_set_t cpus; local 534 CPU_ZERO(&cpus); 535 CPU_SET(tip->cpu, &cpus); [all...] |
/external/blktrace/ |
blkparse.c | 69 struct per_cpu_info *cpus; member in struct:per_dev_info 323 struct per_cpu_info *cpus = pdi->cpus; local 330 cpus = realloc(cpus, size); 331 if (!cpus) { 338 new_start = (char *)cpus + (ncpus * sizeof(struct per_cpu_info)); 343 pdi->cpus = cpus; 346 struct per_cpu_info *pci = &pdi->cpus[new_count] [all...] |
/external/opencv3/modules/core/misc/java/test/ |
CoreTest.java | 625 int cpus = Core.getNumberOfCPUs(); local 627 assertTrue(Runtime.getRuntime().availableProcessors() <= cpus); [all...] |