Lines Matching defs:smbstat_srv_info
181 typedef struct smbstat_srv_info {
302 static smbstat_srv_info_t smbstat_srv_info;
473 smbstat_srv_info.si_nbt_sess,
474 smbstat_srv_info.si_tcp_sess,
475 smbstat_srv_info.si_users,
476 smbstat_srv_info.si_trees,
477 smbstat_srv_info.si_files,
478 smbstat_srv_info.si_pipes);
499 smbstat_zero(smbstat_srv_info.si_rbs),
500 smbstat_zero(smbstat_srv_info.si_tbs),
501 smbstat_zero(smbstat_srv_info.si_rqs),
502 smbstat_zero(smbstat_srv_info.si_rds),
503 smbstat_zero(smbstat_srv_info.si_wrs));
524 if (smbstat_srv_info.si_sat)
530 smbstat_srv_info.si_avw,
531 smbstat_srv_info.si_avr,
532 smbstat_srv_info.si_wserv,
533 smbstat_srv_info.si_rserv,
534 smbstat_zero(smbstat_srv_info.si_wpct),
535 smbstat_zero(smbstat_srv_info.si_rpct),
536 smbstat_zero(smbstat_srv_info.si_upct),
538 smbstat_srv_info.si_ticks[CPU_TICKS_USER],
539 smbstat_srv_info.si_ticks[CPU_TICKS_KERNEL],
540 smbstat_srv_info.si_ticks[CPU_TICKS_IDLE]);
559 prq = smbstat_srv_info.si_reqs1;
578 prq = smbstat_srv_info.si_reqs2;
718 smbstat_srv_info.si_ticks[j] =
780 smbstat_srv_info.si_sat = B_TRUE;
782 smbstat_srv_info.si_sat = B_FALSE;
850 smbstat_srv_info.si_hretime =
854 smbstat_srv_info.si_hretime =
857 smbstat_srv_info.si_etime = smbstat_srv_info.si_hretime / NANOSEC;
858 smbstat_srv_info.si_total_nreqs =
877 smbstat_srv_info.si_nbt_sess = curr->ss_data.ks_nbt_sess;
878 smbstat_srv_info.si_tcp_sess = curr->ss_data.ks_tcp_sess;
879 smbstat_srv_info.si_users = curr->ss_data.ks_users;
880 smbstat_srv_info.si_trees = curr->ss_data.ks_trees;
881 smbstat_srv_info.si_files = curr->ss_data.ks_files;
882 smbstat_srv_info.si_pipes = curr->ss_data.ks_pipes;
889 * stores the results in the structure smbstat_srv_info.
896 smbstat_srv_info.si_tbs =
898 smbstat_srv_info.si_tbs /= smbstat_srv_info.si_etime;
899 smbstat_srv_info.si_rbs =
901 smbstat_srv_info.si_rbs /= smbstat_srv_info.si_etime;
902 smbstat_srv_info.si_rqs = smbstat_srv_info.si_total_nreqs;
903 smbstat_srv_info.si_rqs /= smbstat_srv_info.si_etime;
905 smbstat_srv_info.si_rds = smbstat_sub_64(
908 smbstat_srv_info.si_rds += smbstat_sub_64(
911 smbstat_srv_info.si_rds += smbstat_sub_64(
914 smbstat_srv_info.si_rds += smbstat_sub_64(
917 smbstat_srv_info.si_rds += smbstat_sub_64(
920 smbstat_srv_info.si_rds /= smbstat_srv_info.si_etime;
922 smbstat_srv_info.si_wrs = smbstat_sub_64(
925 smbstat_srv_info.si_wrs += smbstat_sub_64(
928 smbstat_srv_info.si_wrs += smbstat_sub_64(
931 smbstat_srv_info.si_wrs += smbstat_sub_64(
934 smbstat_srv_info.si_wrs += smbstat_sub_64(
937 smbstat_srv_info.si_wrs += smbstat_sub_64(
940 smbstat_srv_info.si_wrs /= smbstat_srv_info.si_etime;
947 * stores the results in the structure smbstat_srv_info.
966 rqs = smbstat_srv_info.si_total_nreqs / smbstat_srv_info.si_etime;
970 smbstat_srv_info.si_avw = w_delta / smbstat_srv_info.si_hretime;
972 smbstat_srv_info.si_avw = 0.0;
976 smbstat_srv_info.si_avr = r_delta / smbstat_srv_info.si_hretime;
978 smbstat_srv_info.si_avr = 0.0;
981 smbstat_srv_info.si_upct =
982 (smbstat_srv_info.si_avr / curr->ss_data.ks_maxreqs) * 100;
985 smbstat_srv_info.si_rserv = 0.0;
986 smbstat_srv_info.si_wserv = 0.0;
988 (smbstat_srv_info.si_avw != 0.0 ||
989 smbstat_srv_info.si_avr != 0.0)) {
991 if (smbstat_srv_info.si_avw != 0.0)
992 smbstat_srv_info.si_wserv =
993 smbstat_srv_info.si_avw * tps;
994 if (smbstat_srv_info.si_avr != 0.0)
995 smbstat_srv_info.si_rserv =
996 smbstat_srv_info.si_avr * tps;
1001 smbstat_srv_info.si_wpct = tw_delta;
1002 smbstat_srv_info.si_wpct /= smbstat_srv_info.si_hretime;
1003 smbstat_srv_info.si_wpct *= 100.0;
1005 smbstat_srv_info.si_wpct = 0.0;
1010 smbstat_srv_info.si_rpct = tr_delta;
1011 smbstat_srv_info.si_rpct /= smbstat_srv_info.si_hretime;
1012 smbstat_srv_info.si_rpct *= 100.0;
1014 smbstat_srv_info.si_rpct = 0.0;
1022 * the structure smbstat_srv_info.
1036 info = &smbstat_srv_info.si_reqs1[i];
1045 info = &smbstat_srv_info.si_reqs2[i];
1065 info->ri_rqs = nrqs / smbstat_srv_info.si_etime;
1070 smbstat_srv_info.si_etime;
1075 smbstat_srv_info.si_etime;
1078 if (smbstat_srv_info.si_total_nreqs > 0)
1079 info->ri_pct /= smbstat_srv_info.si_total_nreqs;
1264 * The request list is smbstat_srv_info is then sorted by name or by code
1280 info = smbstat_srv_info.si_reqs1;
1291 info = smbstat_srv_info.si_reqs2;