Lines Matching refs:cur_cp_times
109 static long *cur_cp_times, *last_cp_times;
719 cur_cp_times = calloc(1, size_cp_times);
736 mysysctl("kern.cp_times", cur_cp_times, &size);
1227 tmp = cur_cp_times[i * CPUSTATES + state];
1228 cur_cp_times[i * CPUSTATES + state] -= last_cp_times[i *
1243 total += cur_cp_times[i * CPUSTATES + state];
1248 percent("user", (cur_cp_times[i * CPUSTATES + CP_USER] +
1249 cur_cp_times[i * CPUSTATES + CP_NICE]) * lpct, &over);
1250 percent("system", (cur_cp_times[i * CPUSTATES + CP_SYS] +
1251 cur_cp_times[i * CPUSTATES + CP_INTR]) * lpct, &over);
1252 percent("idle", cur_cp_times[i * CPUSTATES + CP_IDLE] * lpct,