/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/linux-kselftest/tools/testing/selftests/net/ |
H A D | reuseport_bpf_cpu.c | 232 int *rcv_fd, cpus; local 234 cpus = sysconf(_SC_NPROCESSORS_ONLN); 235 if (cpus <= 0) 236 error(1, errno, "failed counting cpus"); 238 rcv_fd = calloc(cpus, sizeof(int)); 243 test(rcv_fd, cpus, AF_INET, SOCK_DGRAM); 246 test(rcv_fd, cpus, AF_INET6, SOCK_DGRAM); 249 test(rcv_fd, cpus, AF_INET, SOCK_STREAM); 252 test(rcv_fd, cpus, AF_INET6, SOCK_STREAM);
|
/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 | 110 processorid_t *cpus; local 113 cpus = malloc(sizeof(*cpus) * max_cpus); 115 if (pset_info(*mask, NULL, &num_cpus, cpus) < 0) { 116 free(cpus); 122 if (cpus[i] == cpu) { 128 free(cpus);
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
H A D | cpuinfo.c | 24 struct cpuinfo *cpus; variable in typeref:struct:cpuinfo 37 /* get the number of cpus including offline cpus */ 44 if (cpus != NULL) { 45 free(cpus); 46 cpus = NULL; 49 /* allocate the memory space for cpus */ 50 cpus = malloc(sizeof(*cpus) * ncpus); 51 if (cpus [all...] |
H A D | libcpuset.c | 70 struct bitmask *cpus; member in struct:cpuset 623 if ((cp->cpus = bitmask_alloc(nbits)) == NULL) 632 if (cp && cp->cpus) 633 bitmask_free(cp->cpus); 645 if (cp->cpus) 646 bitmask_free(cp->cpus); 668 /* Set CPUs in cpuset cp to bitmask cpus */ 669 int cpuset_setcpus(struct cpuset *cp, const struct bitmask *cpus) argument 671 if (cp->cpus) 672 bitmask_free(cp->cpus); 810 cpuset_getcpus(const struct cpuset *cp, struct bitmask *cpus) argument 1360 cpuset_localcpus(const struct bitmask *mems, struct bitmask *cpus) argument 1379 cpuset_localmems(const struct bitmask *cpus, struct bitmask *mems) argument 1446 struct bitmask *cpus = NULL, *mems = NULL; local 1585 struct bitmask *cpus = NULL, *mems = NULL; local 1715 struct bitmask *cpus = NULL, *mems = NULL; local 3109 struct bitmask *cpus; member in struct:cpuset_placement 3738 struct bitmask *cpus = NULL, *mems = NULL; local [all...] |
/external/ltp/testcases/open_posix_testsuite/functional/threads/pi_test/ |
H A D | pitest-1.c | 49 int cpus; variable 177 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus); 178 for (i = 0; i < (cpus - 1); i++) 186 for (i = 0; i < cpus + 1; i++) 233 cpus = sysconf(_SC_NPROCESSORS_ONLN); 236 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb; 261 DPRINTF(stderr, "Main Thread: start %d TF thread\n", cpus - 1); 262 for (i = 0; i < cpus - 1; i++) { 315 for (i = 2; i < cpus - 1; i++) {
|
H A D | pitest-2.c | 51 int cpus; variable 177 DPRINTF(stdout, "# COLUMNS %d Time TL TP1 TP2 ", 3 + cpus); 178 for (i = 0; i < (cpus - 1); i++) 186 for (i = 0; i < cpus + 2; i++) 258 cpus = sysconf(_SC_NPROCESSORS_ONLN); 261 pthread_t threads[cpus - 1]; 287 DPRINTF(stderr, "Main Thread: Creating %d TF threads \n", cpus - 1); 288 for (i = 0; i < cpus - 1; i++) { 349 for (i = 2; i < cpus - 1; i++) {
|
H A D | pitest-3.c | 51 int cpus; variable 186 DPRINTF(stdout, "# COLUMNS %d Time TL TP1 TP2 ", 3 + cpus); 188 for (i = 0; i < (cpus - 1); i++) 197 for (i = 0; i < cpus + 2; i++) 269 cpus = sysconf(_SC_NPROCESSORS_ONLN); 272 pthread_t threads[cpus - 1]; 299 DPRINTF(stderr, "Main Thread: Creating %d TF threads\n", cpus - 1); 300 for (i = 0; i < cpus - 1; i++) { 361 for (i = 2; i < cpus - 1; i++) {
|
H A D | pitest-4.c | 52 int cpus; variable 154 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus); 155 for (i = 0; i < (cpus - 1); i++) 163 for (i = 0; i < cpus + 1; i++) 239 cpus = sysconf(_SC_NPROCESSORS_ONLN); 242 pthread_t threads[cpus - 1]; 269 DPRINTF(stderr, "Main Thread: Creating %d TF threads\n", cpus - 1); 270 for (i = 0; i < cpus - 1; i++) { 326 for (i = 2; i < cpus - 1; i++) {
|
H A D | pitest-5.c | 50 int cpus; variable 194 DPRINTF(stdout, "# COLUMNS %d Time TL TP ", 2 + cpus); 196 for (i = 0; i < (cpus - 1); i++) 206 for (i = 0; i < cpus + 1; i++) 257 cpus = sysconf(_SC_NPROCESSORS_ONLN); 260 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb; 283 DPRINTF(stderr, "Main Thread: Creating %d TF threads\n", cpus - 1); 284 for (i = 0; i < cpus - 1; i++) { 333 for (i = 2; i < cpus - 1; i++) {
|
H A D | pitest-6.c | 49 int cpus; variable 176 DPRINTF(stdout, "# COLUMNS %d Time TP TL ", 2 + cpus); 177 for (i = 0; i < (cpus - 1); i++) 186 for (i = 0; i < cpus + 1; i++) 232 cpus = sysconf(_SC_NPROCESSORS_ONLN); 235 pthread_t threads[cpus - 1], threadsample, threadtp, threadtl, threadtb; 260 DPRINTF(stderr, "Main Thread: Creating %d TF threads\n", cpus - 1); 261 for (i = 0; i < cpus - 1; i++) { 316 for (i = 2; i < cpus - 1; i++) {
|
/external/dtc/ |
H A D | livetree.c | 596 struct node *cpus, *bootcpu; local 599 cpus = get_node_by_path(tree, "/cpus"); 600 if (!cpus) 604 bootcpu = cpus->children;
|
/external/fio/ |
H A D | server.h | 141 uint32_t cpus; member in struct:cmd_probe_reply_pdu
|
/external/ltp/testcases/kernel/mem/lib/ |
H A D | mem.c | 694 static void gather_node_cpus(char *cpus, long nd) argument 720 strcat(cpus, buf); 724 cpus[strlen(cpus) - 1] = '\0'; 786 char cpus[BUFSIZ] = ""; local 791 gather_node_cpus(cpus, nd); 795 * the value of cpuset.cpus. 797 if (strlen(cpus) != 0) { 798 write_cpuset_files(CPATH_NEW, "cpus", cpus); [all...] |
/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...] |