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()
1762 struct cpu (*cpus)[8192]; /* Kernel maximum. */ in uv_cpu_info() local1766 unsigned char bitmap[ARRAY_SIZE(*cpus) / 8]; in uv_cpu_info()1778 cpus = uv__calloc(ARRAY_SIZE(*cpus), sizeof(**cpus)); in uv_cpu_info()1779 if (cpus == NULL) in uv_cpu_info()1784 uv__free(cpus); in uv_cpu_info()1803 if (cpu >= ARRAY_SIZE(*cpus)) in uv_cpu_info()1806 (*cpus)[cpu] = t; in uv_cpu_info()1855 (*cpus)[cpu].model = model - models; in uv_cpu_info()1892 uv__free(cpus); in uv_cpu_info()1904 c = *cpus + cpu; in uv_cpu_info()[all …]
Completed in 11 milliseconds