Home
last modified time | relevance | path

Searched refs:stats (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_stat.c53 struct oce_stat *stats; in oce_update_stats() local
114 stats->rx_crc_errors.value.ul = in oce_update_stats()
128 stats->rx_pause_frames.value.ul = in oce_update_stats()
148 stats->tx_pause_frames.value.ul = in oce_update_stats()
154 stats->rx_drops_no_pbuf.value.ul = in oce_update_stats()
156 stats->rx_drops_no_txpb.value.ul = in oce_update_stats()
166 stats->rx_drops_mtu.value.ul = in oce_update_stats()
177 stats->rx_dropped_runt.value.ul = in oce_update_stats()
197 struct oce_stat *stats; in oce_stat_init() local
348 struct oce_stat *stats; in oce_m_stat() local
[all …]
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-stats.c51 stats->hw_info = in __hal_stats_initialize()
89 stats->hw_info, in __hal_stats_initialize()
115 stats->pcim_info = in __hal_stats_initialize()
174 stats->devh = devh; in __hal_stats_initialize()
193 xge_os_memcpy(&stats->hw_info_saved, stats->hw_info, in __hal_stats_save()
200 xge_os_memcpy(stats->pcim_info_saved, stats->pcim_info, in __hal_stats_save()
238 stats->is_enabled = 0; in __hal_stats_disable()
265 stats->hw_info, in __hal_stats_terminate()
516 ((hldev->stats.hw_info->_p >= hldev->stats.hw_info_saved._p) ? \ in __hal_stats_update_latest()
517 hldev->stats.hw_info->_p - hldev->stats.hw_info_saved._p : \ in __hal_stats_update_latest()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsi_stats.h273 mutex_exit(&_isp_->stats.ks_io_lock);
278 mutex_exit(&_isp_->stats.ks_io_lock);
282 (_isp_->stats.ks_io_data.writes++); \
283 mutex_exit(&_isp_->stats.ks_io_lock);
287 (_isp_->stats.ks_io_data.reads++); \
288 mutex_exit(&_isp_->stats.ks_io_lock);
293 mutex_exit(&_isp_->stats.ks_io_lock);
298 mutex_exit(&_isp_->stats.ks_io_lock);
303 mutex_exit(&_isp_->stats.ks_io_lock);
308 mutex_exit(&_isp_->stats.ks_io_lock);
[all …]
H A Discsi_stats.c100 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()
130 kstat_delete(ihp->stats.ks); in iscsi_hba_kstat_term()
202 iss = &isp->stats.ks_data; in iscsi_sess_kstat_init()
203 isp->stats.ks->ks_data = (void *)&isp->stats.ks_data; in iscsi_sess_kstat_init()
204 isp->stats.ks->ks_data_size = sizeof (isp->stats.ks_data); in iscsi_sess_kstat_init()
245 isp->stats.ks_io->ks_data = &isp->stats.ks_io_data; in iscsi_sess_kstat_init()
246 isp->stats.ks_io->ks_lock = &isp->stats.ks_io_lock; in iscsi_sess_kstat_init()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_stats.c212 stats->as_u64 = 0 ; in lm_get_stats()
227 stats->as_u64 = 0 ; in lm_get_stats()
242 stats->as_u64 = 0 ; in lm_get_stats()
303 stats->as_u64 = pdev->vars.stats.stats_mirror.stats_hw.nig.brb_discard ; in lm_get_stats()
304 stats->as_u64+= pdev->vars.stats.stats_mirror.stats_hw.nig.brb_truncate ; in lm_get_stats()
312 stats->as_u64 = 0; in lm_get_stats()
381 stats->as_u64 = 0 ; in lm_get_stats()
397 mm_mem_zero( &pdev->vars.stats.stats_mirror, sizeof(pdev->vars.stats.stats_mirror) ) ; in lm_stats_reset()
2751 stats->tx_aborted = pdev->vars.stats.stats_mirror.stats_drv.drv_eth.tx_aborted ; in lm_stats_get_driver_stats()
2756 stats->rx_aborted = pdev->vars.stats.stats_mirror.stats_drv.drv_eth.rx_aborted ; in lm_stats_get_driver_stats()
[all …]
H A Dlm_niv.c301 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()
306 lm_stats_get_l2_chip_stats(pdev, &stats, L2_CHIP_STATISTICS_VER_NUM_1); 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()
317 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->tx_broadcast_frames, stats.IfHCOutBroadcastPkts ); in lm_niv_chip_stats_to_niv_stats()
330 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->rx_multicast_frames, stats.IfHCInMulticastPkts ); in lm_niv_chip_stats_to_niv_stats()
331 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->rx_multicast_bytes, stats.IfHCInMulticastOctets ); in lm_niv_chip_stats_to_niv_stats()
333 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->rx_broadcast_frames, stats.IfHCInBroadcastPkts ); in lm_niv_chip_stats_to_niv_stats()
334 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->rx_broadcast_bytes, stats.IfHCInBroadcastOctets ); in lm_niv_chip_stats_to_niv_stats()
336 NIV_STATS_ASSIGN_HI_LO(p_afex_stats->rx_frames_discarded, stats.IfInTTL0Discards + in lm_niv_chip_stats_to_niv_stats()
[all …]
/illumos-gate/usr/src/cmd/sendmail/util/
H A Dmailstats.c67 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);
266 else if (i != sizeof stats || stats.stat_size != sizeof(stats))
293 if (stats.stat_nf[i] || stats.stat_nt[i] ||
295 stats.stat_nr[i] || stats.stat_nd[i])
338 stats.stat_cf, stats.stat_ct,
339 stats.stat_cr);
363 stats.stat_cf, "", stats.stat_ct, "",
[all …]
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dstats.c140 struct statistics stats; local
167 if (read(fd, (char *) &stats, sizeof(stats)) == sizeof(stats) &&
168 stats.stat_size == sizeof(stats) &&
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];
185 stats.stat_cr += Stat.stat_cr;
186 stats.stat_ct += Stat.stat_ct;
187 stats.stat_cf += Stat.stat_cf;
190 memmove((char *) &stats, (char *) &Stat, sizeof(stats));
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstats.h42 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 Dstats.c38 struct stats { struct
39 struct stats *next; argument
58 static struct stats *Statslist;
59 static struct stats *Laststats;
78 static struct stats *
98 stats_delete(struct stats *sp) in stats_delete()
100 struct stats *p, *s; in stats_delete()
125 struct stats *
178 struct stats *
209 struct stats *
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c57 struct compstat stats; member
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;
120 stats->ratio <<= 8;
124 stats->ratio /= out;
160 memset(&state->stats, 0, sizeof(state->stats));
288 state->stats.unc_packets++;
[all …]
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dstats.c61 static struct stats *
107 stats_delete(struct stats *sp) in stats_delete()
116 struct stats *
126 stats_counter_bump(struct stats *sp) in stats_counter_bump()
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()
190 stats_elapse_stop(struct stats *sp) in stats_elapse_stop()
201 struct stats *
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregcomp.c544 env->stats.i++; in stats()
554 env->stats.m = !env->stats.m; in stats()
577 if (env->stats.m == 1 && b == env->stats.b && c == env->stats.c && ++env->stats.s <= 0) in stats()
591 if ((env->stats.m *= e->lo) > 0 && env->stats.m < m) in stats()
2563 memset(&env->stats, 0, sizeof(env->stats)); in grp()
3375 …G_FIRST) && (env.stats.a || env.stats.c > 1 && env.stats.c != env.stats.s || env.stats.t && (env.s… in regcomp()
3377 if (p->env->hard || env.stats.c || env.stats.i) in regcomp()
3378 p->env->stats.re_min = p->env->stats.re_max = -1; in regcomp()
3381 if (!(p->env->stats.re_min = env.stats.m)) in regcomp()
3383 if (!(p->env->stats.re_max = env.stats.n)) in regcomp()
[all …]
H A Dregstat.c35 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 Dtswtclddi.c216 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()
475 if (cfg_parms->stats) { in tswtcl_destroy_action()
476 ipp_stat_destroy(tswtcl_data->stats); in tswtcl_destroy_action()
[all …]
H A Dtokenmtddi.c312 cfg_parms->stats = B_FALSE; 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()
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()
661 ipp_stat_destroy(tokenmt_data->stats); in tokenmt_destroy_action()
761 ipp_stat_install(tokenmt_data->stats); in tokenmt_statinit()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppstats/
H A Dpppstats.c170 *curp = req.stats;
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;
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;
213 creq.stats.d.bytes_out = creq.stats.d.comp_bytes + creq.stats.d.inc_bytes;
214 creq.stats.d.in_count = creq.stats.d.unc_bytes;
217 creq.stats.d.ratio = 0.0;
219 creq.stats.d.ratio = 256.0 * creq.stats.d.in_count /
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dcap_util.c462 cu_cntr_stats_t *stats; in cu_cpc_init() local
489 stats = NULL; in cu_cpc_init()
1344 cu_cntr_stats_t *stats; in cu_cpu_kstat_update() local
1382 stats = cntr_info->ci_stats; in cu_cpu_kstat_update()
1503 if (stats == NULL) in cu_cpu_update_stats()
1546 stats->cs_time_start = time_snap; in cu_cpu_update_stats()
1571 if (stats->cs_rate_max < stats->cs_rate) in cu_cpu_update_stats()
1572 stats->cs_rate_max = stats->cs_rate; in cu_cpu_update_stats()
1574 stats->cs_value_last = delta; in cu_cpu_update_stats()
1575 stats->cs_value_total += delta; in cu_cpu_update_stats()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dmemcluster.c81 struct stats { struct
117 static struct stats * stats; variable
151 stats = malloc((max_size+1) * sizeof (struct stats)); in meminit()
158 memset(stats, 0, (max_size + 1) * sizeof (struct stats)); in meminit()
208 stats[max_size].gets++; in __memget_record()
342 stats[size].gets++; in __memget_record()
343 stats[size].totalgets++; in __memget_record()
428 stats[max_size].gets--; in __memput_record()
466 stats[size].gets--; in __memput_record()
504 const struct stats *s = &stats[i]; in memstats()
[all …]
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_stats.c846 tcp_stat_t *stats; in tcp_kstat2_update() local
862 stats = (tcp_stat_t *)kp->ks_data; in tcp_kstat2_update()
863 tcp_clr_stats(stats); in tcp_kstat2_update()
960 tcp_clr_stats(tcp_stat_t *stats) in tcp_clr_stats() argument
967 stats->tcp_listendrop.value.ui64 = 0; in tcp_clr_stats()
970 stats->tcp_flwctl_on.value.ui64 = 0; in tcp_clr_stats()
973 stats->tcp_zcopy_on.value.ui64 = 0; in tcp_clr_stats()
974 stats->tcp_zcopy_off.value.ui64 = 0; in tcp_clr_stats()
978 stats->tcp_fusion_urg.value.ui64 = 0; in tcp_clr_stats()
990 stats->tcp_lso_times.value.ui64 = 0; in tcp_clr_stats()
[all …]
/illumos-gate/usr/src/uts/common/io/rtls/
H A Drtls.c882 *val = rtlsp->stats.defer; in rtls_m_stat()
1003 rtlsp->stats.no_carrier++; in rtls_send()
1066 rtlsp->stats.xmt_err++; in rtls_send()
1073 rtlsp->stats.defer++; in rtls_send()
1090 rtlsp->stats.xmt_err++; in rtls_send()
1101 rtlsp->stats.firstcol++; in rtls_send()
1121 rtlsp->stats.xmt_err++; in rtls_send()
1141 rtlsp->stats.opackets++; in rtls_send()
1270 rtlsp->stats.crc_err++; in rtls_receive()
1464 rtlsp->stats.overflow++; in rtls_intr()
[all …]
/illumos-gate/usr/src/uts/common/io/ixgbe/core/
H A Dixgbe_mbx.c233 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()
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()
448 hw->mbx.stats.reqs++; in ixgbe_check_for_msg_pf()
472 hw->mbx.stats.acks++; in ixgbe_check_for_ack_pf()
657 mbx->stats.reqs = 0; in ixgbe_init_mbx_params_pf()
658 mbx->stats.acks = 0; in ixgbe_init_mbx_params_pf()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dmemory.c479 stats->ms_kmem++; in memstat_callback()
489 stats->ms_anon++; in memstat_callback()
491 stats->ms_exec++; in memstat_callback()
493 stats->ms_vnode++; in memstat_callback()
495 stats->ms_total++; in memstat_callback()
506 memstat_t stats; in memstat() local
569 &stats) == -1) { in memstat()
582 stats.ms_kmem, in memstat()
608 stats.ms_anon, in memstat()
612 stats.ms_exec, in memstat()
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dvsc7326.c621 &mac->stats.RxMulticastFramesOK); in port_stats_update()
623 &mac->stats.RxBroadcastFramesOK); in port_stats_update()
627 &mac->stats.RxFrameTooLongErrors); in port_stats_update()
633 &mac->stats.RxSymbolErrors); in port_stats_update()
635 &mac->stats.RxJumboFramesOK); in port_stats_update()
641 &mac->stats.TxMulticastFramesOK); in port_stats_update()
643 &mac->stats.TxBroadcastFramesOK); in port_stats_update()
670 &mac->stats.RxOctetsOK); in mac_update_statistics()
672 &mac->stats.RxOctetsBad); in mac_update_statistics()
674 &mac->stats.TxOctetsOK); in mac_update_statistics()
[all …]
/illumos-gate/usr/src/uts/common/io/ena/
H A Dena_stats.c76 ((uint64_t)stats->erbs_tx_bytes_high << 32) | in ena_stat_device_basic_update()
77 (uint64_t)stats->erbs_tx_bytes_low; in ena_stat_device_basic_update()
79 ((uint64_t)stats->erbs_tx_pkts_high << 32) | in ena_stat_device_basic_update()
80 (uint64_t)stats->erbs_tx_pkts_low; in ena_stat_device_basic_update()
82 ((uint64_t)stats->erbs_tx_drops_high << 32) | in ena_stat_device_basic_update()
83 (uint64_t)stats->erbs_tx_drops_low; in ena_stat_device_basic_update()
86 ((uint64_t)stats->erbs_rx_bytes_high << 32) | in ena_stat_device_basic_update()
87 (uint64_t)stats->erbs_rx_bytes_low; in ena_stat_device_basic_update()
89 ((uint64_t)stats->erbs_rx_pkts_high << 32) | in ena_stat_device_basic_update()
90 (uint64_t)stats->erbs_rx_pkts_low; in ena_stat_device_basic_update()
[all …]

12345678910>>...13