Searched refs:cpus (Results 1 – 2 of 2) sorted by relevance
35 uv_cpu_info_t* cpus; in TEST_IMPL() local132 err = uv_cpu_info(&cpus, &count); in TEST_IMPL()140 printf(" model: %s\n", cpus[i].model); in TEST_IMPL()141 printf(" speed: %d\n", cpus[i].speed); in TEST_IMPL()142 printf(" times.sys: %llu\n", (unsigned long long) cpus[i].cpu_times.sys); in TEST_IMPL()144 (unsigned long long) cpus[i].cpu_times.user); in TEST_IMPL()146 (unsigned long long) cpus[i].cpu_times.idle); in TEST_IMPL()147 printf(" times.irq: %llu\n", (unsigned long long) cpus[i].cpu_times.irq); in TEST_IMPL()149 (unsigned long long) cpus[i].cpu_times.nice); in TEST_IMPL()152 uv_free_cpu_info(cpus, count); in TEST_IMPL()
1769 struct cpu (*cpus)[8192]; /* Kernel maximum. */ in uv_cpu_info() local1773 unsigned char bitmap[ARRAY_SIZE(*cpus) / 8]; in uv_cpu_info()1785 cpus = uv__calloc(ARRAY_SIZE(*cpus), sizeof(**cpus)); in uv_cpu_info()1786 if (cpus == NULL) in uv_cpu_info()1791 uv__free(cpus); in uv_cpu_info()1810 if (cpu >= ARRAY_SIZE(*cpus)) in uv_cpu_info()1813 (*cpus)[cpu] = t; in uv_cpu_info()1870 (*cpus)[cpu].model = model - models; in uv_cpu_info()1907 uv__free(cpus); in uv_cpu_info()1919 c = *cpus + cpu; in uv_cpu_info()[all …]
Completed in 15 milliseconds