Searched defs:cpus (Results 1 - 12 of 12) sorted by relevance

/external/autotest/client/site_tests/power_CPUIdle/
H A Dpower_CPUIdle.py17 all_cpus = cpus()
58 class cpus(object): class in inherits:object
/external/autotest/client/tests/monotonic_time/src/
H A Dcpuset.c14 * 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 Dthreads.c21 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 Dtime_test.c38 { "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 Dcpistat31 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 Dchecktsc.c25 { "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 Dos-solaris.h111 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 Dserver.h129 uint32_t cpus; member in struct:cmd_probe_reply_pdu
/external/webrtc/webrtc/modules/video_coding/codecs/vp8/
H A Dvp8_impl.cc625 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 Dbtreplay.c505 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 Devent.c992 event_config_set_num_cpus_hint(struct event_config *cfg, int cpus) argument
996 cfg->n_cpus_hint = cpus;
/external/blktrace/
H A Dblkparse.c69 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...]

Completed in 635 milliseconds