/freebsd/sys/dev/bnxt/bnxt_re/ |
H A D | stats.c | 35 struct bnxt_re_flow_counters *stats, in bnxt_re_get_flow_stats_from_service_pf() argument 67 "Failed to get CFA Flow stats : rc = 0x%x\n", rc); in bnxt_re_get_flow_stats_from_service_pf() 71 stats->cnp_stats.cnp_tx_pkts = le64_to_cpu(resp.packet_0); in bnxt_re_get_flow_stats_from_service_pf() 72 stats->cnp_stats.cnp_tx_bytes = le64_to_cpu(resp.byte_0); in bnxt_re_get_flow_stats_from_service_pf() 73 stats->cnp_stats.cnp_rx_pkts = le64_to_cpu(resp.packet_1); in bnxt_re_get_flow_stats_from_service_pf() 74 stats->cnp_stats.cnp_rx_bytes = le64_to_cpu(resp.byte_1); in bnxt_re_get_flow_stats_from_service_pf() 76 stats->ro_stats.tx_pkts = le64_to_cpu(resp.packet_2) + in bnxt_re_get_flow_stats_from_service_pf() 78 stats->ro_stats.tx_bytes = le64_to_cpu(resp.byte_2) + in bnxt_re_get_flow_stats_from_service_pf() 80 stats->ro_stats.rx_pkts = le64_to_cpu(resp.packet_3) + in bnxt_re_get_flow_stats_from_service_pf() 82 stats->ro_stats.rx_bytes = le64_to_cpu(resp.byte_3) + in bnxt_re_get_flow_stats_from_service_pf() [all …]
|
/freebsd/tools/tools/crypto/ |
H A D | safestats.c | 41 struct safe_stats stats; in main() local 44 slen = sizeof (stats); in main() 45 if (sysctlbyname("hw.safe.stats", &stats, &slen, NULL, 0) < 0) in main() 46 err(1, "hw.safe.stats"); in main() 49 stats.st_ibytes, stats.st_ipackets); in main() 51 stats.st_obytes, stats.st_opackets); in main() 53 stats.st_invalid, stats.st_badsession, stats.st_badflags); in main() 55 stats.st_nodesc, stats.st_badalg, stats.st_ringfull); in main() 57 stats.st_peoperr, stats.st_dmaerr, stats.st_bypasstoobig); in main() 59 stats.st_skipmismatch, stats.st_lenmismatch, in main() [all …]
|
H A D | cryptostats.c | 29 * zero all the stats or just the timing stuff. 61 struct cryptostats stats; in main() local 64 slen = sizeof (stats); in main() 65 if (sysctlbyname("kern.crypto_stats", &stats, &slen, NULL, 0) < 0) in main() 69 bzero(&stats.cs_invoke, sizeof (stats.cs_invoke)); in main() 70 bzero(&stats.cs_done, sizeof (stats.cs_done)); in main() 71 bzero(&stats.cs_cb, sizeof (stats.cs_cb)); in main() 72 bzero(&stats.cs_finis, sizeof (stats.cs_finis)); in main() 73 stats.cs_invoke.min.tv_sec = 10000; in main() 74 stats.cs_done.min.tv_sec = 10000; in main() [all …]
|
H A D | hifnstats.c | 41 struct hifn_stats stats; in main() local 44 slen = sizeof (stats); in main() 45 if (sysctlbyname("hw.hifn.stats", &stats, &slen, NULL, 0) < 0) in main() 46 err(1, "kern.hifn.stats"); in main() 49 stats.hst_ibytes, stats.hst_ipackets); in main() 51 stats.hst_obytes, stats.hst_opackets); in main() 53 stats.hst_invalid, stats.hst_nomem, stats.hst_abort); in main() 55 stats.hst_noirq, stats.hst_unaligned); in main() 57 stats.hst_totbatch, stats.hst_maxbatch); in main() 59 stats.hst_nomem_map, stats.hst_nomem_load, in main() [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_stats.cpp | 43 Printf("Stats: %zuM malloced (%zuM for overhead) by %zu calls\n", in Print() 45 Printf("Stats: %zuM realloced by %zu calls\n", realloced >> 20, reallocs); in Print() 46 Printf("Stats: %zuM freed by %zu calls\n", freed >> 20, frees); in Print() 47 Printf("Stats: %zuM really freed by %zu calls\n", really_freed >> 20, in Print() 49 Printf("Stats: %zuM (%zuM-%zuM) mmaped; %zu maps, %zu unmaps\n", in Print() 54 Printf("Stats: malloc large: %zu\n", malloc_large); in Print() 57 void MemprofStats::MergeFrom(const MemprofStats *stats) { in MergeFrom() argument 59 const uptr *src_ptr = reinterpret_cast<const uptr *>(stats); in MergeFrom() 78 accumulated_stats->MergeFrom(&t->stats()); in MergeThreadStats() 81 static void GetAccumulatedStats(MemprofStats *stats) { in GetAccumulatedStats() argument [all …]
|
/freebsd/contrib/unbound/daemon/ |
H A D | stats.h | 2 * daemon/stats.h - collect runtime performance indicators. 53 /* stats struct */ 57 * Initialize server stats to 0. 58 * @param stats: what to init (this is alloced by the caller). 61 void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg); 64 void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker); 67 void server_stats_prefetch(struct ub_server_stats* stats, struct worker* worker); 69 /** display the stats to the log */ 70 void server_stats_log(struct ub_server_stats* stats, struct worker* worker, 74 * Obtain the stats info for a given thread. Uses pipe to communicate. [all …]
|
H A D | stats.c | 2 * daemon/stats.c - collect runtime performance indicators. 48 #include "daemon/stats.h" 90 void server_stats_init(struct ub_server_stats* stats, struct config_file* cfg) in server_stats_init() argument 92 memset(stats, 0, sizeof(*stats)); in server_stats_init() 93 stats->extended = cfg->stat_extended; in server_stats_init() 96 void server_stats_querymiss(struct ub_server_stats* stats, struct worker* worker) in server_stats_querymiss() argument 98 stats->num_queries_missed_cache++; in server_stats_querymiss() 99 stats->sum_query_list_size += worker->env.mesh->all.count; in server_stats_querymiss() 100 if((long long)worker->env.mesh->all.count > stats->max_query_list_size) in server_stats_querymiss() 101 stats->max_query_list_size = (long long)worker->env.mesh->all.count; in server_stats_querymiss() [all …]
|
/freebsd/share/man/man4/ |
H A D | cgem.4 | 146 .It Va dev.cgem.%d.stats.* 148 .It Va dev.cgem.%d.stats.tx_bytes 150 .It Va dev.cgem.%d.stats.tx_frames 152 .It Va dev.cgem.%d.stats.tx_frames_bcast 155 .It Va dev.cgem.%d.stats.tx_frames_multi 158 .It Va dev.cgem.%d.stats.tx_frames_pause 160 .It Va dev.cgem.%d.stats.tx_frames_64b 162 .It Va dev.cgem.%d.stats.tx_frames_65to127b 164 .It Va dev.cgem.%d.stats.tx_frames_128to255b 166 .It Va dev.cgem.%d.stats.tx_frames_256to511b [all …]
|
/freebsd/contrib/sendmail/mailstats/ |
H A D | mailstats.c | 67 struct statistics stats; variable 224 if ((fd < 0) || (i = read(fd, &stats, sizeof stats)) < 0) 235 if ((i = read(fd, &stats, sizeof stats)) < 0) 246 memset((ARBPTR_T) &stats, '\0', sizeof stats); 247 (void) time(&stats.stat_itime); 252 if (stats.stat_magic != STAT_MAGIC) 259 else if (stats.stat_version != STAT_VERSION) 264 stats.stat_version); 268 else if (i != sizeof stats || stats.stat_size != sizeof(stats)) 281 (long) stats.stat_itime, (long) now); [all …]
|
/freebsd/contrib/ntp/libntp/lib/isc/pthreads/ |
H A D | mutex.c | 92 static isc_mutexstats_t stats[ISC_MUTEX_PROFTABLESIZE]; variable 122 mp->stats = &stats[stats_next++]; in isc_mutex_init_profile() 126 mp->stats->file = file; in isc_mutex_init_profile() 127 mp->stats->line = line; in isc_mutex_init_profile() 128 mp->stats->count = 0; in isc_mutex_init_profile() 129 timevalclear(&mp->stats->locked_total); in isc_mutex_init_profile() 130 timevalclear(&mp->stats->wait_total); in isc_mutex_init_profile() 132 mp->stats->lockers[i].file = NULL; in isc_mutex_init_profile() 133 mp->stats->lockers[i].line = 0; in isc_mutex_init_profile() 134 mp->stats->lockers[i].count = 0; in isc_mutex_init_profile() [all …]
|
/freebsd/contrib/sendmail/src/ |
H A D | stats.c | 16 SM_RCSID("@(#)$Id: stats.c,v 8.58 2013-11-22 20:51:56 ca Exp $") 22 static bool GotStats = false; /* set when we have stats to merge */ 33 ** type -- type of stats this represents. 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]; [all …]
|
/freebsd/contrib/jemalloc/doc/ |
H A D | jemalloc.3 | 40 \fB\-\-enable\-stats\fR, 403 \fB\-\-enable\-stats\fR 688 stats\&.arenas\&.<i>\&.* 740 stats\&.background_thread 741 for related stats\&. 802 config\&.stats (\fBbool\fR) r\- 804 \fB\-\-enable\-stats\fR 854 stats\&.metadata)\&. 867 stats\&.retained 970 \fB\-\-enable\-stats\fR [all …]
|
/freebsd/sys/dev/cxgbe/iw_cxgbe/ |
H A D | resource.c | 121 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid() 122 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_cqid() 123 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid() 152 mutex_lock(&rdev->stats.lock); in c4iw_get_cqid() 153 if (rdev->stats.qid.cur > rdev->stats.qid.max) in c4iw_get_cqid() 154 rdev->stats.qid.max = rdev->stats.qid.cur; in c4iw_get_cqid() 155 mutex_unlock(&rdev->stats.lock); in c4iw_get_cqid() 191 mutex_lock(&rdev->stats.lock); in c4iw_get_qpid() 192 rdev->stats.qid.cur += rdev->qpmask + 1; in c4iw_get_qpid() 193 mutex_unlock(&rdev->stats.lock); in c4iw_get_qpid() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soc/qcom/ |
H A D | qcom-stats.yaml | 4 $id: http://devicetree.org/schemas/soc/qcom/qcom-stats.yaml# 7 title: Qualcomm Technologies, Inc. (QTI) Stats 22 - qcom,rpmh-stats 23 - qcom,sdm845-rpmh-stats 24 - qcom,rpm-stats 25 # For older RPM firmware versions with fixed offset for the sleep stats 26 - qcom,apq8084-rpm-stats 27 - qcom,msm8226-rpm-stats 28 - qcom,msm8916-rpm-stats 29 - qcom,msm8974-rpm-stats [all...] |
/freebsd/sys/dev/gve/ |
H A D | gve_sysctl.c | 54 struct gve_rxq_stats *stats; in gve_setup_rxq_sysctl() local 62 stats = &rxq->stats; in gve_setup_rxq_sysctl() 66 &stats->rbytes, "Bytes received"); in gve_setup_rxq_sysctl() 69 &stats->rpackets, "Packets received"); in gve_setup_rxq_sysctl() 71 CTLFLAG_RD, &stats->rx_copybreak_cnt, in gve_setup_rxq_sysctl() 74 CTLFLAG_RD, &stats->rx_frag_flip_cnt, in gve_setup_rxq_sysctl() 77 CTLFLAG_RD, &stats->rx_frag_copy_cnt, in gve_setup_rxq_sysctl() 80 CTLFLAG_RD, &stats->rx_dropped_pkt, in gve_setup_rxq_sysctl() 84 &stats->rx_dropped_pkt_desc_err, in gve_setup_rxq_sysctl() 88 &stats->rx_dropped_pkt_buf_post_fail, in gve_setup_rxq_sysctl() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Statistic.cpp | 1 //===-- Statistic.cpp - Easy way to expose stats information --------------===// 11 // printed at the end of a run, when the -stats command line option is enabled 41 /// -stats - Command line option to cause transformations to emit stats about 51 "stats", in initStatisticOptions() 56 "stats-json", cl::desc("Display statistics as json data"), in initStatisticOptions() 67 std::vector<TrackingStatistic *> Stats; member in __anonece966b40111::StatisticInfo 81 void addStatistic(TrackingStatistic *S) { Stats.push_back(S); } in addStatistic() 83 const_iterator begin() const { return Stats.begin(); } in begin() 84 const_iterator end() const { return Stats.end(); } in end() 99 // If stats are enabled, inform StatInfo that this statistic should be in RegisterStatistic() [all …]
|
/freebsd/sys/netgraph/ |
H A D | ng_tee.c | 73 struct ng_tee_hookstat stats; member 203 bzero(&hinfo->stats, sizeof(hinfo->stats)); in ng_tee_newhook() 227 struct ng_tee_stats *stats; in ng_tee_rcvmsg() local 231 sizeof(*stats), M_NOWAIT); in ng_tee_rcvmsg() 236 stats = (struct ng_tee_stats *)resp->data; in ng_tee_rcvmsg() 237 bcopy(&sc->right.stats, &stats->right, in ng_tee_rcvmsg() 238 sizeof(stats->right)); in ng_tee_rcvmsg() 239 bcopy(&sc->left.stats, &stats->left, in ng_tee_rcvmsg() 240 sizeof(stats->left)); in ng_tee_rcvmsg() 241 bcopy(&sc->right2left.stats, &stats->right2left, in ng_tee_rcvmsg() [all …]
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | debugfs_sta.c | 13 struct ath10k_sta_tid_stats *stats, in ath10k_rx_stats_update_amsdu_subfrm() argument 17 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_1]++; in ath10k_rx_stats_update_amsdu_subfrm() 19 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_2]++; in ath10k_rx_stats_update_amsdu_subfrm() 21 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_3]++; in ath10k_rx_stats_update_amsdu_subfrm() 23 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_4]++; in ath10k_rx_stats_update_amsdu_subfrm() 25 stats->rx_pkt_amsdu[ATH10K_AMSDU_SUBFRM_NUM_MORE]++; in ath10k_rx_stats_update_amsdu_subfrm() 29 struct ath10k_sta_tid_stats *stats, in ath10k_rx_stats_update_ampdu_subfrm() argument 33 stats->rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_10]++; in ath10k_rx_stats_update_ampdu_subfrm() 35 stats->rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_20]++; in ath10k_rx_stats_update_ampdu_subfrm() 37 stats->rx_pkt_ampdu[ATH10K_AMPDU_SUBFRM_NUM_30]++; in ath10k_rx_stats_update_ampdu_subfrm() [all …]
|
/freebsd/sys/contrib/rdma/krping/ |
H A D | krping_dev.c | 64 struct krping_stats *stats; member 109 krping_copy_stats(struct krping_stats *stats, void *arg) in krping_copy_stats() argument 117 if (stats != NULL) { in krping_copy_stats() 118 s->stats = malloc(sizeof(*stats), M_DEVBUF, M_NOWAIT | M_ZERO); in krping_copy_stats() 119 if (s->stats == NULL) { in krping_copy_stats() 123 *s->stats = *stats; in krping_copy_stats() 148 if (e->stats == NULL) in krping_read() 151 struct krping_stats *stats = e->stats; in krping_read() local 154 "%10llu %10llu %10llu %10llu\n", num, stats->name, in krping_read() 155 stats->send_bytes, stats->send_msgs, in krping_read() [all …]
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/dump/ |
H A D | dump.c | 93 } stats; variable 309 stats.s_ndata = n; in read_data() 392 stats.s_nfunc++; in read_funcs() 393 stats.s_nargs += n; in read_funcs() 394 stats.s_argmax = MAX(stats.s_argmax, n); in read_funcs() 576 stats.s_nsmem += n; in read_types() 577 stats.s_smmax = MAX(stats.s_smmax, n); in read_types() 578 stats.s_nsbytes += size; in read_types() 579 stats.s_sbmax = MAX(stats.s_sbmax, size); in read_types() 584 stats.s_numem += n; in read_types() [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/mvm/ |
H A D | rx.c | 134 * @stats: status in mac80211's format 141 struct ieee80211_rx_status *stats, in iwl_mvm_set_mac80211_rx_flag() argument 161 stats->flag |= RX_FLAG_DECRYPTED; in iwl_mvm_set_mac80211_rx_flag() 178 stats->flag |= RX_FLAG_DECRYPTED; in iwl_mvm_set_mac80211_rx_flag() 187 stats->flag |= RX_FLAG_DECRYPTED; in iwl_mvm_set_mac80211_rx_flag() 802 struct iwl_statistics_operational_ntfy *stats) in iwl_mvm_stats_ver_14() 806 .flags = stats->flags, in iwl_mvm_stats_ver_14() 807 .per_mac = stats->per_mac, in iwl_mvm_stats_ver_14() 814 iwl_mvm_handle_per_phy_stats(mvm, stats->per_phy); in iwl_mvm_stats_ver_14() 819 struct iwl_statistics_operational_ntfy_ver_14 *stats) in iwl_mvm_verify_stats_len() 770 iwl_mvm_stats_ver_15(struct iwl_mvm * mvm,struct iwl_statistics_operational_ntfy * stats) iwl_mvm_stats_ver_15() argument 786 iwl_mvm_stats_ver_14(struct iwl_mvm * mvm,struct iwl_statistics_operational_ntfy_ver_14 * stats) iwl_mvm_stats_ver_14() argument 861 struct iwl_statistics_operational_ntfy_ver_14 *stats = iwl_mvm_handle_rx_statistics_tlv() local 886 struct iwl_statistics_operational_ntfy *stats = iwl_mvm_handle_rx_statistics_tlv() local 954 struct iwl_notif_statistics_v11 *stats = (void *)&pkt->data; iwl_mvm_handle_rx_statistics() local 976 struct iwl_notif_statistics *stats = (void *)&pkt->data; iwl_mvm_handle_rx_statistics() local 1017 struct iwl_notif_statistics *stats = (void *)&pkt->data; iwl_mvm_handle_rx_statistics() local [all...] |
/freebsd/sys/dev/oce/ |
H A D | oce_sysctl.c | 153 stats_node = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats", in oce_add_sysctls() 700 struct oce_drv_stats *stats; in oce_add_stats_sysctls_be3() local 704 stats = &sc->oce_stats_info; in oce_add_stats_sysctls_be3() 712 CTLFLAG_RD, &stats->rx.t_rx_pkts, in oce_add_stats_sysctls_be3() 715 CTLFLAG_RD, &stats->rx.t_rx_bytes, in oce_add_stats_sysctls_be3() 718 CTLFLAG_RD, &stats->rx.t_rx_frags, 0, in oce_add_stats_sysctls_be3() 721 CTLFLAG_RD, &stats->rx.t_rx_mcast_pkts, 0, in oce_add_stats_sysctls_be3() 724 CTLFLAG_RD, &stats->rx.t_rx_ucast_pkts, 0, in oce_add_stats_sysctls_be3() 727 CTLFLAG_RD, &stats->rx.t_rxcp_errs, 0, in oce_add_stats_sysctls_be3() 730 CTLFLAG_RD, &stats->u0.be.rx_pause_frames, 0, in oce_add_stats_sysctls_be3() [all …]
|
/freebsd/sys/dev/bfe/ |
H A D | if_bfe.c | 475 "stats", CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, sc, 0, in bfe_attach() 1241 struct bfe_hw_stats *stats; in bfe_stats_update() local 1256 stats = &sc->bfe_stats; in bfe_stats_update() 1258 stats->tx_good_octets += mib[MIB_TX_GOOD_O]; in bfe_stats_update() 1259 stats->tx_good_frames += mib[MIB_TX_GOOD_P]; in bfe_stats_update() 1260 stats->tx_octets += mib[MIB_TX_O]; in bfe_stats_update() 1261 stats->tx_frames += mib[MIB_TX_P]; in bfe_stats_update() 1262 stats->tx_bcast_frames += mib[MIB_TX_BCAST]; in bfe_stats_update() 1263 stats->tx_mcast_frames += mib[MIB_TX_MCAST]; in bfe_stats_update() 1264 stats->tx_pkts_64 += mib[MIB_TX_64]; in bfe_stats_update() [all …]
|
/freebsd/libexec/rpc.rstatd/ |
H A D | rstat_proc.c | 76 struct stats s1; 121 stats * 225 if (sysctlbyname("vm.stats." #cnt , &val, &len, NULL, 0) < 0) { \ in updatestat() 226 syslog(LOG_ERR, "sysctl(vm.stats." #cnt "): %m"); \ in updatestat() 294 struct statinfo stats; in haveadisk() local 308 stats.dinfo = (struct devinfo *)malloc(sizeof(struct devinfo)); in haveadisk() 309 bzero(stats.dinfo, sizeof(struct devinfo)); in haveadisk() 311 if (devstat_getdevs(NULL, &stats) == -1) { in haveadisk() 316 for (i = 0; i < stats.dinfo->numdevs; i++) { in haveadisk() 317 if (((stats.dinfo->devices[i].device_type in haveadisk() [all …]
|
/freebsd/contrib/jemalloc/include/jemalloc/internal/ |
H A D | bin.h | 82 bin_stats_t stats; member 105 /* Stats. */ 110 dst_bin_stats->nmalloc += bin->stats.nmalloc; in bin_stats_merge() 111 dst_bin_stats->ndalloc += bin->stats.ndalloc; in bin_stats_merge() 112 dst_bin_stats->nrequests += bin->stats.nrequests; in bin_stats_merge() 113 dst_bin_stats->curregs += bin->stats.curregs; in bin_stats_merge() 114 dst_bin_stats->nfills += bin->stats.nfills; in bin_stats_merge() 115 dst_bin_stats->nflushes += bin->stats.nflushes; in bin_stats_merge() 116 dst_bin_stats->nslabs += bin->stats.nslabs; in bin_stats_merge() 117 dst_bin_stats->reslabs += bin->stats.reslabs; in bin_stats_merge() [all …]
|