Lines Matching refs:cpu_info
645 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
665 cpu_info = *cpu_infos; in uv_cpu_info()
669 cpu_info->speed = 0; in uv_cpu_info()
670 cpu_info->model = NULL; in uv_cpu_info()
675 cpu_info->speed = (knp->data_type == KSTAT_DATA_INT32) ? knp->value.i32 in uv_cpu_info()
680 cpu_info->model = uv__strdup(KSTAT_NAMED_STR_PTR(knp)); in uv_cpu_info()
684 cpu_info++; in uv_cpu_info()
687 cpu_info = *cpu_infos; in uv_cpu_info()
696 cpu_info->cpu_times.user = 0; in uv_cpu_info()
697 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
698 cpu_info->cpu_times.sys = 0; in uv_cpu_info()
699 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
700 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
704 cpu_info->cpu_times.user = knp->value.ui64; in uv_cpu_info()
708 cpu_info->cpu_times.sys = knp->value.ui64; in uv_cpu_info()
712 cpu_info->cpu_times.idle = knp->value.ui64; in uv_cpu_info()
716 cpu_info->cpu_times.irq = knp->value.ui64; in uv_cpu_info()
717 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
721 cpu_info++; in uv_cpu_info()