Lines Matching refs:cp_time
218 long cp_time[CPUSTATES];
221 cplen = sizeof(cp_time);
223 if (sysctlbyname("kern.cp_time", &cp_time, &cplen, NULL, 0) == -1) {
224 warn("sysctlbyname(kern.cp_time...) failed");
228 cpu_stats->user = cp_time[CP_USER];
229 cpu_stats->nice = cp_time[CP_NICE];
230 cpu_stats->system = cp_time[CP_SYS];
231 cpu_stats->intr = cp_time[CP_INTR];
232 cpu_stats->idle = cp_time[CP_IDLE];