Lines Matching refs:ps_cpus
1063 perfstat_cpu_t* ps_cpus; in uv_cpu_info() local
1077 ps_cpus = (perfstat_cpu_t*) uv__malloc(ncpus * sizeof(perfstat_cpu_t)); in uv_cpu_info()
1078 if (!ps_cpus) { in uv_cpu_info()
1084 result = perfstat_cpu(&cpu_id, ps_cpus, sizeof(perfstat_cpu_t), ncpus); in uv_cpu_info()
1086 uv__free(ps_cpus); in uv_cpu_info()
1092 uv__free(ps_cpus); in uv_cpu_info()
1102 cpu_info->cpu_times.user = ps_cpus[idx].user; in uv_cpu_info()
1103 cpu_info->cpu_times.sys = ps_cpus[idx].sys; in uv_cpu_info()
1104 cpu_info->cpu_times.idle = ps_cpus[idx].idle; in uv_cpu_info()
1105 cpu_info->cpu_times.irq = ps_cpus[idx].wait; in uv_cpu_info()
1111 uv__free(ps_cpus); in uv_cpu_info()