HomeSort by: relevance | last modified time | path
    Searched refs:cp_time (Results 1 - 25 of 25) sorted by relevancy

  /src/lib/librpcsvc/
rstat.x 68 int cp_time[CPUSTATES];
87 int cp_time[CPUSTATES];
105 int cp_time[CPUSTATES];
  /src/usr.bin/vmstat/
drvstats.h 56 u_int64_t cp_time[CPUSTATES]; /* System timer ticks. */ member in struct:_drive
drvstats.c 157 SWAP(cp_time[i]);
161 etime += cur.cp_time[state];
242 size = sizeof(cur.cp_time);
243 (void)memset(cur.cp_time, 0, size);
246 if (sysctl(mib, 2, cur.cp_time, &size, NULL, 0) < 0)
247 (void)memset(cur.cp_time, 0, sizeof(cur.cp_time));
285 size = sizeof(cur.cp_time);
286 (void)memset(cur.cp_time, 0, size);
289 if (sysctl(mib, 2, cur.cp_time, &size, NULL, 0) < 0
    [all...]
vmstat.c 1234 total += cur.cp_time[state];
1239 stat_us = (cur.cp_time[CP_USER] + cur.cp_time[CP_NICE]) * pcnt;
1240 stat_sy = (cur.cp_time[CP_SYS] + cur.cp_time[CP_INTR]) * pcnt;
1241 stat_id = cur.cp_time[CP_IDLE] * pcnt;
  /src/libexec/rpc.rstatd/
rstat_proc.c 204 * statistics. It also retrieves "hz" and the "cp_time" array.
212 stats_all.s3.cp_time[i] = cur.cp_time[cp_xlat[i]];
229 syslog(LOG_DEBUG, "%d %d %d %d %d\n", stats_all.s3.cp_time[0],
230 stats_all.s3.cp_time[1], stats_all.s3.cp_time[2],
231 stats_all.s3.cp_time[3], stats_all.s3.cp_time[4]);
  /src/sys/arch/macppc/dev/
lightbar.c 238 lightbar_update(struct lightbar_softc *sc, uint64_t *cp_time, uint64_t *prev,
245 total += cp_time[i] - prev[i];
246 idle = (int)(cp_time[CP_IDLE] - prev[CP_IDLE]);
247 syst = (int)(cp_time[CP_SYS] - prev[CP_SYS]);
251 prev[i] = cp_time[i];
  /src/external/bsd/top/dist/machine/
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];
m_netbsd.c 151 static u_int64_t *cp_time; variable
336 cp_time = malloc(sizeof(cp_time[0]) * CPUSTATES * ncpu);
339 size = sizeof(cp_time[0]) * CPUSTATES * ncpu;
340 if (sysctl(mib, 2, cp_time, &size, NULL, 0) < 0) {
341 fprintf(stderr, "top: sysctl kern.cp_time failed: %s\n",
347 if (size == sizeof(cp_time[0]) * CPUSTATES)
353 if (cpu_states == NULL || cp_time == NULL || cp_old == NULL ||
522 ssize = sizeof(cp_time[0]) * CPUSTATES * ncpu;
523 if (sysctl(mib, 2, cp_time, &ssize, NULL, 0) < 0)
    [all...]
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];
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);
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);
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);
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);
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
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);
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);
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);
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);
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);
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);
  /src/sbin/sysctl/
sysctl.c 193 { "/kern/cp_time(/[0-9]+)?", kern_cp_time, NULL, NULL },
2249 u_int64_t *cp_time; local
2252 char s[sizeof("kern.cp_time.nnnnnn")];
2275 cp_time = malloc(sz);
2276 if (cp_time == NULL) {
2282 rc = prog_sysctl(name, namelen, cp_time + (n != -1) * CPUSTATES, &osz,
2287 free(cp_time);
2303 memset(cp_time, 0, sizeof(u_int64_t) * CPUSTATES);
2305 cp_time[CP_USER] += cp_time[i * CPUSTATES + CP_USER]
    [all...]
  /src/usr.bin/systat/
iostat.c 313 total_time += cur.cp_time[i];
318 histogram(100.0 * cur.cp_time[o] / total_time, 50, CPUSCALE);
vmstat.c 727 t += cur.cp_time[i];
730 return (cur.cp_time[indx] * 100.0 / t);
  /src/sys/kern/
init_sysctl.c 376 CTLTYPE_STRUCT, "cp_time",
940 * sysctl helper routine for kern.cp_time node. Adds up cpu time
947 uint64_t *cp_time = NULL; local
955 * of cp_time (and the size thereof) across all processors.
958 * cp_time for that particular processor.
986 cp_time = kmem_alloc(node.sysctl_size, KM_SLEEP);
987 node.sysctl_data = cp_time;
988 memset(cp_time, 0, node.sysctl_size);
993 cp_time[i] += ci->ci_schedstate.spc_cp_time[i];
1003 * if doing "all", skip to next cp_time set for next processo
    [all...]
  /src/usr.sbin/iostat/
iostat.c 864 ttime += cur.cp_time[state];
870 if ((todo & SUPPRESS_ZERO) && cur.cp_time[state] == 0) {
875 100. * cur.cp_time[state] / ttime);

Completed in 46 milliseconds