/freebsd-9.3-release/include/rpcsvc/ |
H A D | rstat.x | 68 int cp_time[RSTAT_CPUSTATES]; 87 int cp_time[RSTAT_CPUSTATES]; 105 int cp_time[RSTAT_CPUSTATES];
|
/freebsd-9.3-release/lib/libdevstat/ |
H A D | devstat.h | 132 long cp_time[CPUSTATES]; member in struct:statinfo
|
/freebsd-9.3-release/lib/libkvm/ |
H A D | kvm_cptime.c | 85 kvm_getcptime(kvm_t *kd, long *cp_time) argument 96 return (getsysctl(kd, "kern.cp_time", cp_time, sizeof(long) * 104 /* If this kernel has a "cp_time[]" symbol, then just read that. */ 106 if (kvm_read(kd, kvm_cp_time_nl[NL_CP_TIME].n_value, cp_time, 108 _kvm_err(kd, kd->program, "cannot read cp_time array"); 116 * "cp_time[]" by adding up the individual times for each CPU. 122 cp_time[i] = 0; 130 cp_time[j] += pc->pc_cp_time[j];
|
/freebsd-9.3-release/libexec/rpc.rstatd/ |
H A D | rstat_proc.c | 203 if (sysctlbyname("kern.cp_time", bsd_cp_time, &len, 0, 0) < 0) { 204 syslog(LOG_ERR, "sysctl(kern.cp_time): %m"); 208 stats_all.s1.cp_time[i] = bsd_cp_time[cp_time_xlat[i]]; 229 fprintf(stderr, "%d %d %d %d\n", stats_all.s1.cp_time[0], 230 stats_all.s1.cp_time[1], stats_all.s1.cp_time[2], stats_all.s1.cp_time[3]);
|
/freebsd-9.3-release/release/picobsd/tinyware/ns/ |
H A D | ns.c | 797 static u_int32_t cp_time[5]; local 807 if (sysctlbyname("kern.cp_time", new_cp_time, &l, NULL, 0) < 0) { 808 warn("sysctl: retrieving cp_time length"); 821 bcopy(new_cp_time, cp_time, sizeof(cp_time)); 826 #define X(i) ( (double)(new_cp_time[i] - cp_time[i])*100/shz ) 830 bcopy(new_cp_time, cp_time, sizeof(cp_time));
|
/freebsd-9.3-release/sys/compat/linprocfs/ |
H A D | linprocfs.c | 470 long cp_time[CPUSTATES]; local 474 read_cpu_time(cp_time); 476 T2J(cp_time[CP_USER]), 477 T2J(cp_time[CP_NICE]), 478 T2J(cp_time[CP_SYS] /*+ cp_time[CP_INTR]*/), 479 T2J(cp_time[CP_IDLE])); 539 long cp_time[CPUSTATES]; local 543 read_cpu_time(cp_time); 546 T2S(cp_time[CP_IDL [all...] |
/freebsd-9.3-release/sys/kern/ |
H A D | kern_clock.c | 102 long cp_time[CPUSTATES]; local 108 read_cpu_time(cp_time); 114 cp_time32[i] = (unsigned int)cp_time[i]; 120 return SYSCTL_OUT(req, 0, sizeof(cp_time)); 121 error = SYSCTL_OUT(req, cp_time, sizeof(cp_time)); 126 SYSCTL_PROC(_kern, OID_AUTO, cp_time, CTLTYPE_LONG|CTLFLAG_RD|CTLFLAG_MPSAFE, 137 long *cp_time; local 154 cp_time = pcpu->pc_cp_time; 156 cp_time 329 read_cpu_time(long *cp_time) argument 716 long *cp_time; local [all...] |
/freebsd-9.3-release/sys/sys/ |
H A D | resource.h | 169 void read_cpu_time(long *cp_time); /* Writes array of CPUSTATES */
|
/freebsd-9.3-release/usr.bin/ctlstat/ |
H A D | ctlstat.c | 218 long cp_time[CPUSTATES]; local 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_IDL [all...] |
/freebsd-9.3-release/usr.bin/systat/ |
H A D | iostat.c | 136 len = sizeof(cur.cp_time); 137 if (sysctlbyname("kern.cp_time", &cur.cp_time, &len, NULL, 0) 138 || len != sizeof(cur.cp_time)) { 139 perror("kern.cp_time"); 267 X(cp_time); 268 etime += cur.cp_time[i]; 353 dtime += cur.cp_time[i]; 358 histogram(100.0 * cur.cp_time[o] / dtime, 50, CPUSCALE);
|
H A D | vmstat.c | 419 Q(cp_time); 746 GETSYSCTL("kern.cp_time", ls->time); 747 GETSYSCTL("kern.cp_time", cur.cp_time);
|
/freebsd-9.3-release/usr.bin/top/ |
H A D | machine.c | 154 static long cp_time[CPUSTATES]; variable 452 GETSYSCTL("kern.cp_time", cp_time); 460 /* convert cp_time counts to percentages */ 470 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff);
|
/freebsd-9.3-release/usr.bin/vmstat/ |
H A D | vmstat.c | 698 if (kvm_getcptime(kd, cur.cp_time) < 0) 701 size = sizeof(cur.cp_time); 702 mysysctl("kern.cp_time", &cur.cp_time, &size, NULL, 0); 703 if (size != sizeof(cur.cp_time)) 704 errx(1, "cp_time size mismatch"); 1035 tmp = cur.cp_time[state]; 1036 cur.cp_time[state] -= last.cp_time[state]; 1037 last.cp_time[stat [all...] |
/freebsd-9.3-release/usr.sbin/iostat/ |
H A D | iostat.c | 415 bzero(cur.cp_time, sizeof(cur.cp_time)); 462 if (readvar(kd, "kern.cp_time", 0, 463 &cur.cp_time, sizeof(cur.cp_time)) != 0) 466 if (kvm_getcptime(kd, cur.cp_time) < 0) { 583 tmp = cur.cp_time[i]; 584 cur.cp_time[i] -= last.cp_time[i]; 585 last.cp_time[ [all...] |