/titanic_51/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_stat.c | 42 * function called by kstat to update the stats counters 53 struct oce_stat *stats; in oce_update_stats() local 62 stats = (struct oce_stat *)ksp->ks_data; in oce_update_stats() 73 "Failed to get stats:%d", ret); in oce_update_stats() 78 /* update the stats */ 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 in oce_update_stats() 197 struct oce_stat *stats; oce_stat_init() local 348 struct oce_stat *stats; oce_m_stat() local [all...] |
/titanic_51/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-stats.c | 24 #include "xgehal-stats.h" 29 * @stats: xge_hal_stats_t structure that contains, in particular, 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 in __hal_stats_initialize() 184 __hal_stats_save(xge_hal_stats_t * stats) __hal_stats_save() argument 214 __hal_stats_disable(xge_hal_stats_t * stats) __hal_stats_disable() argument 248 __hal_stats_terminate(xge_hal_stats_t * stats) __hal_stats_terminate() argument 305 __hal_stats_enable(xge_hal_stats_t * stats) __hal_stats_enable() argument [all...] |
/titanic_51/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 [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 in iscsi_hba_kstat_init() [all...] |
/titanic_51/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 && \ 60 * driver stats are stored as 64bits where the lower bits store 101 /*We assume that only 32bit stats will ever need to be byte-swapped. this is because in lm_update_wraparound_if_needed() 102 all HW data is byte-swapped by DMAE as needed, and the 64bit FW stats are swapped in lm_update_wraparound_if_needed() 117 * stats. Note that in the 32bit case (i.e any stats that are 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 in lm_get_stats() 2742 lm_stats_get_dcb_stats(lm_device_t * pdev,lm_dcbx_stat * stats) lm_stats_get_dcb_stats() argument 2747 lm_stats_get_driver_stats(struct _lm_device_t * pdev,b10_driver_statistics_t * stats) lm_stats_get_driver_stats() argument 2765 lm_stats_get_l2_driver_stats(struct _lm_device_t * pdev,b10_l2_driver_statistics_t * stats) lm_stats_get_l2_driver_stats() argument 2778 lm_stats_get_l4_driver_stats(struct _lm_device_t * pdev,b10_l4_driver_statistics_t * stats) lm_stats_get_l4_driver_stats() argument 2808 b10_l2_chip_statistics_t *stats = buf; lm_stats_get_l2_chip_stats() local 2944 lm_stats_get_l4_chip_stats(struct _lm_device_t * pdev,b10_l4_chip_statistics_t * stats) lm_stats_get_l4_chip_stats() argument [all...] |
H A D | lm_niv.c | 294 * written to the SHMEM for NIV stats. 296 * @param pdev the device to take the stats from 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_mfw.fcoe_stats; 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_frames_hi, fcoe_stats_mfw->tx_frames_lo )); 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_bytes_hi, fcoe_stats_mfw->tx_bytes_lo )); 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 in lm_niv_chip_stats_to_niv_stats() [all...] |
/titanic_51/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 [all...] |
/titanic_51/usr/src/cmd/sendmail/src/ |
H A D | stats.c | 18 SM_RCSID("@(#)$Id: stats.c,v 8.57 2006/08/15 23:24:58 ca Exp $") 24 static bool GotStats = false; /* set when we have stats to merge */ 35 ** type -- type of stats this represents. 140 struct statistics stats; local 167 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) && 168 stats.stat_size == sizeof(stats) && 169 stats [all...] |
/titanic_51/usr/src/cmd/fm/eversholt/common/ |
H A D | stats.h | 26 * stats.h -- public definitions for stats module 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 *s [all...] |
H A D | stats.c | 26 * stats.c -- simple stats tracking table module 34 #include "stats.h" 38 struct stats { struct 39 struct stats *next; argument 57 static int Ext; /* true if extended stats are enabled */ argument 58 static struct stats *Statslist; 59 static struct stats *Laststats; 63 * stats_init -- initialize the stats module 78 static struct stats * 42 stats_typestats global() argument [all...] |
/titanic_51/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 [all...] |
/titanic_51/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | stats.c | 25 * stats.c -- simple stats tracking table module 27 * this version of stats.c links with eft and implements the 28 * stats using the fmd's stats API. 35 #include "stats.h" 43 static int Ext; /* true if extended stats are enabled */ 46 * stats_init -- initialize the stats module 61 static struct stats * 64 struct stats *re in stats_new() [all...] |
/titanic_51/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_51/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 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 : -1; in regstat() 52 return &p->env->stats; in regstat()
|
/titanic_51/usr/src/uts/common/ipp/meters/ |
H A D | tswtclddi.c | 213 /* parse stats */ in tswtcl_create_action() 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() 397 /* parse stats, if present */ in tswtcl_modify_action() 399 cfg_parms->stats = (boolean_t)bstats; in tswtcl_modify_action() 400 if (cfg_parms->stats && !old_cfg->stats) { in tswtcl_modify_action() 583 meter_stat_t *stats = (meter_stat_t *)sp->ipps_data; tswtcl_update_stats() local [all...] |
H A D | tokenmtddi.c | 69 /* Initialize stats */ 309 /* parse stats */ in tokenmt_create_action() 312 cfg_parms->stats = B_FALSE; in tokenmt_create_action() 314 cfg_parms->stats = (bstats == 0) ? B_FALSE : B_TRUE; in tokenmt_create_action() 326 /* Initialize stats, if required */ 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() 583 /* parse stats, if present */ in tokenmt_modify_action() 585 cfg_parms->stats in tokenmt_modify_action() 770 meter_stat_t *stats = (meter_stat_t *)sp->ipps_data; tokenmt_update_stats() local [all...] |
/titanic_51/usr/src/cmd/cmd-inet/usr.bin/pppstats/ |
H A D | pppstats.c | 7 * -v Show more stats for VJ TCP header compression 162 req.stats_ptr = (caddr_t) &req.stats; 176 *curp = req.stats; 188 creq.stats_ptr = (caddr_t) &creq.stats; 202 perror("couldn't get PPP compression 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 [all...] |
/titanic_51/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() 515 * - Setup CPC request, counter info, and stats needed for each counter 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, in in cu_cpc_req_add() argument 1343 cu_cntr_stats_t *stats; cu_cpu_kstat_update() local 1494 cu_cpu_update_stats(cu_cntr_stats_t * stats,uint64_t cntr_value) cu_cpu_update_stats() argument 1621 cu_cntr_stats_t *stats; cu_pg_update() local [all...] |
/titanic_51/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_siz in __memget_record() 87 getsstats global() argument 88 totalgetsstats global() argument 89 blocksstats global() argument 90 freefragsstats global() argument [all...] |
/titanic_51/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() 817 * To add stats from one mib2_tcp_t to another. Static fields are not added. 876 * To sum up all MIB2 stats for a tcp_stack_t from all per CPU stats. The 878 * just adds up all the per CPU stats. 899 tcp_clr_stats(tcp_stat_t *stats) in tcp_clr_stats() argument 901 stats in tcp_clr_stats() [all...] |
/titanic_51/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 in rtls_m_stat() [all...] |
/titanic_51/usr/src/uts/common/io/chxge/com/ |
H A D | vsc7326.c | 587 /* Clear stats */ in mac_disable() 592 memset(&mac->stats, 0, sizeof(struct cmac_statistics)); in mac_disable() 616 /* Rx stats */ in port_stats_update() 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 in port_stats_update() [all...] |
/titanic_51/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 in z_compress() 622 z_comp_stats(void * arg,struct compstat * stats) z_comp_stats() argument [all...] |
/titanic_51/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 in krb5int_mutex_report_stats() [all...] |