/external/autotest/client/site_tests/power_CPUIdle/ |
H A D | power_CPUIdle.py | 17 all_cpus = cpus() 58 class cpus(object): class in inherits:object
|
/external/autotest/client/tests/monotonic_time/src/ |
H A D | cpuset.c | 14 * Return the number of cpus in a cpu_set 16 int count_cpus(const cpu_set_t *cpus) argument 22 if (CPU_ISSET(cpu, cpus)) 32 int parse_cpu_set(const char *s, cpu_set_t *cpus) argument 34 CPU_ZERO(cpus); 73 CPU_SET(cpu, cpus); 110 int show_cpu_set(char *buf, size_t len, const cpu_set_t *cpus) argument 119 if (CPU_ISSET(cpu, cpus)) {
|
H A D | threads.c | 21 cpu_set_t cpus; member in struct:thread 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) argument 59 if (!CPU_ISSET(cpu, cpus)) 67 CPU_ZERO(&thread->cpus); 68 CPU_SET(cpu, &thread->cpus); 98 CPU_ZERO(&thread->cpus);
|
H A D | time_test.c | 38 { "cpus", required_argument, 0, 'c' }, 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) argument 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 325 * default to checking all cpus [all...] |
/external/autotest/client/profilers/cpistat/ |
H A D | cpistat | 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/ |
H A D | checktsc.c | 25 { "cpus", required_argument, 0, 'c' }, 44 printf(" -c,--cpus set of cpus to test (default: all)\n"); 72 int parse_cpu_set(const char *s, cpu_set_t *cpus) argument 74 CPU_ZERO(cpus); 114 CPU_SET(cpu, cpus); 179 cpu_set_t cpus; local 181 CPU_ZERO(&cpus); 182 CPU_SET(cpu, &cpus); 183 if (sched_setaffinity(0, sizeof cpus, 275 check_tsc(cpu_set_t *cpus) argument 320 cpu_set_t cpus; local [all...] |
/external/fio/os/ |
H A D | 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);
|
/external/fio/ |
H A D | server.h | 129 uint32_t cpus; member in struct:cmd_probe_reply_pdu
|
/external/webrtc/webrtc/modules/video_coding/codecs/vp8/ |
H A D | vp8_impl.cc | 625 int VP8EncoderImpl::NumberOfThreads(int width, int height, int cpus) { argument 626 if (width * height >= 1920 * 1080 && cpus > 8) { 628 } else if (width * height > 1280 * 960 && cpus >= 6) { 631 } else if (width * height > 640 * 480 && cpus >= 3) {
|
/external/blktrace/btreplay/ |
H A D | btreplay.c | 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++) 530 cpu_set_t cpus; local 534 CPU_ZERO(&cpus); 535 CPU_SET(tip->cpu, &cpus); 536 if (sched_setaffinity(getpid(), sizeof(cpus), &cpus)) { 1361 "\t[ -c <cpus> [all...] |
/external/libevent/ |
H A D | event.c | 992 event_config_set_num_cpus_hint(struct event_config *cfg, int cpus) argument 996 cfg->n_cpus_hint = cpus;
|
/external/blktrace/ |
H A D | 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_coun [all...] |