Searched refs:cpu_info (Results 1 – 10 of 10) sorted by relevance
192 uv_cpu_info_t* cpu_info; in uv_cpu_info() local223 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()
186 uv_cpu_info_t* cpu_info; in uv_cpu_info() local258 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()
194 uv_cpu_info_t* cpu_info; in uv_cpu_info() local223 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()
189 uv_cpu_info_t* cpu_info; in uv_cpu_info() local229 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()
289 uv_cpu_info_t* cpu_info; in uv_cpu_info() local301 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()
674 uv_cpu_info_t* cpu_info; in uv_cpu_info() local694 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 …]
125 uv_cpu_info_t* cpu_info; in uv_cpu_info() local163 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()
234 uv_cpu_info_t* cpu_info; in uv_cpu_info() local256 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 …]
1061 uv_cpu_info_t* cpu_info; in uv_cpu_info() local1098 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()
538 uv_cpu_info_t* cpu_info; in uv_cpu_info() local619 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 24 milliseconds