Lines Matching refs:cpu_info
674 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
694 cpu_info = *cpu_infos; in uv_cpu_info()
698 cpu_info->speed = 0; in uv_cpu_info()
699 cpu_info->model = NULL; in uv_cpu_info()
704 cpu_info->speed = (knp->data_type == KSTAT_DATA_INT32) ? knp->value.i32 in uv_cpu_info()
709 cpu_info->model = uv__strdup(KSTAT_NAMED_STR_PTR(knp)); in uv_cpu_info()
713 cpu_info++; in uv_cpu_info()
716 cpu_info = *cpu_infos; in uv_cpu_info()
725 cpu_info->cpu_times.user = 0; in uv_cpu_info()
726 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
727 cpu_info->cpu_times.sys = 0; in uv_cpu_info()
728 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
729 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
733 cpu_info->cpu_times.user = knp->value.ui64; in uv_cpu_info()
737 cpu_info->cpu_times.sys = knp->value.ui64; in uv_cpu_info()
741 cpu_info->cpu_times.idle = knp->value.ui64; in uv_cpu_info()
745 cpu_info->cpu_times.irq = knp->value.ui64; in uv_cpu_info()
746 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
750 cpu_info++; in uv_cpu_info()