Searched refs:lib_num_loc_cpus (Results 1 – 13 of 13) sorted by relevance
/external/netperf/ |
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 | 76 proc_stat_buflen = N_CPU_LINES (lib_num_loc_cpus) * CPU_LINE_LENGTH; in cpu_util_init() 80 lib_num_loc_cpus, in cpu_util_init() 81 N_CPU_LINES(lib_num_loc_cpus), in cpu_util_init() 123 proc_stat_buflen = N_CPU_LINES (lib_num_loc_cpus) * CPU_LINE_LENGTH; in calibrate_idle_rate() 127 lib_num_loc_cpus, in calibrate_idle_rate() 128 N_CPU_LINES(lib_num_loc_cpus), in calibrate_idle_rate() 148 int n = lib_num_loc_cpus; in get_cpu_idle() 217 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 248 lib_local_cpu_util /= (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() 366 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 396 lib_local_cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
|
D | netcpu_pstatnew.c | 92 psp = (struct pst_processor *)malloc(lib_num_loc_cpus * sizeof(*psp)); in get_cpu_counters() 94 printf("malloc(%d) failed!\n", lib_num_loc_cpus * sizeof(*psp)); in get_cpu_counters() 97 if (pstat_getprocessor(psp, sizeof(*psp), lib_num_loc_cpus, 0) != -1) { in get_cpu_counters() 103 for (i = 0; i < lib_num_loc_cpus; i++) { in get_cpu_counters() 249 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 376 lib_local_cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
|
D | netcpu_kstat10.c | 285 for (i = 0; i < lib_num_loc_cpus; i++){ in get_cpu_time_counters() 349 for (i = 0; i < lib_num_loc_cpus; i++) { in calc_cpu_util_internal() 540 lib_local_cpu_util /= (float)lib_num_loc_cpus; in calc_cpu_util_internal()
|
D | netserver.c | 258 bcopy((char *)&lib_num_loc_cpus, in process_requests() 260 sizeof(lib_num_loc_cpus)); in process_requests() 263 fprintf(where,"rate is %g num cpu %d\n",temp_rate,lib_num_loc_cpus); in process_requests()
|
D | netlib.h | 443 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_sctp.c | 1445 sctp_stream_results->num_cpus = lib_num_loc_cpus; in recv_sctp_stream() 2568 sctp_stream_results->num_cpus = lib_num_loc_cpus; in recv_sctp_stream_1toMany() 3605 sctp_rr_results->num_cpus = lib_num_loc_cpus; in recv_sctp_rr() 4656 sctp_rr_results->num_cpus = lib_num_loc_cpus; in recv_sctp_rr_1toMany()
|
D | nettest_bsd.c | 4533 tcp_stream_results->num_cpus = lib_num_loc_cpus; in recv_tcp_stream() 4900 tcp_maerts_results->num_cpus = lib_num_loc_cpus; in recv_tcp_maerts() 6578 udp_stream_results->num_cpus = lib_num_loc_cpus; in recv_udp_stream() 7515 udp_rr_results->num_cpus = lib_num_loc_cpus; in recv_udp_rr() 7886 tcp_rr_results->num_cpus = lib_num_loc_cpus; in recv_tcp_rr() 7927 (lib_num_loc_cpus > 1) ? "are" : "is", in loc_cpu_rate() 7928 lib_num_loc_cpus, in loc_cpu_rate() 7929 (lib_num_loc_cpus > 1) ? "cpus" : "cpu"); in loc_cpu_rate() 11122 tcp_rr_results->num_cpus = lib_num_loc_cpus; in recv_tcp_nbrr()
|
D | netlib.c | 197 lib_num_loc_cpus, /* the number of cpus in the system */ variable 3175 if (num_cpus == 0) num_cpus = lib_num_loc_cpus; in calc_service_demand_internal() 3257 lib_num_loc_cpus = get_num_cpus(); in calibrate_local_cpu()
|