Home
last modified time | relevance | path

Searched refs:lib_local_cpu_stats (Results 1 – 13 of 13) sorted by relevance

/external/netperf/src/
Dnetcpu_procstat.c255 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
312 lib_local_cpu_stats.cpu_util += lib_local_per_cpu_util[i]; in calc_cpu_util_internal()
313 lib_local_cpu_stats.cpu_user += CPU_STAT_PERCENTIZE(diff.user); in calc_cpu_util_internal()
314 lib_local_cpu_stats.cpu_system += CPU_STAT_PERCENTIZE(diff.sys); in calc_cpu_util_internal()
315 lib_local_cpu_stats.cpu_iowait += CPU_STAT_PERCENTIZE(diff.iowait); in calc_cpu_util_internal()
316 lib_local_cpu_stats.cpu_irq += CPU_STAT_PERCENTIZE(diff.hard_irq); in calc_cpu_util_internal()
317 lib_local_cpu_stats.cpu_swintr += CPU_STAT_PERCENTIZE(diff.soft_irq); in calc_cpu_util_internal()
342 lib_local_cpu_stats.fldname = ((correction_factor \ in calc_cpu_util_internal()
343 * lib_local_cpu_stats.fldname) \ in calc_cpu_util_internal()
353 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_sysctl.c110 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
118 lib_local_cpu_stats.cpu_util = (float)sum_busy / (float)(sum_busy + sum_idle); in calc_cpu_util_internal()
119 lib_local_cpu_stats.cpu_util *= 100.0; in calc_cpu_util_internal()
121 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_osx.c114 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
140 lib_local_cpu_stats.cpu_util = ((float)userticks in calc_cpu_util_internal()
142 lib_local_cpu_stats.cpu_util *= correction_factor; in calc_cpu_util_internal()
144 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_perfstat.c278 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
314 lib_local_cpu_stats.cpu_util += lib_local_per_cpu_util[i]; in calc_cpu_util_internal()
326 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
331 lib_local_cpu_stats.cpu_util); in calc_cpu_util_internal()
334 lib_local_cpu_stats.cpu_util *= correction_factor; in calc_cpu_util_internal()
338 "calc_cpu_util: returning %g\n",lib_local_cpu_stats.cpu_util); in calc_cpu_util_internal()
341 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_pstat.c231 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
269 lib_local_cpu_stats.cpu_util += lib_local_per_cpu_util[i]; in calc_cpu_util_internal()
282 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
287 lib_local_cpu_stats.cpu_util); in calc_cpu_util_internal()
290 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_pstatnew.c238 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
423 lib_local_cpu_stats.cpu_util += lib_local_per_cpu_util[i]; in calc_cpu_util_internal()
426 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
431 lib_local_cpu_stats.cpu_util); in calc_cpu_util_internal()
434 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_kstat.c351 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
395 lib_local_cpu_stats.cpu_util += lib_local_per_cpu_util[i]; in calc_cpu_util_internal()
398 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
400 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_kstat10.c374 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
465 lib_local_cpu_stats.cpu_util = -1.0; in calc_cpu_util_internal()
577 lib_local_cpu_stats.cpu_util += lib_local_per_cpu_util[i]; in calc_cpu_util_internal()
580 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
582 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_looper.c591 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
637 lib_local_cpu_stats.cpu_util += lib_local_per_cpu_util[i]; in calc_cpu_util_internal()
640 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
642 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnetcpu_ntperf.c455 memset(&lib_local_cpu_stats, 0, sizeof(lib_local_cpu_stats)); in calc_cpu_util_internal()
475 lib_local_cpu_stats.cpu_util = (float)ReportPerfCntrs(PerfCntrs); in calc_cpu_util_internal()
476 lib_local_cpu_stats.cpu_util *= correction_factor; in calc_cpu_util_internal()
477 return lib_local_cpu_stats.cpu_util; in calc_cpu_util_internal()
Dnettest_omni.c2015 &lib_local_cpu_stats.cpu_user, 1, 0, NETPERF_TYPE_FLOAT); in print_omni_init_list()
2019 &lib_local_cpu_stats.cpu_system, 1, 0, NETPERF_TYPE_FLOAT); in print_omni_init_list()
2023 &lib_local_cpu_stats.cpu_iowait, 1, 0, NETPERF_TYPE_FLOAT); in print_omni_init_list()
2027 &lib_local_cpu_stats.cpu_irq, 1, 0, NETPERF_TYPE_FLOAT); in print_omni_init_list()
2031 &lib_local_cpu_stats.cpu_swintr, 1, 0, NETPERF_TYPE_FLOAT); in print_omni_init_list()
2034 "%.2f", &lib_local_cpu_stats.peak_cpu_util, 1, 0, in print_omni_init_list()
2038 &lib_local_cpu_stats.peak_cpu_id, 1, 0, NETPERF_TYPE_INT32); in print_omni_init_list()
5727 omni_results->cpu_percent_user = lib_local_cpu_stats.cpu_user; in recv_omni()
5728 omni_results->cpu_percent_system = lib_local_cpu_stats.cpu_system; in recv_omni()
5729 omni_results->cpu_percent_iowait = lib_local_cpu_stats.cpu_iowait; in recv_omni()
[all …]
Dnetlib.c199 lib_local_cpu_stats, variable
1417 lib_local_cpu_stats.peak_cpu_id = -1; in netlib_init()
1418 lib_local_cpu_stats.peak_cpu_util = -1.0; in netlib_init()
3716 if (lib_local_per_cpu_util[i] > lib_local_cpu_stats.peak_cpu_util) { in calc_cpu_util()
3717 lib_local_cpu_stats.peak_cpu_util = lib_local_per_cpu_util[i]; in calc_cpu_util()
3718 lib_local_cpu_stats.peak_cpu_id = lib_cpu_map[i]; in calc_cpu_util()
3756 cpu_utilization = lib_local_cpu_stats.cpu_util; in calc_service_demand_internal()
Dnetlib.h498 extern struct cpu_stats_struct lib_local_cpu_stats;