/dports/sysutils/symon/symon-2.88/platform/Linux/ |
H A D | platform.h | 34 #define CPUSTATES 8 macro 56 int64_t time[CPUSTATES]; 57 int64_t old[CPUSTATES]; 58 int64_t diff[CPUSTATES]; 59 int64_t states[CPUSTATES]; 63 int64_t time[CPUSTATES]; 64 int64_t old[CPUSTATES]; 65 int64_t diff[CPUSTATES]; 66 int64_t states[CPUSTATES];
|
/dports/x11/waybar/Waybar-0.9.12/src/modules/cpu/ |
H A D | bsd.cpp | 28 cp_time_t sum_cp_time[CPUSTATES]; in parseCpuinfo() 31 size_t sz = CPUSTATES * (ncpu + 1) * sizeof(pcp_time_t); in parseCpuinfo() 41 for (int state = 0; state < CPUSTATES; state++) { in parseCpuinfo() 44 pcp_time += CPUSTATES; in parseCpuinfo() 58 for (int state = 0; state < CPUSTATES; state++) { in parseCpuinfo() 71 pcp_time += CPUSTATES; in parseCpuinfo() 81 for (int state = 0; state < CPUSTATES; state++) { in parseCpuinfo() 84 pcp_time += CPUSTATES; in parseCpuinfo() 91 pcp_time_t total = 0, *single_cp_time = &cp_time[cpu * CPUSTATES]; in parseCpuinfo() 92 for (int state = 0; state < CPUSTATES; state++) { in parseCpuinfo()
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/Irix/ |
H A D | cpu.c | 35 #define CPUSTATES 6 macro 42 long cp_time[CPUSTATES]; 43 long cp_old[CPUSTATES]; 44 long cp_diff[CPUSTATES]; 45 int cpu_states[CPUSTATES]; 48 long cp_time[CPUSTATES]; 49 long cp_old[CPUSTATES]; 50 long cp_diff[CPUSTATES]; 51 int cpu_states[CPUSTATES]; 132 percentages(CPUSTATES,cpu_states,cp_time,cp_old,cp_diff); in updateCpuInfo() [all …]
|
/dports/sysutils/ganglia-monitor-core/ganglia-3.7.2/libmetrics/netbsd/ |
H A D | metrics.c | 282 u_int64_t cp_time[CPUSTATES]; 283 u_int64_t cp_diff[CPUSTATES]; 284 static u_int64_t cp_old[CPUSTATES]; 322 static u_int64_t cp_time[CPUSTATES]; 323 static u_int64_t cp_old[CPUSTATES]; 324 static u_int64_t cp_diff[CPUSTATES]; 353 static u_int64_t cp_time[CPUSTATES]; 354 static u_int64_t cp_old[CPUSTATES]; 385 static u_int64_t cp_old[CPUSTATES]; 416 static u_int64_t cp_old[CPUSTATES]; [all …]
|
/dports/devel/libgtop/libgtop-2.40.0/sysdeps/freebsd/ |
H A D | cpu.c | 56 long cpts [CPUSTATES]; in glibtop_get_cpu_s() 80 length = sizeof(long) * CPUSTATES * (length / (sizeof(long) * CPUSTATES)); in glibtop_get_cpu_s() 108 buf->xcpu_user[i] = cp_times[i * CPUSTATES + CP_USER]; in glibtop_get_cpu_s() 109 buf->xcpu_nice[i] = cp_times[i * CPUSTATES + CP_NICE]; in glibtop_get_cpu_s() 110 buf->xcpu_sys[i] = cp_times[i * CPUSTATES + CP_SYS]; in glibtop_get_cpu_s() 111 buf->xcpu_idle[i] = cp_times[i * CPUSTATES + CP_IDLE]; in glibtop_get_cpu_s() 112 buf->xcpu_irq[i] = cp_times[i * CPUSTATES + CP_INTR]; in glibtop_get_cpu_s()
|
/dports/sysutils/symon/symon-2.88/platform/OpenBSD/ |
H A D | platform.h | 24 long time1[CPUSTATES]; 25 int64_t time2[CPUSTATES]; 26 int64_t old[CPUSTATES]; 27 int64_t diff[CPUSTATES]; 28 int64_t states[CPUSTATES];
|
/dports/net-mgmt/net-snmp/net-snmp-5.9/agent/mibgroup/ucd-snmp/ |
H A D | vmstat_netbsd1.c | 160 static uint64_t cpu_old[CPUSTATES]; in var_extensible_vmstat() 161 static uint64_t cpu_new[CPUSTATES]; in var_extensible_vmstat() 162 static uint64_t cpu_diff[CPUSTATES]; in var_extensible_vmstat() 165 static long cpu_old[CPUSTATES]; in var_extensible_vmstat() 166 static long cpu_new[CPUSTATES]; in var_extensible_vmstat() 167 static long cpu_diff[CPUSTATES]; in var_extensible_vmstat() 170 static long cpu_old[CPUSTATES]; in var_extensible_vmstat() 171 static long cpu_new[CPUSTATES]; in var_extensible_vmstat() 172 static long cpu_diff[CPUSTATES]; in var_extensible_vmstat() 218 for (loop = 0; loop < CPUSTATES; loop++) { in var_extensible_vmstat()
|
/dports/benchmarks/netperf/netperf-d566775bf/src/ |
H A D | netcpu_sysctl.c | 65 #define CPUSTATES 5 macro 71 static CP_TIME_TYPE lib_start_count[CPUSTATES]; 72 static CP_TIME_TYPE lib_end_count[CPUSTATES]; 95 size_t cpu_time_len = CPUSTATES * sizeof (cpu_time[0]); in get_cpu_time() 120 for (sum_busy = 0, i = 0; i < CPUSTATES; i++) { in calc_cpu_util_internal()
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/NetBSD/ |
H A D | CPU.c | 39 u_int64_t cp_time[CPUSTATES]; 40 u_int64_t cp_old[CPUSTATES]; 41 u_int64_t cp_diff[CPUSTATES]; 42 int cpu_states[CPUSTATES]; 85 size = sizeof(cp_time[0]) * CPUSTATES; in updateCpuInfo() 87 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in updateCpuInfo()
|
/dports/sysutils/symon/symon-2.88/platform/FreeBSD/ |
H A D | platform.h | 26 int64_t time2[CPUSTATES]; 27 int64_t old[CPUSTATES]; 28 int64_t diff[CPUSTATES]; 29 int64_t states[CPUSTATES];
|
/dports/sysutils/symon/symon-2.88/platform/DragonFly/ |
H A D | platform.h | 26 int64_t time2[CPUSTATES]; 27 int64_t old[CPUSTATES]; 28 int64_t diff[CPUSTATES]; 29 int64_t states[CPUSTATES];
|
/dports/sysutils/symon/symon-2.88/platform/NetBSD/ |
H A D | platform.h | 30 int64_t time[CPUSTATES]; 31 int64_t old[CPUSTATES]; 32 int64_t diff[CPUSTATES]; 33 int64_t states[CPUSTATES];
|
/dports/net-mgmt/net-snmp/net-snmp-5.9/agent/mibgroup/hardware/cpu/ |
H A D | cpu_sysctl.c | 17 #if !defined(CPUSTATES) 186 NETSNMP_CPU_STATS cpu_stats[CPUSTATES]; in netsnmp_cpu_arch_load() 288 sysctl(mcpu_mib, 3, mcpu_stats+i*CPUSTATES, &mcpu_size, NULL, 0); in netsnmp_cpu_arch_load() 291 cpu->user_ticks = mcpu_stats[(i*CPUSTATES)+CP_USER]; in netsnmp_cpu_arch_load() 292 cpu->nice_ticks = mcpu_stats[(i*CPUSTATES)+CP_NICE]; in netsnmp_cpu_arch_load() 293 cpu->sys2_ticks = mcpu_stats[(i*CPUSTATES)+CP_SYS]+mcpu_stats[(i*CPUSTATES)+CP_INTR]; in netsnmp_cpu_arch_load() 294 cpu->kern_ticks = mcpu_stats[(i*CPUSTATES)+CP_SYS]; in netsnmp_cpu_arch_load() 295 cpu->idle_ticks = mcpu_stats[(i*CPUSTATES)+CP_IDLE]; in netsnmp_cpu_arch_load() 296 cpu->intrpt_ticks = mcpu_stats[(i*CPUSTATES)+CP_INTR]; in netsnmp_cpu_arch_load()
|
/dports/sysutils/ganglia-monitor-core/ganglia-3.7.2/libmetrics/hpux/ |
H A D | metrics.c | 234 for( j = 0; j < CPUSTATES; j++) in total_timespent_func() 244 for( j = 0; j < CPUSTATES; j++) in total_timespent_func() 248 for( j = 0; j < CPUSTATES; j++) in total_timespent_func() 268 timespent[CPUSTATES], last_timespent[CPUSTATES]; in cpu_func() 271 timespent[CPUSTATES], last_timespent[CPUSTATES]; in cpu_func() 274 if( which >= CPUSTATES) in cpu_func() 277 which -= CPUSTATES; in cpu_func() 286 for( j = 0; j < CPUSTATES; j++) in cpu_func() 390 return cpu_func(CP_IDLE + CPUSTATES); in cpu_aidle_func() 474 return cpu_func(CP_USER + CPUSTATES); in cpu_auser_func() [all …]
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/OpenBSD/ |
H A D | cpu.c | 38 long cp_time[CPUSTATES]; 39 long cp_old[CPUSTATES]; 40 long cp_diff[CPUSTATES]; 41 int cpu_states[CPUSTATES]; 85 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in updateCpuInfo()
|
/dports/sysutils/pcpustat/sterlingcamden-pcpustat-2b8712536989/ |
H A D | pcpustat.c | 11 #ifndef CPUSTATES 12 #define CPUSTATES 5 /* OSX doesn't define this */ macro 269 cpu++, prev += CPUSTATES, curr += CPUSTATES) in main() 272 long diff[CPUSTATES], n, h, total=0; in main() 274 for (n=0; n < CPUSTATES; n++) in main() 280 for (n=0; n < CPUSTATES; n++) in main()
|
/dports/misc/upclient/upclient-5.0b8/src/ |
H A D | stats-sol.c | 152 #define CPUSTATES 5 macro 294 int cpu_states[CPUSTATES]; in getLoadIdle() 299 static long cp_time[CPUSTATES]; in getLoadIdle() 300 static long cp_old[CPUSTATES]; in getLoadIdle() 301 static long cp_diff[CPUSTATES]; in getLoadIdle() 312 for (j = 0; j < CPUSTATES; j++) in getLoadIdle() 355 (void)percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in getLoadIdle()
|
H A D | stats-solaris7.c | 170 #define CPUSTATES 5 macro 312 int cpu_states[CPUSTATES]; in getLoadIdle() 317 static long cp_time[CPUSTATES]; in getLoadIdle() 318 static long cp_old[CPUSTATES]; in getLoadIdle() 319 static long cp_diff[CPUSTATES]; in getLoadIdle() 330 for (j = 0; j < CPUSTATES; j++) in getLoadIdle() 373 (void)percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in getLoadIdle()
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/FreeBSD/ |
H A D | cpuinfo.c | 41 #if defined(__DragonFly__) && !defined(CPUSTATES) 47 #define CPUSTATES 5 macro 54 static long (*cp_time)[CPUSTATES] = NULL; 55 static long (*cp_old)[CPUSTATES] = NULL; 56 static long (*cp_diff)[CPUSTATES] = NULL; 64 static long (*cpu_states)[CPUSTATES] = NULL; 95 if ((cp_time = malloc(sizeof(long) * CPUSTATES * (cores * 4 + 1))) == NULL) { in initCpuInfo() 270 size_t len = sizeof(long) * CPUSTATES * cores; in updateCpuInfo() 272 for (sid = 0; sid < CPUSTATES; ++sid) in updateCpuInfo() 275 percentages(CPUSTATES, cpu_states[id], cp_time[id], cp_old[id], cp_diff[id]); in updateCpuInfo() [all …]
|
/dports/sysutils/timemon/TimeMon-4.2/ |
H A D | Percentages.h | 13 typedef unsigned long long CPUTime[CPUSTATES]; 25 float pcents[3][CPUSTATES]; // Percentages for display. 26 float lpcents[3][CPUSTATES];// Last-displayed percentages.
|
/dports/devel/tclbsd/tclbsd-1.9.2/generic/ |
H A D | sysctl.c | 51 #ifdef CPUSTATES 74 retSize = size = sizeof (long) * CPUSTATES; 92 for (i = 0; i < CPUSTATES; i++) { 101 for (i = 0; i < CPUSTATES; i++) {
|
/dports/sysutils/htop/htop-3.1.2/dragonflybsd/ |
H A D | DragonFlyBSDProcessList.c | 80 size_t sizeof_cp_time_array = sizeof(unsigned long) * CPUSTATES; in ProcessList_new() 82 dfpl->cp_time_o = xCalloc(CPUSTATES, sizeof(unsigned long)); in ProcessList_new() 83 dfpl->cp_time_n = xCalloc(CPUSTATES, sizeof(unsigned long)); in ProcessList_new() 156 unsigned long cp_time_d[CPUSTATES]; in DragonFlyBSDProcessList_scanCPUTime() 157 double cp_time_p[CPUSTATES]; in DragonFlyBSDProcessList_scanCPUTime() 160 sizeof_cp_time_array = sizeof(unsigned long) * CPUSTATES; in DragonFlyBSDProcessList_scanCPUTime() 169 sizeof_cp_time_array = cpus * sizeof(unsigned long) * CPUSTATES; in DragonFlyBSDProcessList_scanCPUTime() 186 cp_time_n = dfpl->cp_times_n + (cp_times_offset * CPUSTATES); in DragonFlyBSDProcessList_scanCPUTime() 187 cp_time_o = dfpl->cp_times_o + (cp_times_offset * CPUSTATES); in DragonFlyBSDProcessList_scanCPUTime() 195 for (int s = 0; s < CPUSTATES; s++) { in DragonFlyBSDProcessList_scanCPUTime() [all …]
|
/dports/sysutils/htop/htop-3.1.2/freebsd/ |
H A D | FreeBSDProcessList.c | 110 size_t sizeof_cp_time_array = sizeof(unsigned long) * CPUSTATES; in ProcessList_new() 112 fpl->cp_time_o = xCalloc(CPUSTATES, sizeof(unsigned long)); in ProcessList_new() 113 fpl->cp_time_n = xCalloc(CPUSTATES, sizeof(unsigned long)); in ProcessList_new() 185 unsigned long cp_time_d[CPUSTATES]; in FreeBSDProcessList_scanCPU() 186 double cp_time_p[CPUSTATES]; in FreeBSDProcessList_scanCPU() 189 sizeof_cp_time_array = sizeof(unsigned long) * CPUSTATES; in FreeBSDProcessList_scanCPU() 198 sizeof_cp_time_array = cpus * sizeof(unsigned long) * CPUSTATES; in FreeBSDProcessList_scanCPU() 215 cp_time_n = fpl->cp_times_n + (cp_times_offset * CPUSTATES); in FreeBSDProcessList_scanCPU() 216 cp_time_o = fpl->cp_times_o + (cp_times_offset * CPUSTATES); in FreeBSDProcessList_scanCPU() 224 for (int s = 0; s < CPUSTATES; s++) { in FreeBSDProcessList_scanCPU() [all …]
|
/dports/sysutils/ganglia-monitor-core/ganglia-3.7.2/libmetrics/osf/ |
H A D | metrics.c | 35 #define CPUSTATES 3 macro 120 int cpu_states[CPUSTATES+1]; in get_cpu_percentages() 121 static unsigned long cpu_old[CPUSTATES+1]; in get_cpu_percentages() 122 unsigned long cpu_now[CPUSTATES+1]; in get_cpu_percentages() 123 unsigned long cpu_diff[CPUSTATES+1]; in get_cpu_percentages() 183 for (i = 0; i <= CPUSTATES; i++) in get_cpu_percentages() 186 if (i == CPUSTATES) in get_cpu_percentages() 196 percentages(CPUSTATES, cpu_states, cpu_diff, cycledelta); in get_cpu_percentages()
|
/dports/sysutils/istatserver/istatserver-3.02/src/stats/ |
H A D | StatsCPU.cpp | 94 unsigned long long cp_time[CPUSTATES]; in update() 96 long cp_time[CPUSTATES]; in update() 100 for(x=0;x<CPUSTATES;x++) in update() 118 unsigned long long cp_time2[CPUSTATES]; in update() 120 long cp_time2[CPUSTATES]; in update() 124 for(x=0;x<CPUSTATES;x++) in update() 132 for(x=0;x<CPUSTATES;x++) in update() 151 u_int64_t cp_time[CPUSTATES]; in update() 153 unsigned long long cp_time[CPUSTATES]; in update() 155 long cp_time[CPUSTATES]; in update()
|