Home
last modified time | relevance | path

Searched refs:cpu_info (Results 1 – 10 of 10) sorted by relevance

/libuv/src/unix/
H A Ddarwin.c192 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
223 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
225 cpu_info->cpu_times.user = (uint64_t)(info[i].cpu_ticks[0]) * multiplier; in uv_cpu_info()
226 cpu_info->cpu_times.nice = (uint64_t)(info[i].cpu_ticks[3]) * multiplier; in uv_cpu_info()
227 cpu_info->cpu_times.sys = (uint64_t)(info[i].cpu_ticks[1]) * multiplier; in uv_cpu_info()
228 cpu_info->cpu_times.idle = (uint64_t)(info[i].cpu_ticks[2]) * multiplier; in uv_cpu_info()
229 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
231 cpu_info->model = uv__strdup(model); in uv_cpu_info()
232 cpu_info->speed = (int)(cpuspeed / 1000000); in uv_cpu_info()
H A Dfreebsd.c186 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
258 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
260 cpu_info->cpu_times.user = (uint64_t)(cp_times[CP_USER+cur]) * multiplier; in uv_cpu_info()
261 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
262 cpu_info->cpu_times.sys = (uint64_t)(cp_times[CP_SYS+cur]) * multiplier; in uv_cpu_info()
263 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
264 cpu_info->cpu_times.irq = (uint64_t)(cp_times[CP_INTR+cur]) * multiplier; in uv_cpu_info()
266 cpu_info->model = uv__strdup(model); in uv_cpu_info()
267 cpu_info->speed = cpuspeed; in uv_cpu_info()
H A Dopenbsd.c194 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
223 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
225 cpu_info->cpu_times.user = (uint64_t)(info[CP_USER]) * multiplier; in uv_cpu_info()
226 cpu_info->cpu_times.nice = (uint64_t)(info[CP_NICE]) * multiplier; in uv_cpu_info()
227 cpu_info->cpu_times.sys = (uint64_t)(info[CP_SYS]) * multiplier; in uv_cpu_info()
228 cpu_info->cpu_times.idle = (uint64_t)(info[CP_IDLE]) * multiplier; in uv_cpu_info()
229 cpu_info->cpu_times.irq = (uint64_t)(info[CP_INTR]) * multiplier; in uv_cpu_info()
231 cpu_info->model = uv__strdup(model); in uv_cpu_info()
232 cpu_info->speed = cpuspeed; in uv_cpu_info()
H A Dnetbsd.c189 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
229 cpu_info = &(*cpu_infos)[i]; in uv_cpu_info()
230 cpu_info->cpu_times.user = (uint64_t)(cp_times[CP_USER+cur]) * multiplier; in uv_cpu_info()
231 cpu_info->cpu_times.nice = (uint64_t)(cp_times[CP_NICE+cur]) * multiplier; in uv_cpu_info()
232 cpu_info->cpu_times.sys = (uint64_t)(cp_times[CP_SYS+cur]) * multiplier; in uv_cpu_info()
233 cpu_info->cpu_times.idle = (uint64_t)(cp_times[CP_IDLE+cur]) * multiplier; in uv_cpu_info()
234 cpu_info->cpu_times.irq = (uint64_t)(cp_times[CP_INTR+cur]) * multiplier; in uv_cpu_info()
235 cpu_info->model = uv__strdup(model); in uv_cpu_info()
236 cpu_info->speed = (int)(cpuspeed/(uint64_t) 1e6); in uv_cpu_info()
H A Dibmi.c289 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
301 cpu_info = *cpu_infos; in uv_cpu_info()
303 cpu_info->speed = 0; in uv_cpu_info()
304 cpu_info->model = uv__strdup("unknown"); in uv_cpu_info()
305 cpu_info->cpu_times.user = 0; in uv_cpu_info()
306 cpu_info->cpu_times.sys = 0; in uv_cpu_info()
307 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
308 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
309 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
310 cpu_info++; in uv_cpu_info()
H A Dsunos.c674 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()
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()
729 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
[all …]
H A Dhaiku.c125 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
163 cpu_info = *cpu_infos; in uv_cpu_info()
165 cpu_info->model = uv__strdup("unknown"); in uv_cpu_info()
166 cpu_info->speed = (int)(cpuspeed / 1000000); in uv_cpu_info()
167 cpu_info++; in uv_cpu_info()
H A Dos390.c234 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
256 cpu_info = *cpu_infos; in uv_cpu_info()
260 cpu_info->model = uv__malloc(ZOSCPU_MODEL_LENGTH + 1); in uv_cpu_info()
261 if (cpu_info->model == NULL) { in uv_cpu_info()
265 __get_cpu_model(cpu_info->model, ZOSCPU_MODEL_LENGTH + 1); in uv_cpu_info()
266 cpu_info->cpu_times.user = cpu_usage_avg; in uv_cpu_info()
268 cpu_info->cpu_times.sys = 0; in uv_cpu_info()
269 cpu_info->cpu_times.idle = 0; in uv_cpu_info()
270 cpu_info->cpu_times.irq = 0; in uv_cpu_info()
271 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
[all …]
H A Daix.c1061 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
1098 cpu_info = *cpu_infos; in uv_cpu_info()
1100 cpu_info->speed = (int)(ps_total.processorHZ / 1000000); in uv_cpu_info()
1101 cpu_info->model = uv__strdup(ps_total.description); 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()
1106 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
1107 cpu_info++; in uv_cpu_info()
/libuv/src/win/
H A Dutil.c538 uv_cpu_info_t* cpu_info; in uv_cpu_info() local
619 cpu_info = &cpu_infos[i]; in uv_cpu_info()
620 cpu_info->speed = cpu_speed; in uv_cpu_info()
621 cpu_info->cpu_times.user = sppi[i].UserTime.QuadPart / 10000; in uv_cpu_info()
622 cpu_info->cpu_times.sys = (sppi[i].KernelTime.QuadPart - in uv_cpu_info()
624 cpu_info->cpu_times.idle = sppi[i].IdleTime.QuadPart / 10000; in uv_cpu_info()
625 cpu_info->cpu_times.irq = sppi[i].InterruptTime.QuadPart / 10000; in uv_cpu_info()
626 cpu_info->cpu_times.nice = 0; in uv_cpu_info()
630 &(cpu_info->model)); in uv_cpu_info()

Completed in 25 milliseconds