Searched refs:cp_times (Results 1 - 3 of 3) sorted by relevance
/freebsd-current/usr.sbin/powerd/ |
H A D | powerd.c | 142 static long *cp_times = NULL, *cp_times_old = NULL; local 147 if (cp_times == NULL) { 152 if ((cp_times = malloc(cp_times_len)) == NULL) 155 free(cp_times); 156 cp_times = NULL; 163 error = sysctl(cp_times_mib, 2, cp_times, &cp_times_len, NULL, 0); 172 total += cp_times[cpu * CPUSTATES + i] - 177 excl = cp_times[cpu * CPUSTATES + CP_IDLE] - 180 excl += cp_times[cpu * CPUSTATES + CP_NICE] - 186 memcpy(cp_times_old, cp_times, cp_times_le [all...] |
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_processor_tbl.c | 79 /* sysctlbyname(kern.cp_times) */ 89 * It needs at least two cp_times "tick" samples to calculate a delta and 136 save_sample(struct processor_entry *e, long *cp_times) argument 141 for (i = 0; cp_times != NULL && i < CPUSTATES; i++) 142 e->states[e->cur_sample_idx][i] = cp_times[i]; 257 if (sysctlnametomib("kern.cp_times", cpmib, &len)) { 258 syslog(LOG_ERR, "hrProcessorTable: sysctlnametomib(kern.cp_times) failed"); 263 syslog(LOG_ERR, "hrProcessorTable: sysctl(kern.cp_times) length query failed"); 268 HRDBG("%zu entries for kern.cp_times", cplen); 306 syslog(LOG_ERR, "hrProcessorTable: sysctl(kern.cp_times) faile [all...] |
/freebsd-current/sys/kern/ |
H A D | kern_clock.c | 163 SYSCTL_PROC(_kern, OID_AUTO, cp_times, CTLTYPE_LONG|CTLFLAG_RD|CTLFLAG_MPSAFE,
|
Completed in 151 milliseconds