Searched refs:lib_num_loc_cpus (Results 1 – 14 of 14) sorted by relevance
/external/netperf/src/ |
D | netcpu_perfstat.c | 78 perfstat_buffer = (perfstat_cpu_t *)malloc(lib_num_loc_cpus * in get_cpu_idle() 92 lib_num_loc_cpus); in get_cpu_idle() 95 (ret != lib_num_loc_cpus)) { in get_cpu_idle() 99 lib_num_loc_cpus, in get_cpu_idle() 106 for (i = 0; i < lib_num_loc_cpus; i++){ in get_cpu_idle() 155 perfstat_buffer = (perfstat_cpu_t *)malloc(lib_num_loc_cpus * in calibrate_idle_rate() 174 lib_num_loc_cpus); in calibrate_idle_rate() 177 (ret != lib_num_loc_cpus)) { in calibrate_idle_rate() 181 lib_num_loc_cpus, in calibrate_idle_rate() 188 for (j = 0; j < lib_num_loc_cpus; j++) { in calibrate_idle_rate() [all …]
|
D | netcpu_looper.c | 109 (child_num % lib_num_loc_cpus), in bind_to_processor() 111 lib_num_loc_cpus); in bind_to_processor() 115 SETPROCESS((child_num % lib_num_loc_cpus), getpid()); in bind_to_processor() 130 (child_num % lib_num_loc_cpus), in bind_to_processor() 132 lib_num_loc_cpus); in bind_to_processor() 138 (child_num % lib_num_loc_cpus), in bind_to_processor() 148 if (!SetThreadAffinityMask(GetCurrentThread(), (ULONG_PTR)1 << (child_num % lib_num_loc_cpus))) { in bind_to_processor() 157 (child_num % lib_num_loc_cpus), in bind_to_processor() 158 lib_num_loc_cpus); in bind_to_processor() 215 bind_to_specific_processor(child_index % lib_num_loc_cpus,1); in sit_and_spin() [all …]
|
D | netcpu_pstat.c | 68 psp = (struct pst_processor *)malloc(lib_num_loc_cpus * sizeof(*psp)); in get_cpu_idle() 70 printf("malloc(%d) failed!\n", lib_num_loc_cpus * sizeof(*psp)); in get_cpu_idle() 73 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { in get_cpu_idle() 75 for (i = 0; i < lib_num_loc_cpus; i++) { in get_cpu_idle() 132 psp = (struct pst_processor *)malloc(lib_num_loc_cpus * sizeof(*psp)); in calibrate_idle_rate() 134 printf("malloc(%d) failed!\n", lib_num_loc_cpus * sizeof(*psp)); in calibrate_idle_rate() 141 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { in calibrate_idle_rate() 142 for (j = 0; j < lib_num_loc_cpus; j++) { in calibrate_idle_rate() 177 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { in calibrate_idle_rate() 178 for (j = 0; j < lib_num_loc_cpus; j++) { in calibrate_idle_rate() [all …]
|
D | netcpu_procstat.c | 94 proc_stat_buflen = N_CPU_LINES (lib_num_loc_cpus) * CPU_LINE_LENGTH; in cpu_util_init() 98 lib_num_loc_cpus, in cpu_util_init() 99 N_CPU_LINES(lib_num_loc_cpus), in cpu_util_init() 141 proc_stat_buflen = N_CPU_LINES (lib_num_loc_cpus) * CPU_LINE_LENGTH; in calibrate_idle_rate() 145 lib_num_loc_cpus, in calibrate_idle_rate() 146 N_CPU_LINES(lib_num_loc_cpus), in calibrate_idle_rate() 165 int n = lib_num_loc_cpus; in get_cpu() 275 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 344 / ((float)lib_num_loc_cpus)) in calc_cpu_util_internal()
|
D | netcpu_kstat.c | 148 if (kn && kn->value.ui32 > lib_num_loc_cpus) { in open_kstat() 173 if (ncpu > lib_num_loc_cpus) in open_kstat() 178 ncpu,lib_num_loc_cpus); in open_kstat() 242 for (i = 0; i < lib_num_loc_cpus; i++){ in get_cpu_idle() 288 for (j = 0; j < lib_num_loc_cpus; j++) { in calibrate_idle_rate() 310 for (j = 0; j < lib_num_loc_cpus; j++) { in calibrate_idle_rate() 367 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 398 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
|
D | netcpu_pstatnew.c | 85 max_proc_count = lib_num_loc_cpus; in cpu_util_init() 131 while ((i < lib_num_loc_cpus) && (j < max_proc_count)) { in get_cpu_counters() 286 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 426 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
|
D | netcpu_kstat10.c | 326 for (i = 0; i < lib_num_loc_cpus; i++){ in get_cpu_time_counters() 390 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 580 lib_local_cpu_stats.cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
|
D | netserver.c | 811 bcopy((char *)&lib_num_loc_cpus, in process_requests() 814 sizeof(lib_num_loc_cpus)); in process_requests() 819 lib_num_loc_cpus); in process_requests()
|
D | netlib.h | 506 extern int lib_num_loc_cpus;
|
D | nettest_sdp.c | 1875 sdp_stream_results->num_cpus = lib_num_loc_cpus; in recv_sdp_stream() 2244 sdp_maerts_results->num_cpus = lib_num_loc_cpus; in recv_sdp_maerts() 3338 sdp_rr_results->num_cpus = lib_num_loc_cpus; in recv_sdp_rr()
|
D | nettest_bsd.c | 5206 tcp_stream_results->num_cpus = lib_num_loc_cpus; in recv_tcp_stream() 5584 tcp_maerts_results->num_cpus = lib_num_loc_cpus; in recv_tcp_maerts() 7336 udp_stream_results->num_cpus = lib_num_loc_cpus; in recv_udp_stream() 8333 udp_rr_results->num_cpus = lib_num_loc_cpus; in recv_udp_rr() 8705 tcp_rr_results->num_cpus = lib_num_loc_cpus; in recv_tcp_rr() 8746 (lib_num_loc_cpus > 1) ? "are" : "is", in loc_cpu_rate() 8747 lib_num_loc_cpus, in loc_cpu_rate() 8748 (lib_num_loc_cpus > 1) ? "cpus" : "cpu"); in loc_cpu_rate() 11976 tcp_rr_results->num_cpus = lib_num_loc_cpus; in recv_tcp_nbrr() 12909 tcp_cc_results->num_cpus = lib_num_loc_cpus; in recv_tcp_cc()
|
D | nettest_sctp.c | 1433 sctp_stream_results->num_cpus = lib_num_loc_cpus; in recv_sctp_stream() 2551 sctp_stream_results->num_cpus = lib_num_loc_cpus; in recv_sctp_stream_1toMany() 3585 sctp_rr_results->num_cpus = lib_num_loc_cpus; in recv_sctp_rr() 4632 sctp_rr_results->num_cpus = lib_num_loc_cpus; in recv_sctp_rr_1toMany()
|
D | netlib.c | 195 lib_num_loc_cpus, /* the number of cpus in the system */ variable 3750 if (num_cpus == 0) num_cpus = lib_num_loc_cpus; in calc_service_demand_internal() 3836 lib_num_loc_cpus = get_num_cpus(); in calibrate_local_cpu()
|
D | nettest_omni.c | 2053 &lib_num_loc_cpus, 1, 0, NETPERF_TYPE_INT32); in print_omni_init_list() 5724 omni_results->num_cpus = lib_num_loc_cpus; in recv_omni()
|