Home
last modified time | relevance | path

Searched refs:lib_end_count (Results 1 – 6 of 6) sorted by relevance

/external/netperf/src/
Dnetcpu_procstat.c62 static cpu_states_t lib_end_count[MAXCPUS]; variable
227 get_cpu(lib_end_count); in measure_cpu_stop()
279 tick_subtract(lib_start_count[i].user, lib_end_count[i].user); in calc_cpu_util_internal()
281 tick_subtract(lib_start_count[i].nice, lib_end_count[i].nice); in calc_cpu_util_internal()
283 tick_subtract(lib_start_count[i].sys, lib_end_count[i].sys); in calc_cpu_util_internal()
285 tick_subtract(lib_start_count[i].idle, lib_end_count[i].idle); in calc_cpu_util_internal()
287 tick_subtract(lib_start_count[i].iowait, lib_end_count[i].iowait); in calc_cpu_util_internal()
289 tick_subtract(lib_start_count[i].hard_irq, lib_end_count[i].hard_irq); in calc_cpu_util_internal()
291 tick_subtract(lib_start_count[i].soft_irq, lib_end_count[i].soft_irq); in calc_cpu_util_internal()
293 tick_subtract(lib_start_count[i].steal, lib_end_count[i].steal); in calc_cpu_util_internal()
[all …]
Dnetcpu_kstat.c45 static uint64_t lib_end_count[MAXCPUS]; variable
376 if (lib_end_count[i] == lib_start_count[i]) { in calc_cpu_util_internal()
377 lib_end_count[i]++; in calc_cpu_util_internal()
380 actual_rate = (lib_end_count[i] > lib_start_count[i]) ? in calc_cpu_util_internal()
381 (float)(lib_end_count[i] - lib_start_count[i])/lib_elapsed : in calc_cpu_util_internal()
382 (float)(lib_end_count[i] - lib_start_count[i] + in calc_cpu_util_internal()
390 lib_end_count[i]); in calc_cpu_util_internal()
413 get_cpu_idle(lib_end_count); in cpu_stop_internal()
Dnetcpu_sysctl.c64 static CP_TIME_TYPE lib_end_count[CPUSTATES]; variable
114 sum_busy += lib_end_count[i] - lib_start_count[i]; in calc_cpu_util_internal()
117 sum_idle = lib_end_count[CP_IDLE] - lib_start_count[CP_IDLE]; in calc_cpu_util_internal()
133 get_cpu_time(lib_end_count); in cpu_stop_internal()
Dnetcpu_looper.c68 static uint64_t lib_end_count[MAXCPUS]; variable
616 if (lib_end_count[i] == lib_start_count[i]) { in calc_cpu_util_internal()
617 lib_end_count[i]++; in calc_cpu_util_internal()
620 actual_rate = (lib_end_count[i] > lib_start_count[i]) ? in calc_cpu_util_internal()
621 (float)(lib_end_count[i] - lib_start_count[i])/lib_elapsed : in calc_cpu_util_internal()
622 (float)(lib_end_count[i] - lib_start_count[i] + in calc_cpu_util_internal()
631 (uint32_t)(lib_end_count[i]>>32), in calc_cpu_util_internal()
632 (uint32_t)(lib_end_count[i]&0xffffffff)); in calc_cpu_util_internal()
655 get_cpu_idle(lib_end_count); in cpu_stop_internal()
Dnetcpu_pstat.c38 static uint64_t lib_end_count[MAXCPUS]; variable
259 if (lib_end_count[i] >= lib_start_count[i]) { in calc_cpu_util_internal()
260 diff = lib_end_count[i] - lib_start_count[i]; in calc_cpu_util_internal()
263 diff = lib_end_count[i] - lib_start_count[i] + LONG_LONG_MAX; in calc_cpu_util_internal()
303 get_cpu_idle(lib_end_count); in cpu_stop_internal()
Dnetcpu_perfstat.c47 static uint64_t lib_end_count[MAXCPUS]; variable
305 if (lib_end_count[i] >= lib_start_count[i]) { in calc_cpu_util_internal()
306 diff = lib_end_count[i] - lib_start_count[i]; in calc_cpu_util_internal()
309 diff = lib_end_count[i] - lib_start_count[i] + LONG_LONG_MAX; in calc_cpu_util_internal()
354 get_cpu_idle(lib_end_count); in cpu_stop_internal()