| /onnv-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
| H A D | oce_stat.c | 56 struct oce_stat *stats; in oce_update_stats() local 65 stats = (struct oce_stat *)ksp->ks_data; in oce_update_stats() 82 stats->rx_bytes_lo.value.ul = port_stats->rx_bytes_lsd; in oce_update_stats() 83 stats->rx_bytes_hi.value.ul = port_stats->rx_bytes_msd; in oce_update_stats() 85 stats->rx_frames.value.ul = port_stats->rx_total_frames; in oce_update_stats() 86 stats->rx_errors.value.ul = port_stats->rx_crc_errors + in oce_update_stats() 95 stats->rx_drops.value.ul = port_stats->rx_dropped_too_small + in oce_update_stats() 101 stats->tx_bytes_lo.value.ul = port_stats->tx_bytes_lsd; in oce_update_stats() 102 stats->tx_bytes_hi.value.ul = port_stats->tx_bytes_msd; in oce_update_stats() 104 stats->tx_frames.value.ul = port_stats->tx_unicast_frames + in oce_update_stats() [all …]
|
| /onnv-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 …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-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() 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 …]
|
| /onnv-gate/usr/src/uts/common/inet/tcp/ |
| H A D | tcp_stats.c | 769 tcp_stat_t *stats; in tcp_kstat2_update() local 785 stats = (tcp_stat_t *)kp->ks_data; in tcp_kstat2_update() 786 tcp_clr_stats(stats); in tcp_kstat2_update() 794 tcp_add_stats(&tcps->tcps_sc[i]->tcp_sc_stats, stats); in tcp_kstat2_update() 883 tcp_clr_stats(tcp_stat_t *stats) in tcp_clr_stats() argument 885 stats->tcp_time_wait_syn_success.value.ui64 = 0; in tcp_clr_stats() 886 stats->tcp_clean_death_nondetached.value.ui64 = 0; in tcp_clr_stats() 887 stats->tcp_eager_blowoff_q.value.ui64 = 0; in tcp_clr_stats() 888 stats->tcp_eager_blowoff_q0.value.ui64 = 0; in tcp_clr_stats() 889 stats->tcp_no_listener.value.ui64 = 0; in tcp_clr_stats() [all …]
|
| /onnv-gate/usr/src/cmd/perl/5.8.4/distrib/lib/CGI/eg/ |
| H A D | file_upload.cgi | 36 my %stats; 51 grep($stats{$_}++,param('count')); 52 if (%stats) { 53 print strong("Lines: "),$lines,br if $stats{'count lines'}; 54 print strong("Words: "),$words,br if $stats{'count words'}; 55 print strong("Characters: "),$characters,br if $stats{'count characters'};
|
| /onnv-gate/usr/src/uts/common/io/rtls/ |
| H A D | rtls.c | 833 *val = rtlsp->stats.ipackets; in rtls_m_stat() 836 *val = rtlsp->stats.rbytes; in rtls_m_stat() 839 *val = rtlsp->stats.opackets; in rtls_m_stat() 842 *val = rtlsp->stats.obytes; in rtls_m_stat() 845 *val = rtlsp->stats.rcv_err; in rtls_m_stat() 848 *val = rtlsp->stats.xmt_err; in rtls_m_stat() 851 *val = rtlsp->stats.multi_rcv; in rtls_m_stat() 854 *val = rtlsp->stats.brdcst_rcv; in rtls_m_stat() 857 *val = rtlsp->stats.multi_xmt; in rtls_m_stat() 860 *val = rtlsp->stats.brdcst_xmt; in rtls_m_stat() [all …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/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 …]
|
| /onnv-gate/usr/src/lib/libdiskmgt/common/ |
| H A D | drive.c | 344 char *classname, nvlist_t *stats); 347 nvlist_t *stats); 349 nvlist_t *stats); 350 static int get_kstat_vals(kstat_t *ksp, nvlist_t *stats); 353 static int update_stat64(nvlist_t *stats, char *attr, 355 static int update_stat32(nvlist_t *stats, char *attr, 517 nvlist_t *stats; in drive_get_stats() local 521 if (nvlist_alloc(&stats, NVATTRS, 0) != 0) { in drive_get_stats() 534 nvlist_free(stats); in drive_get_stats() 540 nvlist_free(stats); in drive_get_stats() [all …]
|