/dports/sysutils/ganglia-monitor-core/ganglia-3.7.2/libmetrics/dragonfly/ |
H A D | metrics.c | 283 static struct kinfo_cputime cp_old, cp_diff; in cpu_state() local 292 bzero(&cp_diff, sizeof(cp_diff)); in cpu_state() 310 cp_diff.cp_user = cp_time.cp_user - cp_old.cp_user; in cpu_state() 311 cp_diff.cp_nice = cp_time.cp_nice - cp_old.cp_nice; in cpu_state() 312 cp_diff.cp_sys = cp_time.cp_sys - cp_old.cp_sys; in cpu_state() 313 cp_diff.cp_intr = cp_time.cp_intr - cp_old.cp_intr; in cpu_state() 314 cp_diff.cp_idle = cp_time.cp_idle - cp_old.cp_idle; in cpu_state() 315 total_change = cp_diff.cp_user + cp_diff.cp_nice + cp_diff.cp_sys in cpu_state() 316 + cp_diff.cp_sys + cp_diff.cp_intr + cp_diff.cp_idle; in cpu_state() 324 return (cp_diff.cp_user * 100 + half_change) / total_change; in cpu_state() [all …]
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/Irix/ |
H A D | cpu.c | 44 long cp_diff[CPUSTATES]; variable 50 long cp_diff[CPUSTATES]; member 132 percentages(CPUSTATES,cpu_states,cp_time,cp_old,cp_diff); in updateCpuInfo() 143 percentages(CPUSTATES, g_ci[i].cpu_states, g_ci[i].cp_time, g_ci[i].cp_old,g_ci[i].cp_diff); in updateCpuInfo()
|
/dports/shells/ksh93/ast-93u/src/cmd/ss/ |
H A D | ssd.c | 214 static long cp_diff[elementsof(cp_time)]; variable 646 if ((cp_diff[i] = cp_time[i] - cp_prev[i]) < 0) cp_diff[i] = -cp_diff[i]; in main() 647 t += cp_diff[i]; in main() 651 ss.pctsys = (cp_diff[CP_SYS] * 100) / t; in main() 652 ss.pctusr = ((cp_diff[CP_USER] + cp_diff[CP_NICE]) * 100) / t; in main()
|
/dports/shells/ksh93-devel/ast-cc1bca27/src/cmd/ss/ |
H A D | ssd.c | 214 static long cp_diff[elementsof(cp_time)]; variable 646 if ((cp_diff[i] = cp_time[i] - cp_prev[i]) < 0) cp_diff[i] = -cp_diff[i]; in main() 647 t += cp_diff[i]; in main() 651 ss.pctsys = (cp_diff[CP_SYS] * 100) / t; in main() 652 ss.pctusr = ((cp_diff[CP_USER] + cp_diff[CP_NICE]) * 100) / t; in main()
|
/dports/sysutils/ganglia-monitor-core/ganglia-3.7.2/libmetrics/netbsd/ |
H A D | metrics.c | 283 u_int64_t cp_diff[CPUSTATES]; 309 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); 324 static u_int64_t cp_diff[CPUSTATES]; 340 tot = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); 355 static u_int64_t cp_diff[CPUSTATES]; 371 tot = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); 386 static u_int64_t cp_diff[CPUSTATES]; 402 tot = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); 417 static u_int64_t cp_diff[CPUSTATES]; 433 tot = percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); [all …]
|
/dports/shells/ast-ksh/ast-ksh93v/src/cmd/ss/ |
H A D | ssd.c | 260 static long cp_diff[elementsof(cp_time)]; variable 692 if ((cp_diff[i] = cp_time[i] - cp_prev[i]) < 0) cp_diff[i] = -cp_diff[i]; in main() 693 t += cp_diff[i]; in main() 697 ss.pctsys = (cp_diff[CP_SYS] * 100) / t; in main() 698 ss.pctusr = ((cp_diff[CP_USER] + cp_diff[CP_NICE]) * 100) / t; in main()
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/OpenBSD/ |
H A D | cpu.c | 40 long cp_diff[CPUSTATES]; variable 85 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in updateCpuInfo()
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/NetBSD/ |
H A D | CPU.c | 41 u_int64_t cp_diff[CPUSTATES]; variable 87 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in updateCpuInfo()
|
/dports/sysutils/plasma5-ksysguard/ksysguard-5.22.0/ksysguardd/FreeBSD/ |
H A D | cpuinfo.c | 56 static long (*cp_diff)[CPUSTATES] = NULL; variable 100 cp_diff = &cp_old[cores]; in initCpuInfo() 101 cpu_states = &cp_diff[cores]; in initCpuInfo() 275 percentages(CPUSTATES, cpu_states[id], cp_time[id], cp_old[id], cp_diff[id]); in updateCpuInfo()
|
/dports/sysutils/ganglia-monitor-core/ganglia-3.7.2/libmetrics/openbsd/ |
H A D | metrics.c | 269 long cp_diff[CPUSTATES]; in cpu_state() local 305 cp_diff[state] = (cp_time[state] - cp_old[state]); in cpu_state() 307 cp_diff[state] = (LONG_MAX - cp_old[state] + cp_time[state]); in cpu_state() 308 total += cp_diff[state]; in cpu_state() 316 cp_percentage[state] = cp_diff[state] * percent; in cpu_state()
|
/dports/misc/upclient/upclient-5.0b8/src/ |
H A D | stats-sol.c | 301 static long cp_diff[CPUSTATES]; in getLoadIdle() local 355 (void)percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in getLoadIdle()
|
H A D | stats-solaris7.c | 319 static long cp_diff[CPUSTATES]; in getLoadIdle() local 373 (void)percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in getLoadIdle()
|
/dports/devel/cgit/cgit-1.2.3/git/builtin/ |
H A D | stash.c | 1356 struct child_process cp_diff = CHILD_PROCESS_INIT; in do_push_stash() local 1373 cp_diff.git_cmd = 1; in do_push_stash() 1374 argv_array_pushl(&cp_diff.args, "diff-index", "-p", in do_push_stash() 1377 add_pathspecs(&cp_diff.args, ps); in do_push_stash() 1378 if (pipe_command(&cp_diff, NULL, 0, &out, 0, NULL, 0)) { in do_push_stash()
|
/dports/devel/git-svn/git-2.34.1/builtin/ |
H A D | stash.c | 1500 struct child_process cp_diff = CHILD_PROCESS_INIT; in do_push_stash() local 1517 cp_diff.git_cmd = 1; in do_push_stash() 1518 strvec_pushl(&cp_diff.args, "diff-index", "-p", in do_push_stash() 1521 add_pathspecs(&cp_diff.args, ps); in do_push_stash() 1522 if (pipe_command(&cp_diff, NULL, 0, &out, 0, NULL, 0)) { in do_push_stash()
|
/dports/devel/git-gui/git-2.34.1/builtin/ |
H A D | stash.c | 1500 struct child_process cp_diff = CHILD_PROCESS_INIT; in do_push_stash() local 1517 cp_diff.git_cmd = 1; in do_push_stash() 1518 strvec_pushl(&cp_diff.args, "diff-index", "-p", in do_push_stash() 1521 add_pathspecs(&cp_diff.args, ps); in do_push_stash() 1522 if (pipe_command(&cp_diff, NULL, 0, &out, 0, NULL, 0)) { in do_push_stash()
|
/dports/devel/git-p4/git-2.34.1/builtin/ |
H A D | stash.c | 1500 struct child_process cp_diff = CHILD_PROCESS_INIT; in do_push_stash() local 1517 cp_diff.git_cmd = 1; in do_push_stash() 1518 strvec_pushl(&cp_diff.args, "diff-index", "-p", in do_push_stash() 1521 add_pathspecs(&cp_diff.args, ps); in do_push_stash() 1522 if (pipe_command(&cp_diff, NULL, 0, &out, 0, NULL, 0)) { in do_push_stash()
|
/dports/devel/git/git-2.34.1/builtin/ |
H A D | stash.c | 1500 struct child_process cp_diff = CHILD_PROCESS_INIT; in do_push_stash() local 1517 cp_diff.git_cmd = 1; in do_push_stash() 1518 strvec_pushl(&cp_diff.args, "diff-index", "-p", in do_push_stash() 1521 add_pathspecs(&cp_diff.args, ps); in do_push_stash() 1522 if (pipe_command(&cp_diff, NULL, 0, &out, 0, NULL, 0)) { in do_push_stash()
|
/dports/devel/git-cvs/git-2.34.1/builtin/ |
H A D | stash.c | 1500 struct child_process cp_diff = CHILD_PROCESS_INIT; in do_push_stash() local 1517 cp_diff.git_cmd = 1; in do_push_stash() 1518 strvec_pushl(&cp_diff.args, "diff-index", "-p", in do_push_stash() 1521 add_pathspecs(&cp_diff.args, ps); in do_push_stash() 1522 if (pipe_command(&cp_diff, NULL, 0, &out, 0, NULL, 0)) { in do_push_stash()
|
/dports/sysutils/ganglia-monitor-core/ganglia-3.7.2/libmetrics/freebsd/ |
H A D | metrics.c | 347 long cp_diff[CPUSTATES]; in cpu_state() local 373 percentages(CPUSTATES, cpu_states, cp_time, cp_old, cp_diff); in cpu_state()
|