/illumos-gate/usr/src/uts/common/io/igc/ |
H A D | igc_stat.c | 47 igc_stats_t *stats; in igc_stats_update() local 53 stats = &igc->igc_stats; in igc_stats_update() 57 stats->is_crcerrs.value.ui64 += igc_read32(igc, IGC_CRCERRS); in igc_stats_update() 58 stats->is_algnerrc.value.ui64 += igc_read32(igc, IGC_ALGNERRC); in igc_stats_update() 59 stats->is_mpc.value.ui64 += igc_read32(igc, IGC_MPC); in igc_stats_update() 60 stats->is_scc.value.ui64 += igc_read32(igc, IGC_SCC); in igc_stats_update() 61 stats->is_ecol.value.ui64 += igc_read32(igc, IGC_ECOL); in igc_stats_update() 62 stats->is_mcc.value.ui64 += igc_read32(igc, IGC_MCC); in igc_stats_update() 63 stats->is_latecol.value.ui64 += igc_read32(igc, IGC_LATECOL); in igc_stats_update() 64 stats->is_colc.value.ui64 += igc_read32(igc, IGC_COLC); in igc_stats_update() [all …]
|
H A D | igc_gld.c | 76 igc_stats_t *stats = &igc->igc_stats; in igc_m_getstat() local 89 stats->is_mprc.value.ui64 += igc_read32(igc, IGC_MPRC); in igc_m_getstat() 90 *valp = stats->is_mprc.value.ui64; in igc_m_getstat() 93 stats->is_bprc.value.ui64 += igc_read32(igc, IGC_BPRC); in igc_m_getstat() 94 *valp = stats->is_bprc.value.ui64; in igc_m_getstat() 97 stats->is_mptc.value.ui64 += igc_read32(igc, IGC_MPTC); in igc_m_getstat() 98 *valp = stats->is_mptc.value.ui64; in igc_m_getstat() 101 stats->is_bptc.value.ui64 += igc_read32(igc, IGC_BPTC); in igc_m_getstat() 102 *valp = stats->is_bptc.value.ui64; in igc_m_getstat() 105 stats->is_rnbc.value.ui64 += igc_read32(igc, IGC_RNBC); in igc_m_getstat() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/sendmail/util/ |
H A D | mailstats.c | 67 struct statistics stats; variable 222 if ((fd < 0) || (i = read(fd, &stats, sizeof stats)) < 0) 233 if ((i = read(fd, &stats, sizeof stats)) < 0) 244 memset((ARBPTR_T) &stats, '\0', sizeof stats); 245 (void) time(&stats.stat_itime); 250 if (stats.stat_magic != STAT_MAGIC) 257 else if (stats.stat_version != STAT_VERSION) 262 stats.stat_version); 266 else if (i != sizeof stats || stats.stat_size != sizeof(stats)) 278 (long) stats.stat_itime, (long) now); [all …]
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | stats.c | 138 struct statistics stats; local 165 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) && 166 stats.stat_size == sizeof(stats) && 167 stats.stat_magic == Stat.stat_magic && 168 stats.stat_version == Stat.stat_version) 175 stats.stat_nf[i] += Stat.stat_nf[i]; 176 stats.stat_bf[i] += Stat.stat_bf[i]; 177 stats.stat_nt[i] += Stat.stat_nt[i]; 178 stats.stat_bt[i] += Stat.stat_bt[i]; 179 stats.stat_nr[i] += Stat.stat_nr[i]; [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | stats.h | 40 struct stats *stats_new_counter(const char *name, const char *desc, int ext); 41 void stats_delete(struct stats *sp); 42 void stats_counter_bump(struct stats *sp); 43 void stats_counter_add(struct stats *sp, int n); 44 void stats_counter_reset(struct stats *sp); 45 int stats_counter_value(struct stats *sp); 46 struct stats *stats_new_elapse(const char *name, const char *desc, int ext); 47 void stats_elapse_start(struct stats *sp); 48 void stats_elapse_stop(struct stats *sp); 49 struct stats *stats_new_string(const char *name, const char *desc, int ext); [all …]
|
H A D | stats.c | 36 struct stats { struct 37 struct stats *next; argument 56 static struct stats *Statslist; 57 static struct stats *Laststats; 76 static struct stats * 79 struct stats *ret = MALLOC(sizeof (*ret)); in stats_new() 96 stats_delete(struct stats *sp) in stats_delete() 98 struct stats *p, *s; in stats_delete() 123 struct stats * 133 stats_counter_bump(struct stats *sp) in stats_counter_bump() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | stats.c | 59 static struct stats * 62 struct stats *ret = MALLOC(sizeof (*ret)); in stats_new() 105 stats_delete(struct stats *sp) in stats_delete() 114 struct stats * 124 stats_counter_bump(struct stats *sp) in stats_counter_bump() 135 stats_counter_add(struct stats *sp, int n) in stats_counter_add() 146 stats_counter_reset(struct stats *sp) in stats_counter_reset() 157 stats_counter_value(struct stats *sp) in stats_counter_value() 167 struct stats * 177 stats_elapse_start(struct stats *sp) in stats_elapse_start() [all …]
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/ |
H A D | regcomp.c | 126 Stats_t stats; /* RE statistics */ member 364 stats(register Cenv_t* env, register Rex_t* e) in stats() function 386 x = env->stats.x; in stats() 387 l = env->stats.l; in stats() 388 y = env->stats.y; in stats() 389 k = env->stats.k; in stats() 390 t = env->stats.t; in stats() 391 if (++env->stats.a <= 0) in stats() 393 cm = env->stats.m; in stats() 394 env->stats.m = 0; in stats() [all …]
|
H A D | regstat.c | 35 p->env->stats.re_flags = p->env->flags; in regstat() 36 p->env->stats.re_info = 0; in regstat() 40 p->env->stats.re_record = p->env->rex->re.bm.size; in regstat() 44 p->env->stats.re_record = 0; in regstat() 50 p->env->stats.re_info |= REG_LITERAL; in regstat() 51 …p->env->stats.re_record = (p && p->env && p->env->rex->type == REX_BM) ? p->env->rex->re.bm.size :… in regstat() 52 return &p->env->stats; in regstat()
|
/illumos-gate/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 …]
|
/illumos-gate/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() 582 cntr_info->ci_stats = &stats[nevents_save]; in cu_cpc_init() 871 cu_cntr_stats_t *stats, int kmem_flags, int *nevents) in cu_cpc_req_add() argument 901 if (stats == NULL || (nreqs <= 0 && n >= nreqs)) in cu_cpc_req_add() [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppstats/ |
H A D | pppstats.c | 156 req.stats_ptr = (caddr_t) &req.stats; 170 *curp = req.stats; 182 creq.stats_ptr = (caddr_t) &creq.stats; 202 if (creq.stats.c.bytes_out == 0) { 203 creq.stats.c.bytes_out = creq.stats.c.comp_bytes + creq.stats.c.inc_bytes; 204 creq.stats.c.in_count = creq.stats.c.unc_bytes; 206 if (creq.stats.c.bytes_out == 0) 207 creq.stats.c.ratio = 0.0; 209 creq.stats.c.ratio = 256.0 * creq.stats.c.in_count / 210 creq.stats.c.bytes_out; [all …]
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_stats.c | 852 tcp_stat_t *stats; in tcp_kstat2_update() local 868 stats = (tcp_stat_t *)kp->ks_data; in tcp_kstat2_update() 869 tcp_clr_stats(stats); in tcp_kstat2_update() 877 tcp_add_stats(&tcps->tcps_sc[i]->tcp_sc_stats, stats); in tcp_kstat2_update() 966 tcp_clr_stats(tcp_stat_t *stats) in tcp_clr_stats() argument 968 stats->tcp_time_wait_syn_success.value.ui64 = 0; in tcp_clr_stats() 969 stats->tcp_clean_death_nondetached.value.ui64 = 0; in tcp_clr_stats() 970 stats->tcp_eager_blowoff_q.value.ui64 = 0; in tcp_clr_stats() 971 stats->tcp_eager_blowoff_q0.value.ui64 = 0; in tcp_clr_stats() 972 stats->tcp_no_listener.value.ui64 = 0; in tcp_clr_stats() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | memcluster.c | 81 struct stats { struct 117 static struct stats * stats; variable 151 stats = malloc((max_size+1) * sizeof (struct stats)); in meminit() 152 if (freelists == NULL || stats == NULL) { in meminit() 158 memset(stats, 0, (max_size + 1) * sizeof (struct stats)); in meminit() 208 stats[max_size].gets++; in __memget_record() 209 stats[max_size].totalgets++; in __memget_record() 285 stats[new_size].blocks++; in __memget_record() 286 stats[new_size].freefrags += frags; in __memget_record() 342 stats[size].gets++; in __memget_record() [all …]
|
/illumos-gate/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 …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | memory.c | 462 #define MS_PP_ISTYPE(pp, stats, index) \ argument 463 ((pp)->p_vnode == &(stats->ms_kvps[index])) 471 memstat_callback(page_t *page, page_t *pp, memstat_t *stats) in memstat_callback() argument 473 struct vnode *vp = &stats->ms_vn; in memstat_callback() 476 stats->ms_bootpages++; in memstat_callback() 477 else if (pp->p_vnode == NULL || pp->p_vnode == stats->ms_unused_vp) in memstat_callback() 479 else if (MS_PP_ISTYPE(pp, stats, KV_KVP)) in memstat_callback() 480 stats->ms_kmem++; in memstat_callback() 481 else if (MS_PP_ISTYPE(pp, stats, KV_ZVP)) in memstat_callback() 482 stats->ms_zfs_data++; in memstat_callback() [all …]
|
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_mbx.c | 233 hw->mbx.stats.reqs++; in ixgbe_check_for_msg_vf() 255 hw->mbx.stats.acks++; in ixgbe_check_for_ack_vf() 278 hw->mbx.stats.rsts++; in ixgbe_check_for_rst_vf() 339 hw->mbx.stats.msgs_tx++; in ixgbe_write_mbx_vf() 379 hw->mbx.stats.msgs_rx++; in ixgbe_read_mbx_vf() 410 mbx->stats.msgs_tx = 0; in ixgbe_init_mbx_params_vf() 411 mbx->stats.msgs_rx = 0; in ixgbe_init_mbx_params_vf() 412 mbx->stats.reqs = 0; in ixgbe_init_mbx_params_vf() 413 mbx->stats.acks = 0; in ixgbe_init_mbx_params_vf() 414 mbx->stats.rsts = 0; in ixgbe_init_mbx_params_vf() [all …]
|
/illumos-gate/usr/src/cmd/ktest/ |
H A D | ktest.c | 216 ktest_stats_t *stats; in ktest_stats_new() local 218 if ((stats = malloc(sizeof (ktest_stats_t))) == NULL) { in ktest_stats_new() 222 stats->ks_type = type; in ktest_stats_new() 223 stats->ks_name = strndup(name, KTEST_MAX_NAME_LEN); in ktest_stats_new() 225 if (stats->ks_name == NULL) { in ktest_stats_new() 229 stats->ks_total = 0; in ktest_stats_new() 230 stats->ks_pass = 0; in ktest_stats_new() 231 stats->ks_fail = 0; in ktest_stats_new() 232 stats->ks_err = 0; in ktest_stats_new() 233 stats->ks_skip = 0; in ktest_stats_new() [all …]
|