/titanic_41/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_stat.c | 53 struct oce_stat *stats; in oce_update_stats() local 62 stats = (struct oce_stat *)ksp->ks_data; in oce_update_stats() 79 stats->rx_bytes_lo.value.ul = port_stats->rx_bytes_lsd; in oce_update_stats() 80 stats->rx_bytes_hi.value.ul = port_stats->rx_bytes_msd; in oce_update_stats() 82 stats->rx_frames.value.ul = port_stats->rx_total_frames; in oce_update_stats() 83 stats->rx_errors.value.ul = port_stats->rx_crc_errors + in oce_update_stats() 92 stats->rx_drops.value.ul = port_stats->rx_dropped_too_small + in oce_update_stats() 98 stats->tx_bytes_lo.value.ul = port_stats->tx_bytes_lsd; in oce_update_stats() 99 stats->tx_bytes_hi.value.ul = port_stats->tx_bytes_msd; in oce_update_stats() 101 stats->tx_frames.value.ul = port_stats->tx_unicast_frames + in oce_update_stats() [all …]
|
/titanic_41/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-stats.c | 37 __hal_stats_initialize (xge_hal_stats_t *stats, xge_hal_device_h devh) in __hal_stats_initialize() argument 42 xge_assert(!stats->is_initialized); in __hal_stats_initialize() 51 stats->hw_info = in __hal_stats_initialize() 56 &stats->hw_info_dmah, in __hal_stats_initialize() 57 &stats->hw_info_dma_acch); in __hal_stats_initialize() 59 if (stats->hw_info == NULL) { in __hal_stats_initialize() 63 xge_os_memzero(stats->hw_info, in __hal_stats_initialize() 65 xge_os_memzero(&stats->hw_info_saved, in __hal_stats_initialize() 67 xge_os_memzero(&stats->hw_info_latest, in __hal_stats_initialize() 72 stats->dma_addr = xge_os_dma_map(hldev->pdev, in __hal_stats_initialize() [all …]
|
/titanic_41/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_stats.h | 200 (_icp_->stats.ks_data.kn[KN_CONN_IDX_ERR_HDR_DIGEST].value.ul++) 203 (_icp_->stats.ks_data.kn[KN_CONN_IDX_ERR_DATA_DIGEST].value.ul++) 206 (_icp_->stats.ks_data.kn[KN_CONN_IDX_ERR_PROTOCOL].value.ul++) 209 (_icp_->stats.ks_data.kn[KN_CONN_IDX_ERR_CONN_RESET].value.ul++) 212 (_icp_->stats.ks_data.kn[KN_CONN_IDX_CNTR_TX_BYTES].value.ui64 += \ 216 (_icp_->stats.ks_data.kn[KN_CONN_IDX_CNTR_RX_BYTES].value.ui64 += \ 262 (_isp_->stats.ks_data.kn[KN_SESS_IDX_CNTR_RESET].value.ul++) 265 (_isp_->stats.ks_data.kn[KN_SESS_IDX_CNTR_CONN].value.ul++) 268 (_isp_->stats.ks_data.kn[KN_SESS_IDX_CNTR_CONN].value.ul--) 271 mutex_enter(&_isp_->stats.ks_io_lock); \ [all …]
|
H A D | iscsi_stats.c | 96 ihp->stats.ks = kstat_create(iSCSI_MODULE_NAME, in iscsi_hba_kstat_init() 100 if (ihp->stats.ks == NULL) { in iscsi_hba_kstat_init() 106 ihs = &ihp->stats.ks_data; in iscsi_hba_kstat_init() 107 ihp->stats.ks->ks_data = &ihp->stats.ks_data; in iscsi_hba_kstat_init() 108 ihp->stats.ks->ks_data_size = sizeof (ihp->stats.ks_data); in iscsi_hba_kstat_init() 109 ihp->stats.ks->ks_ndata = KN_HBA_IDX_MAX; in iscsi_hba_kstat_init() 116 ihp->stats.ks->ks_update = iscsi_hba_kstat_update; in iscsi_hba_kstat_init() 117 ihp->stats.ks->ks_private = (void *)ihp; in iscsi_hba_kstat_init() 119 kstat_install(ihp->stats.ks); in iscsi_hba_kstat_init() 130 kstat_delete(ihp->stats.ks); in iscsi_hba_kstat_term() [all …]
|
/titanic_41/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/ |
H A D | lm_stats.c | 49 #define LM_STATS_IS_HW_ACTIVE(_pdev) ( _pdev->vars.stats.stats_collect.stats_hw.b_collect_enabled &… 158 lm_u64_t* stats = (lm_u64_t *)stats_cnt; in lm_get_stats() local 169 stats_fw = &pdev->vars.stats.stats_mirror.stats_fw; in lm_get_stats() 175 stats->as_u64 = stats_fw->eth_xstorm_common.client_statistics[i].total_sent_pkts ; in lm_get_stats() 179 stats->as_u64 = stats_fw->eth_tstorm_common.client_statistics[i].rcv_broadcast_pkts + in lm_get_stats() 182 stats->as_u64-= stats_fw->eth_ustorm_common.client_statistics[i].ucast_no_buff_pkts ; in lm_get_stats() 183 stats->as_u64-= stats_fw->eth_ustorm_common.client_statistics[i].mcast_no_buff_pkts ; in lm_get_stats() 184 stats->as_u64-= stats_fw->eth_ustorm_common.client_statistics[i].bcast_no_buff_pkts ; in lm_get_stats() 191 #define LM_STATS_ERROR_DISCARD_SUM( _pdev, _i ) _pdev->vars.stats.stats_mirror.stats_fw.eth_tstorm… in lm_get_stats() 192 …_pdev->vars.stats.stats_mirror.stats_fw.eth_tstorm_common.client_statistics[_i].packets_too_big_di… in lm_get_stats() [all …]
|
H A D | lm_niv.c | 301 b10_l2_chip_statistics_t stats = {0}; in lm_niv_chip_stats_to_niv_stats() local 302 lm_stats_fw_t *fw_stats = &pdev->vars.stats.stats_mirror.stats_fw; in lm_niv_chip_stats_to_niv_stats() 303 …fcoe_stats_info_t *fcoe_stats_mfw = &pdev->vars.stats.stats_mirror.stats_drv.drv_info_to_mf… in lm_niv_chip_stats_to_niv_stats() 306 lm_stats_get_l2_chip_stats(pdev, &stats, L2_CHIP_STATISTICS_VER_NUM_1); in lm_niv_chip_stats_to_niv_stats() 308 …sum_64 = stats.IfHCOutUcastPkts + fw_stats->fcoe.fcoe_tx_pkt_cnt + (HILO_U64(fcoe_stats_mfw->tx_fr… in lm_niv_chip_stats_to_niv_stats() 311 …sum_64 = stats.IfHCOutUcastOctets + fw_stats->fcoe.fcoe_tx_byte_cnt + (HILO_U64(fcoe_stats_mfw->tx… in lm_niv_chip_stats_to_niv_stats() 314 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->tx_multicast_frames, stats.IfHCOutMulticastPkts ); in lm_niv_chip_stats_to_niv_stats() 315 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->tx_multicast_bytes, stats.IfHCOutMulticastOctets ); in lm_niv_chip_stats_to_niv_stats() 317 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->tx_broadcast_frames, stats.IfHCOutBroadcastPkts ); in lm_niv_chip_stats_to_niv_stats() 318 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->tx_broadcast_bytes, stats.IfHCOutBroadcastOctets ); in lm_niv_chip_stats_to_niv_stats() [all …]
|
/titanic_41/usr/src/cmd/fs.d/cachefs/common/ |
H A D | stats_stats.c | 67 cachefs_stats_t *stats; in stats_hits() local 71 stats = (cachefs_stats_t *) ks->ks_data; in stats_hits() 72 rc = stats->st_hits; in stats_hits() 85 cachefs_stats_t *stats; in stats_misses() local 89 stats = (cachefs_stats_t *) ks->ks_data; in stats_misses() 90 rc = stats->st_misses; in stats_misses() 103 cachefs_stats_t *stats; in stats_passes() local 107 stats = (cachefs_stats_t *) ks->ks_data; in stats_passes() 108 rc = stats->st_passes; in stats_passes() 121 cachefs_stats_t *stats; in stats_fails() local [all …]
|
/titanic_41/usr/src/cmd/sendmail/aux/ |
H A D | mailstats.c | 69 struct statistics stats; variable 223 if ((fd < 0) || (i = read(fd, &stats, sizeof stats)) < 0) 234 if ((i = read(fd, &stats, sizeof stats)) < 0) 245 memset((ARBPTR_T) &stats, '\0', sizeof stats); 246 (void) time(&stats.stat_itime); 251 if (stats.stat_magic != STAT_MAGIC) 258 else if (stats.stat_version != STAT_VERSION) 263 stats.stat_version); 267 else if (i != sizeof stats || stats.stat_size != sizeof(stats)) 279 (long) stats.stat_itime, (long) now); [all …]
|
/titanic_41/usr/src/cmd/sendmail/src/ |
H A D | stats.c | 140 struct statistics stats; local 167 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) && 168 stats.stat_size == sizeof(stats) && 169 stats.stat_magic == Stat.stat_magic && 170 stats.stat_version == Stat.stat_version) 177 stats.stat_nf[i] += Stat.stat_nf[i]; 178 stats.stat_bf[i] += Stat.stat_bf[i]; 179 stats.stat_nt[i] += Stat.stat_nt[i]; 180 stats.stat_bt[i] += Stat.stat_bt[i]; 181 stats.stat_nr[i] += Stat.stat_nr[i]; [all …]
|
/titanic_41/usr/src/tools/ctf/dump/ |
H A D | dump.c | 94 } stats; variable 307 stats.s_ndata = n; in read_data() 380 stats.s_nfunc++; in read_funcs() 381 stats.s_nargs += n; in read_funcs() 382 stats.s_argmax = MAX(stats.s_argmax, n); in read_funcs() 512 stats.s_nsmem += n; in read_types() 513 stats.s_smmax = MAX(stats.s_smmax, n); in read_types() 514 stats.s_nsbytes += size; in read_types() 515 stats.s_sbmax = MAX(stats.s_sbmax, size); in read_types() 520 stats.s_numem += n; in read_types() [all …]
|
/titanic_41/usr/src/cmd/fm/eversholt/common/ |
H A D | stats.h | 42 struct stats *stats_new_counter(const char *name, const char *desc, int ext); 43 void stats_delete(struct stats *sp); 44 void stats_counter_bump(struct stats *sp); 45 void stats_counter_add(struct stats *sp, int n); 46 void stats_counter_reset(struct stats *sp); 47 int stats_counter_value(struct stats *sp); 48 struct stats *stats_new_elapse(const char *name, const char *desc, int ext); 49 void stats_elapse_start(struct stats *sp); 50 void stats_elapse_stop(struct stats *sp); 51 struct stats *stats_new_string(const char *name, const char *desc, int ext); [all …]
|
H A D | stats.c | 38 struct stats { struct 39 struct stats *next; argument 58 static struct stats *Statslist; 59 static struct stats *Laststats; 78 static struct stats * 81 struct stats *ret = MALLOC(sizeof (*ret)); in stats_new() 98 stats_delete(struct stats *sp) in stats_delete() 100 struct stats *p, *s; in stats_delete() 125 struct stats * 135 stats_counter_bump(struct stats *sp) in stats_counter_bump() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | deflate.c | 57 struct compstat stats; member 72 static void z_comp_stats __P((void *state, struct compstat *stats)); 109 z_comp_stats(arg, stats) in z_comp_stats() argument 111 struct compstat *stats; 116 *stats = state->stats; 117 stats->ratio = stats->unc_bytes; 118 out = stats->comp_bytes + stats->unc_bytes; 119 if (stats->ratio <= 0x7ffffff) 120 stats->ratio <<= 8; 124 stats->ratio /= out; [all …]
|
/titanic_41/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | stats.c | 61 static struct stats * 64 struct stats *ret = MALLOC(sizeof (*ret)); in stats_new() 107 stats_delete(struct stats *sp) in stats_delete() 116 struct stats * 126 stats_counter_bump(struct stats *sp) in stats_counter_bump() 137 stats_counter_add(struct stats *sp, int n) in stats_counter_add() 148 stats_counter_reset(struct stats *sp) in stats_counter_reset() 159 stats_counter_value(struct stats *sp) in stats_counter_value() 169 struct stats * 179 stats_elapse_start(struct stats *sp) in stats_elapse_start() [all …]
|
/titanic_41/usr/src/lib/libast/common/regex/ |
H A D | regcomp.c | 127 Stats_t stats; /* RE statistics */ member 355 stats(register Cenv_t* env, register Rex_t* e) in stats() function 377 x = env->stats.x; in stats() 378 l = env->stats.l; in stats() 379 y = env->stats.y; in stats() 380 k = env->stats.k; in stats() 381 t = env->stats.t; in stats() 382 if (++env->stats.a <= 0) in stats() 384 cm = env->stats.m; in stats() 385 env->stats.m = 0; in stats() [all …]
|
/titanic_41/usr/src/uts/common/ipp/meters/ |
H A D | tswtclddi.c | 216 cfg_parms->stats = B_FALSE; in tswtcl_create_action() 218 cfg_parms->stats = (boolean_t)bstats; in tswtcl_create_action() 230 if (cfg_parms->stats) { in tswtcl_create_action() 272 if (cfg_parms->stats) { in tswtcl_create_action() 273 ipp_stat_destroy(tswtcl_data->stats); in tswtcl_create_action() 399 cfg_parms->stats = (boolean_t)bstats; in tswtcl_modify_action() 400 if (cfg_parms->stats && !old_cfg->stats) { in tswtcl_modify_action() 406 } else if (!cfg_parms->stats && old_cfg->stats) { in tswtcl_modify_action() 407 ipp_stat_destroy(tswtcl_data->stats); in tswtcl_modify_action() 475 if (cfg_parms->stats) { in tswtcl_destroy_action() [all …]
|
H A D | tokenmtddi.c | 312 cfg_parms->stats = B_FALSE; in tokenmt_create_action() 314 cfg_parms->stats = (bstats == 0) ? B_FALSE : B_TRUE; in tokenmt_create_action() 327 if (cfg_parms->stats) { in tokenmt_create_action() 376 if (cfg_parms->stats) { in tokenmt_create_action() 377 ipp_stat_destroy(tokenmt_data->stats); in tokenmt_create_action() 585 cfg_parms->stats = (bstats == 0) ? B_FALSE : B_TRUE; in tokenmt_modify_action() 586 if (cfg_parms->stats && !old_cfg->stats) { in tokenmt_modify_action() 592 } else if (!cfg_parms->stats && old_cfg->stats) { in tokenmt_modify_action() 593 ipp_stat_destroy(tokenmt_data->stats); in tokenmt_modify_action() 660 if (cfg_parms->stats) { in tokenmt_destroy_action() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/pppstats/ |
H A D | pppstats.c | 162 req.stats_ptr = (caddr_t) &req.stats; 176 *curp = req.stats; 188 creq.stats_ptr = (caddr_t) &creq.stats; 208 if (creq.stats.c.bytes_out == 0) { 209 creq.stats.c.bytes_out = creq.stats.c.comp_bytes + creq.stats.c.inc_bytes; 210 creq.stats.c.in_count = creq.stats.c.unc_bytes; 212 if (creq.stats.c.bytes_out == 0) 213 creq.stats.c.ratio = 0.0; 215 creq.stats.c.ratio = 256.0 * creq.stats.c.in_count / 216 creq.stats.c.bytes_out; [all …]
|
/titanic_41/usr/src/uts/common/os/ |
H A D | cap_util.c | 312 int nreqs, cu_cntr_stats_t *stats, int kmem_flags, int *nevents); 321 static int cu_cpu_update_stats(cu_cntr_stats_t *stats, 462 cu_cntr_stats_t *stats; in cu_cpc_init() local 489 stats = NULL; in cu_cpc_init() 495 stats = cu_cpu_info->cu_cntr_stats; in cu_cpc_init() 535 if (cu_cpc_req_add("PAPI_tot_ins", reqs, nreqs, stats, in cu_cpc_init() 542 if (cu_cpc_req_add("PAPI_fp_ins", reqs, nreqs, stats, in cu_cpc_init() 581 cntr_info->ci_stats = &stats[nevents_save]; in cu_cpc_init() 870 cu_cntr_stats_t *stats, int kmem_flags, int *nevents) in cu_cpc_req_add() argument 900 if (stats == NULL || (nreqs <= 0 && n >= nreqs)) in cu_cpc_req_add() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/isc/ |
H A D | memcluster.c | 86 struct stats { struct 122 static struct stats * stats; variable 156 stats = malloc((max_size+1) * sizeof (struct stats)); in meminit() 157 if (freelists == NULL || stats == NULL) { in meminit() 163 memset(stats, 0, (max_size + 1) * sizeof (struct stats)); in meminit() 213 stats[max_size].gets++; in __memget_record() 214 stats[max_size].totalgets++; in __memget_record() 290 stats[new_size].blocks++; in __memget_record() 291 stats[new_size].freefrags += frags; in __memget_record() 347 stats[size].gets++; in __memget_record() [all …]
|
/titanic_41/usr/src/uts/common/inet/tcp/ |
H A D | tcp_stats.c | 785 tcp_stat_t *stats; in tcp_kstat2_update() local 801 stats = (tcp_stat_t *)kp->ks_data; in tcp_kstat2_update() 802 tcp_clr_stats(stats); in tcp_kstat2_update() 810 tcp_add_stats(&tcps->tcps_sc[i]->tcp_sc_stats, stats); in tcp_kstat2_update() 899 tcp_clr_stats(tcp_stat_t *stats) in tcp_clr_stats() argument 901 stats->tcp_time_wait_syn_success.value.ui64 = 0; in tcp_clr_stats() 902 stats->tcp_clean_death_nondetached.value.ui64 = 0; in tcp_clr_stats() 903 stats->tcp_eager_blowoff_q.value.ui64 = 0; in tcp_clr_stats() 904 stats->tcp_eager_blowoff_q0.value.ui64 = 0; in tcp_clr_stats() 905 stats->tcp_no_listener.value.ui64 = 0; in tcp_clr_stats() [all …]
|
/titanic_41/usr/src/uts/common/io/rtls/ |
H A D | rtls.c | 834 *val = rtlsp->stats.ipackets; in rtls_m_stat() 837 *val = rtlsp->stats.rbytes; in rtls_m_stat() 840 *val = rtlsp->stats.opackets; in rtls_m_stat() 843 *val = rtlsp->stats.obytes; in rtls_m_stat() 846 *val = rtlsp->stats.rcv_err; in rtls_m_stat() 849 *val = rtlsp->stats.xmt_err; in rtls_m_stat() 852 *val = rtlsp->stats.multi_rcv; in rtls_m_stat() 855 *val = rtlsp->stats.brdcst_rcv; in rtls_m_stat() 858 *val = rtlsp->stats.multi_xmt; in rtls_m_stat() 861 *val = rtlsp->stats.brdcst_xmt; in rtls_m_stat() [all …]
|
/titanic_41/usr/src/uts/common/io/chxge/com/ |
H A D | vsc7326.c | 592 memset(&mac->stats, 0, sizeof(struct cmac_statistics)); in mac_disable() 617 rmon_update(mac, REG_RX_OK_BYTES(port), &mac->stats.RxOctetsOK); in port_stats_update() 618 rmon_update(mac, REG_RX_BAD_BYTES(port), &mac->stats.RxOctetsBad); in port_stats_update() 619 rmon_update(mac, REG_RX_UNICAST(port), &mac->stats.RxUnicastFramesOK); in port_stats_update() 621 &mac->stats.RxMulticastFramesOK); in port_stats_update() 623 &mac->stats.RxBroadcastFramesOK); in port_stats_update() 624 rmon_update(mac, REG_CRC(port), &mac->stats.RxFCSErrors); in port_stats_update() 625 rmon_update(mac, REG_RX_ALIGNMENT(port), &mac->stats.RxAlignErrors); in port_stats_update() 627 &mac->stats.RxFrameTooLongErrors); in port_stats_update() 628 rmon_update(mac, REG_RX_PAUSE(port), &mac->stats.RxPauseFrames); in port_stats_update() [all …]
|
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | deflate.c | 67 struct compstat stats; member 92 static void z_comp_stats(void *state, struct compstat *stats); 233 bzero(&state->stats, sizeof (state->stats)); in z_comp_alloc() 508 state->stats.comp_bytes += olen; in z_compress() 509 state->stats.comp_packets++; in z_compress() 516 state->stats.inc_bytes += orig_len; in z_compress() 517 state->stats.inc_packets++; in z_compress() 522 state->stats.unc_bytes += orig_len; in z_compress() 523 state->stats.unc_packets++; in z_compress() 610 state->stats.inc_bytes += rlen; in z_incomp() [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | threads.c | 562 if (m->stats.count < 10) in krb5int_mutex_report_stats() 564 if (m->stats.lockwait.valsum < 10 * m->stats.count) in krb5int_mutex_report_stats() 574 if (m->stats.count == 0) in krb5int_mutex_report_stats() 578 sd_wait = get_stddev(m->stats.lockwait, m->stats.count); in krb5int_mutex_report_stats() 579 sd_hold = get_stddev(m->stats.lockheld, m->stats.count); in krb5int_mutex_report_stats() 582 m->stats.count, m->stats.count == 1 ? "" : "s", in krb5int_mutex_report_stats() 583 (unsigned long) m->stats.lockwait.valmin, in krb5int_mutex_report_stats() 584 (double) m->stats.lockwait.valsum / m->stats.count, in krb5int_mutex_report_stats() 585 (unsigned long) m->stats.lockwait.valmax, in krb5int_mutex_report_stats() 587 (unsigned long) m->stats.lockheld.valmin, in krb5int_mutex_report_stats() [all …]
|