/netbsd-6-1-5-RELEASE/lib/librpcsvc/ |
H A D | rstat.x | 68 int cp_time[CPUSTATES]; 87 int cp_time[CPUSTATES]; 105 int cp_time[CPUSTATES];
|
/netbsd-6-1-5-RELEASE/usr.bin/vmstat/ |
H A D | drvstats.h | 51 u_int64_t cp_time[CPUSTATES]; /* System timer ticks. */ member in struct:_drive
|
H A D | drvstats.c | 164 SWAP(cp_time[i]); 168 etime += cur.cp_time[state]; 242 size = sizeof(cur.cp_time); 243 (void)memset(cur.cp_time, 0, size); 247 if (sysctl(mib, 2, cur.cp_time, &size, NULL, 0) < 0) 248 (void)memset(cur.cp_time, 0, sizeof(cur.cp_time)); 295 size = sizeof(cur.cp_time); 296 (void)memset(cur.cp_time, 0, size); 300 if (sysctl(mib, 2, cur.cp_time, [all...] |
H A D | vmstat.c | 1072 total += cur.cp_time[state]; 1077 stat_us = (cur.cp_time[CP_USER] + cur.cp_time[CP_NICE]) * pcnt; 1078 stat_sy = (cur.cp_time[CP_SYS] + cur.cp_time[CP_INTR]) * pcnt; 1079 stat_id = cur.cp_time[CP_IDLE] * pcnt;
|
/netbsd-6-1-5-RELEASE/libexec/rpc.rstatd/ |
H A D | rstat_proc.c | 226 * statistics. It also retrieves "hz" and the "cp_time" array. 235 stats_all.s3.cp_time[i] = cur.cp_time[cp_xlat[i]]; 238 (char *)stats_all.s3.cp_time, 239 sizeof (stats_all.s3.cp_time)) 240 != sizeof (stats_all.s3.cp_time)) { 241 syslog(LOG_ERR, "can't read cp_time from kmem"); 263 syslog(LOG_DEBUG, "%d %d %d %d %d\n", stats_all.s3.cp_time[0], 264 stats_all.s3.cp_time[1], stats_all.s3.cp_time[ [all...] |
/netbsd-6-1-5-RELEASE/external/bsd/top/dist/machine/ |
H A D | m_aix5.c | 204 static long cp_time[CPU_NTIMES]; variable 352 cp_old[i] = cp_time[i]; 353 cp_time[i] = s_info.cpu[i]; 354 cp_diff[i] = cp_time[i] - cp_old[i]; 365 cp_old[i] = cp_time[i]; 366 cp_time[i] = ( i==CPU_IDLE?s_info1.idle: 370 cp_diff[i] = cp_time[i] - cp_old[i];
|
H A D | m_netbsd.c | 138 static u_int64_t *cp_time; variable 322 cp_time = malloc(sizeof(cp_time[0]) * CPUSTATES * ncpu); 325 size = sizeof(cp_time[0]) * CPUSTATES * ncpu; 326 if (sysctl(mib, 2, cp_time, &size, NULL, 0) < 0) { 327 fprintf(stderr, "top: sysctl kern.cp_time failed: %s\n", 333 if (size == sizeof(cp_time[0]) * CPUSTATES) 339 if (cpu_states == NULL || cp_time == NULL || cp_old == NULL || 459 ssize = sizeof(cp_time[0]) * CPUSTATES * ncpu; 460 if (sysctl(mib, 2, cp_time, [all...] |
H A D | m_aix43.c | 203 static long cp_time[CPU_NTIMES]; variable 323 cp_old[i] = cp_time[i]; 324 cp_time[i] = s_info.cpu[i]; 325 cp_diff[i] = cp_time[i] - cp_old[i];
|
H A D | m_hpux7.c | 193 static long cp_time[CPUSTATES]; variable 396 /* get the cp_time array */ 397 (void) getkval(cp_time_offset, (int *)cp_time, sizeof(cp_time), 426 /* convert cp_time counts to percentages */ 427 total = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_hpux8.c | 192 static long cp_time[CPUSTATES]; variable 358 /* get the cp_time array */ 359 (void) getkval(cp_time_offset, (int *)cp_time, sizeof(cp_time), 384 /* convert cp_time counts to percentages */ 385 total = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_hpux9.c | 204 static long cp_time[CPUSTATES]; variable 370 /* get the cp_time array */ 371 (void) getkval(cp_time_offset, (int *)cp_time, sizeof(cp_time), 396 /* convert cp_time counts to percentages */ 397 total = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_macosx.c | 157 static long cp_time[CPU_STATE_MAX]; variable 650 cp_time[i] = cpuload.cpu_ticks[i]; 661 printf("cp_time[%d] = %d\n", i, cp_time[i]); 684 total = percentages(CPU_STATE_MAX, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_sunos4.c | 140 { "cp_time" }, /* 6 */ 211 static long cp_time[CPUSTATES]; variable 450 /* get the cp_time array */ 451 (void) getkval(cp_time_offset, (int *)cp_time, sizeof(cp_time), 488 /* convert cp_time counts to percentages */ 489 total = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); 518 * already included in the ticks accumulated in cp_time. To
|
H A D | m_linux.c | 194 static long cp_time[NCPUSTATES]; variable 494 cp_time[0] = strtoul(p, &p, 0); 495 cp_time[1] = strtoul(p, &p, 0); 496 cp_time[2] = strtoul(p, &p, 0); 497 cp_time[3] = strtoul(p, &p, 0); 500 cp_time[4] = strtoul(p, &p, 0); 503 /* convert cp_time counts to percentages */ 504 percentages(NCPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_hpux10.c | 142 static long cp_time[PST_MAX_CPUSTATES]; variable 347 cp_time [i] = dynamic.psd_cpu_time [i]; 348 percentages(PST_MAX_CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_sco5.c | 180 static time_t cp_time[CPUSTATES]; variable 421 /* get the cp_time array */ 422 (void) getkval(nlst[X_SYSINFO].n_value, (int *)cp_time, sizeof(cp_time), 425 /* convert cp_time counts to persentages */ 426 total = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_linuxthr.c | 178 static long cp_time[NCPUSTATES]; variable 412 cp_time[0] = strtoul(p, &p, 0); 413 cp_time[1] = strtoul(p, &p, 0); 414 cp_time[2] = strtoul(p, &p, 0); 415 cp_time[3] = strtoul(p, &p, 0); 417 /* convert cp_time counts to percentages */ 418 percentages(4, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_sunos5.c | 1402 static long cp_time[CPUSTATES]; local 1421 /* zero the cp_time array */ 1422 memset(cp_time, 0, sizeof(cp_time)); 1429 cp_time[j] += cpustats[i].states[j]; 1442 /* convert cp_time counts to percentages */ 1443 (void) percentages (CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
H A D | m_freebsd.c | 241 { "kern.cp_time" }, 255 static long cp_time[CPUSTATES]; variable 1052 /* get the cp_time array */ 1053 (void)get_sysctl(K_CP_TIME, &cp_time, sizeof(cp_time)); 1055 /* convert cp_time counts to percentages */ 1056 total = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
/netbsd-6-1-5-RELEASE/sbin/sysctl/ |
H A D | sysctl.c | 191 { "/kern/cp_time(/[0-9]+)?", kern_cp_time, NULL, NULL }, 2213 u_int64_t *cp_time; local 2216 char s[sizeof("kern.cp_time.nnnnnn")]; 2239 cp_time = malloc(sz); 2240 if (cp_time == NULL) { 2246 rc = prog_sysctl(name, namelen, cp_time + (n != -1) * CPUSTATES, &osz, 2251 free(cp_time); 2267 memset(cp_time, 0, sizeof(u_int64_t) * CPUSTATES); 2269 cp_time[CP_USER] += cp_time[ [all...] |
/netbsd-6-1-5-RELEASE/usr.bin/systat/ |
H A D | iostat.c | 308 total_time += cur.cp_time[i]; 313 histogram(100.0 * cur.cp_time[o] / total_time, 50, CPUSCALE);
|
H A D | vmstat.c | 705 t += cur.cp_time[i]; 708 return (cur.cp_time[indx] * 100.0 / t);
|
/netbsd-6-1-5-RELEASE/usr.sbin/iostat/ |
H A D | iostat.c | 441 ttime += cur.cp_time[state]; 446 printf(" %2.0f", 100. * cur.cp_time[state] / ttime);
|
/netbsd-6-1-5-RELEASE/sys/kern/ |
H A D | init_sysctl.c | 505 CTLTYPE_STRUCT, "cp_time", 1241 * sysctl helper routine for kern.cp_time node. Adds up cpu time 1248 uint64_t *cp_time = NULL; local 1256 * of cp_time (and the size thereof) across all processors. 1259 * cp_time for that particular processor. 1287 cp_time = kmem_alloc(node.sysctl_size, KM_SLEEP); 1288 if (cp_time == NULL) 1290 node.sysctl_data = cp_time; 1291 memset(cp_time, 0, node.sysctl_size); 1296 cp_time[ [all...] |