| /f-stack/dpdk/lib/librte_metrics/ |
| H A D | rte_metrics.c | 77 stats = memzone->addr; in rte_metrics_init() 97 stats = memzone->addr; in rte_metrics_deinit() 133 stats = memzone->addr; in rte_metrics_reg_names() 141 stats->metadata[stats->idx_last_set].idx_next_set = stats->cnt_stats; in rte_metrics_reg_names() 143 stats->idx_last_set = idx_base = stats->cnt_stats; in rte_metrics_reg_names() 146 entry = &stats->metadata[idx_name + stats->cnt_stats]; in rte_metrics_reg_names() 153 stats->cnt_stats += cnt_names; in rte_metrics_reg_names() 189 stats = memzone->addr; in rte_metrics_update_values() 193 if (key >= stats->cnt_stats) { in rte_metrics_update_values() 241 stats = memzone->addr; in rte_metrics_get_names() [all …]
|
| /f-stack/dpdk/app/test/ |
| H A D | test_pmd_ring.c | 143 stats.ibytes != 0 || stats.obytes != 0 || in test_get_stats() 144 stats.ierrors != 0 || stats.oerrors != 0) { in test_get_stats() 162 stats.ibytes != 0 || stats.obytes != 0 || in test_get_stats() 163 stats.ierrors != 0 || stats.oerrors != 0) { in test_get_stats() 183 stats.ibytes != 0 || stats.obytes != 0 || in test_stats_reset() 184 stats.ierrors != 0 || stats.oerrors != 0) { in test_stats_reset() 202 stats.ibytes != 0 || stats.obytes != 0 || in test_stats_reset() 213 stats.ibytes != 0 || stats.obytes != 0 || in test_stats_reset() 265 stats.ibytes != 0 || stats.obytes != 0 || in test_pmd_ring_pair_create_attach() 299 stats.ibytes != 0 || stats.obytes != 0 || in test_pmd_ring_pair_create_attach() [all …]
|
| /f-stack/freebsd/contrib/rdma/krping/ |
| H A D | krping_dev.c | 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 155 stats->send_bytes, stats->send_msgs, in krping_read() 156 stats->recv_bytes, stats->recv_msgs, in krping_read() 157 stats->write_bytes, stats->write_msgs, in krping_read() 158 stats->read_bytes, stats->read_msgs); in krping_read() [all …]
|
| /f-stack/dpdk/lib/librte_graph/ |
| H A D | graph_stats.c | 123 if (stats) { in stats_mem_init() 124 stats->fn = fn; in stats_mem_init() 129 stats->sz = sz; in stats_mem_init() 132 return stats; in stats_mem_init() 165 stats = realloc(stats, stats->sz + stats->cluster_node_size); in stats_mem_populate() 166 if (stats == NULL) in stats_mem_populate() 170 cluster = RTE_PTR_ADD(stats, stats->sz), in stats_mem_populate() 181 stats->sz += stats->cluster_node_size; in stats_mem_populate() 193 free(stats); in stats_mem_fini() 307 rc = rte_malloc_socket(NULL, stats->sz, 0, stats->socket_id); in rte_graph_cluster_stats_create() [all …]
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_tee.c | 69 struct ng_tee_hookstat stats; member 199 bzero(&hinfo->stats, sizeof(hinfo->stats)); in ng_tee_newhook() 233 bcopy(&sc->right.stats, &stats->right, in ng_tee_rcvmsg() 235 bcopy(&sc->left.stats, &stats->left, in ng_tee_rcvmsg() 237 bcopy(&sc->right2left.stats, &stats->right2left, in ng_tee_rcvmsg() 239 bcopy(&sc->left2right.stats, &stats->left2right, in ng_tee_rcvmsg() 243 bzero(&sc->right.stats, in ng_tee_rcvmsg() 245 bzero(&sc->left.stats, in ng_tee_rcvmsg() 301 hinfo->stats.inFrames++; in ng_tee_rcvdata() 315 h->stats.outFrames++; in ng_tee_rcvdata() [all …]
|
| H A D | ng_hole.c | 60 struct ng_hole_hookstat stats; member 151 struct ng_hole_hookstat *stats; in ngh_rcvmsg() local 172 stats = &((hinfo_p)NG_HOOK_PRIVATE(hook))->stats; in ngh_rcvmsg() 175 NG_MKRESPONSE(resp, msg, sizeof(*stats), in ngh_rcvmsg() 181 bcopy(stats, resp->data, sizeof(*stats)); in ngh_rcvmsg() 185 bzero(stats, sizeof(*stats)); in ngh_rcvmsg() 209 hip->stats.frames++; in ngh_rcvdata() 210 hip->stats.octets += NGI_M(item)->m_pkthdr.len; in ngh_rcvdata()
|
| H A D | ng_source.c | 87 struct ng_source_stats stats; member 306 bzero(&sc->stats, sizeof(sc->stats)); in ng_source_newhook() 382 &sc->stats.startTime); in ng_source_rcvmsg() 385 bcopy(&sc->stats, stats, sizeof(* stats)); in ng_source_rcvmsg() 388 bzero(&sc->stats, sizeof(sc->stats)); in ng_source_rcvmsg() 435 sc->stats.maxPps = pps; in ng_source_rcvmsg() 716 sc->stats.elapsedTime = sc->stats.endTime; in ng_source_stop() 717 timevalsub(&sc->stats.elapsedTime, &sc->stats.startTime); in ng_source_stop() 746 if (sc->stats.maxPps != 0) { in ng_source_intr() 756 sc->stats.lastTime = now; in ng_source_intr() [all …]
|
| /f-stack/dpdk/drivers/net/mlx5/ |
| H A D | mlx5_stats.c | 46 if (n >= mlx5_stats_n && stats) { in mlx5_xstats_get() 59 stats[i].id = i; in mlx5_xstats_get() 64 stats[i].value = (counters[i] - in mlx5_xstats_get() 68 if (stats[i].value < in mlx5_xstats_get() 71 stats[i].value |= (wrap_n) << 32; in mlx5_xstats_get() 74 stats[i].value = in mlx5_xstats_get() 120 rxq->stats.rx_nombuf); in mlx5_stats_get() 124 tmp.ibytes += rxq->stats.ibytes; in mlx5_stats_get() 143 tmp.obytes += txq->stats.obytes; in mlx5_stats_get() 145 tmp.oerrors += txq->stats.oerrors; in mlx5_stats_get() [all …]
|
| /f-stack/dpdk/drivers/common/qat/ |
| H A D | qat_common.c | 73 struct qat_common_stats *stats, in qat_stats_get() argument 79 if (stats == NULL || dev == NULL || service >= QAT_SERVICE_INVALID) { in qat_stats_get() 81 stats, dev, service); in qat_stats_get() 93 stats->enqueued_count += qp[i]->stats.enqueued_count; in qat_stats_get() 94 stats->dequeued_count += qp[i]->stats.dequeued_count; in qat_stats_get() 95 stats->enqueue_err_count += qp[i]->stats.enqueue_err_count; in qat_stats_get() 96 stats->dequeue_err_count += qp[i]->stats.dequeue_err_count; in qat_stats_get() 97 stats->threshold_hit_count += qp[i]->stats.threshold_hit_count; in qat_stats_get() 99 i, stats->threshold_hit_count); in qat_stats_get() 122 memset(&(qp[i]->stats), 0, sizeof(qp[i]->stats)); in qat_stats_reset()
|
| /f-stack/dpdk/examples/qos_sched/ |
| H A D | stats.c | 92 &stats, &qlen); in qavg_tcpipe() 97 &stats, &qlen); in qavg_tcpipe() 145 &stats, &qlen); in qavg_pipe() 197 &stats, &qlen); in qavg_tcsubport() 205 &stats, &qlen); in qavg_tcsubport() 265 &stats, &qlen); in qavg_subport() 311 i, stats.n_pkts_tc[i], stats.n_pkts_tc_dropped[i], in subport_stat() 312 stats.n_bytes_tc[i], stats.n_bytes_tc_dropped[i], tc_ov[i]); in subport_stat() 355 i, 0, stats.n_pkts, stats.n_pkts_dropped, stats.n_bytes, in pipe_stat() 361 &stats, &qlen); in pipe_stat() [all …]
|
| /f-stack/dpdk/lib/librte_port/ |
| H A D | rte_port_kni.c | 19 port->stats.n_pkts_in += val 21 port->stats.n_pkts_drop += val 94 if (stats != NULL) in rte_port_kni_reader_stats_read() 95 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_kni_reader_stats_read() 98 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_kni_reader_stats_read() 270 if (stats != NULL) in rte_port_kni_writer_stats_read() 271 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_kni_writer_stats_read() 274 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_kni_writer_stats_read() 480 if (stats != NULL) in rte_port_kni_writer_nodrop_stats_read() 481 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_kni_writer_nodrop_stats_read() [all …]
|
| H A D | rte_port_sched.c | 17 port->stats.n_pkts_in += val 19 port->stats.n_pkts_drop += val 29 struct rte_port_in_stats stats; member 94 if (stats != NULL) in rte_port_sched_reader_stats_read() 95 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_sched_reader_stats_read() 98 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_sched_reader_stats_read() 109 port->stats.n_pkts_in += val 111 port->stats.n_pkts_drop += val 268 if (stats != NULL) in rte_port_sched_writer_stats_read() 269 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_sched_writer_stats_read() [all …]
|
| H A D | rte_port_fd.c | 31 struct rte_port_in_stats stats; member 127 if (stats != NULL) in rte_port_fd_reader_stats_read() 128 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_fd_reader_stats_read() 131 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_fd_reader_stats_read() 154 struct rte_port_out_stats stats; member 298 if (stats != NULL) in rte_port_fd_writer_stats_read() 299 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_fd_writer_stats_read() 302 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_fd_writer_stats_read() 483 if (stats != NULL) in rte_port_fd_writer_nodrop_stats_read() 484 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_fd_writer_nodrop_stats_read() [all …]
|
| H A D | rte_port_ethdev.c | 19 port->stats.n_pkts_in += val 21 port->stats.n_pkts_drop += val 96 if (stats != NULL) in rte_port_ethdev_reader_stats_read() 97 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_ethdev_reader_stats_read() 100 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_ethdev_reader_stats_read() 276 if (stats != NULL) in rte_port_ethdev_writer_stats_read() 277 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_ethdev_writer_stats_read() 280 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_ethdev_writer_stats_read() 489 if (stats != NULL) in rte_port_ethdev_writer_nodrop_stats_read() 490 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_ethdev_writer_nodrop_stats_read() [all …]
|
| H A D | rte_port_sym_crypto.c | 17 (port)->stats.n_pkts_in += (val) 29 struct rte_port_in_stats stats; member 118 if (stats != NULL) in rte_port_sym_crypto_reader_stats_read() 119 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_sym_crypto_reader_stats_read() 122 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_sym_crypto_reader_stats_read() 304 if (stats != NULL) in rte_port_sym_crypto_writer_stats_read() 305 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_sym_crypto_writer_stats_read() 308 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_sym_crypto_writer_stats_read() 516 if (stats != NULL) in rte_port_sym_crypto_writer_nodrop_stats_read() 517 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_sym_crypto_writer_nodrop_stats_read() [all …]
|
| H A D | rte_port_eventdev.c | 31 struct rte_port_in_stats stats; member 103 if (stats != NULL) in rte_port_eventdev_reader_stats_read() 104 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_eventdev_reader_stats_read() 107 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_eventdev_reader_stats_read() 130 struct rte_port_out_stats stats; member 309 if (stats != NULL) in rte_port_eventdev_writer_stats_read() 310 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_eventdev_writer_stats_read() 313 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_eventdev_writer_stats_read() 549 if (stats != NULL) in rte_port_eventdev_writer_nodrop_stats_read() 550 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_eventdev_writer_nodrop_stats_read() [all …]
|
| H A D | rte_swx_port_source_sink.c | 43 struct rte_swx_port_in_stats stats; member 175 p->stats.n_pkts++; in source_pkt_rx() 176 p->stats.n_bytes += pkt->length; in source_pkt_rx() 187 source_stats_read(void *port, struct rte_swx_port_in_stats *stats) in source_stats_read() argument 191 if (!p || !stats) in source_stats_read() 194 memcpy(stats, &p->stats, sizeof(p->stats)); in source_stats_read() 219 struct rte_swx_port_out_stats stats; member 295 p->stats.n_pkts++; in sink_pkt_tx() 296 p->stats.n_bytes += pkt->length; in sink_pkt_tx() 320 if (!p || !stats) in sink_stats_read() [all …]
|
| /f-stack/dpdk/drivers/event/dlb2/ |
| H A D | dlb2_xstats.c | 106 val += port->stats.traffic.rx_ok; in dlb2_device_traffic_stat_get() 109 val += port->stats.traffic.rx_drop; in dlb2_device_traffic_stat_get() 118 val += port->stats.traffic.tx_ok; in dlb2_device_traffic_stat_get() 1115 p->stats.traffic.rx_ok); in dlb2_eventdev_dump() 1118 p->stats.traffic.rx_drop); in dlb2_eventdev_dump() 1127 p->stats.traffic.tx_ok); in dlb2_eventdev_dump() 1130 p->stats.traffic.total_polls); in dlb2_eventdev_dump() 1133 p->stats.traffic.zero_polls); in dlb2_eventdev_dump() 1160 p->stats.tx_implicit_rel); in dlb2_eventdev_dump() 1175 p->stats.tx_invalid); in dlb2_eventdev_dump() [all …]
|
| /f-stack/dpdk/drivers/event/dlb/ |
| H A D | dlb_xstats.c | 94 val += port->stats.traffic.rx_ok; in dlb_device_traffic_stat_get() 97 val += port->stats.traffic.rx_drop; in dlb_device_traffic_stat_get() 106 val += port->stats.traffic.tx_ok; in dlb_device_traffic_stat_get() 1097 p->stats.traffic.rx_ok); in dlb_eventdev_dump() 1100 p->stats.traffic.rx_drop); in dlb_eventdev_dump() 1109 p->stats.traffic.tx_ok); in dlb_eventdev_dump() 1112 p->stats.traffic.total_polls); in dlb_eventdev_dump() 1115 p->stats.traffic.zero_polls); in dlb_eventdev_dump() 1142 p->stats.tx_implicit_rel); in dlb_eventdev_dump() 1157 p->stats.tx_invalid); in dlb_eventdev_dump() [all …]
|
| /f-stack/app/redis-5.0.5/deps/jemalloc/include/jemalloc/internal/ |
| H A D | bin.h | 78 bin_stats_t stats; member 94 dst_bin_stats->nmalloc += bin->stats.nmalloc; in bin_stats_merge() 95 dst_bin_stats->ndalloc += bin->stats.ndalloc; in bin_stats_merge() 96 dst_bin_stats->nrequests += bin->stats.nrequests; in bin_stats_merge() 97 dst_bin_stats->curregs += bin->stats.curregs; in bin_stats_merge() 98 dst_bin_stats->nfills += bin->stats.nfills; in bin_stats_merge() 99 dst_bin_stats->nflushes += bin->stats.nflushes; in bin_stats_merge() 100 dst_bin_stats->nslabs += bin->stats.nslabs; in bin_stats_merge() 101 dst_bin_stats->reslabs += bin->stats.reslabs; in bin_stats_merge() 102 dst_bin_stats->curslabs += bin->stats.curslabs; in bin_stats_merge()
|
| /f-stack/dpdk/lib/librte_table/ |
| H A D | rte_table_stub.c | 15 table->stats.n_pkts_in += val 17 table->stats.n_pkts_lookup_miss += val 27 struct rte_table_stats stats; member 70 rte_table_stub_stats_read(void *table, struct rte_table_stats *stats, int clear) in rte_table_stub_stats_read() argument 74 if (stats != NULL) in rte_table_stub_stats_read() 75 memcpy(stats, &t->stats, sizeof(t->stats)); in rte_table_stub_stats_read() 78 memset(&t->stats, 0, sizeof(t->stats)); in rte_table_stub_stats_read()
|
| /f-stack/dpdk/drivers/net/nfb/ |
| H A D | nfb_stats.c | 12 struct rte_eth_stats *stats) in nfb_eth_stats_get() argument 30 stats->q_ipackets[i] = rx_queue[i].rx_pkts; in nfb_eth_stats_get() 31 stats->q_ibytes[i] = rx_queue[i].rx_bytes; in nfb_eth_stats_get() 39 stats->q_opackets[i] = tx_queue[i].tx_pkts; in nfb_eth_stats_get() 40 stats->q_obytes[i] = tx_queue[i].tx_bytes; in nfb_eth_stats_get() 47 stats->ipackets = rx_total; in nfb_eth_stats_get() 48 stats->opackets = tx_total; in nfb_eth_stats_get() 49 stats->ibytes = rx_total_bytes; in nfb_eth_stats_get() 50 stats->obytes = tx_total_bytes; in nfb_eth_stats_get() 51 stats->oerrors = tx_err_total; in nfb_eth_stats_get()
|
| /f-stack/dpdk/drivers/crypto/bcmfs/ |
| H A D | bcmfs_qp.c | 174 if ((qp->stats.enqueued_count - qp->stats.dequeued_count) == 0) { in bcmfs_qp_release() 232 qp->stats.enqueued_count = 0; in bcmfs_qp_setup() 233 qp->stats.dequeued_count = 0; in bcmfs_qp_setup() 349 struct bcmfs_qp_stats *stats) in bcmfs_qp_stats_get() argument 353 if (stats == NULL) { in bcmfs_qp_stats_get() 355 stats); in bcmfs_qp_stats_get() 365 stats->enqueued_count += qp[i]->stats.enqueued_count; in bcmfs_qp_stats_get() 366 stats->dequeued_count += qp[i]->stats.dequeued_count; in bcmfs_qp_stats_get() 367 stats->enqueue_err_count += qp[i]->stats.enqueue_err_count; in bcmfs_qp_stats_get() 368 stats->dequeue_err_count += qp[i]->stats.dequeue_err_count; in bcmfs_qp_stats_get() [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | subr_blist.c | 442 bzero(stats, sizeof(*stats)); in init_gap_stats() 456 stats->start = posn; in update_gap_stats() 461 if (size > stats->max) in update_gap_stats() 462 stats->max = size; in update_gap_stats() 483 stats->histo[lo]++; in update_gap_stats() 485 stats->max_bucket = lo; in update_gap_stats() 486 stats->err += size - stats->avg; in update_gap_stats() 487 stats->num++; in update_gap_stats() 488 stats->avg += stats->err / stats->num; in update_gap_stats() 489 stats->err %= stats->num; in update_gap_stats() [all …]
|
| /f-stack/dpdk/drivers/net/e1000/ |
| H A D | em_ethdev.c | 878 struct e1000_hw_stats *stats = in eth_em_stats_get() local 906 stats->xoffrxc += pause_frames; in eth_em_stats_get() 977 rte_stats->imissed = stats->mpc; in eth_em_stats_get() 978 rte_stats->ierrors = stats->crcerrs + in eth_em_stats_get() 979 stats->rlec + stats->ruc + stats->roc + in eth_em_stats_get() 980 stats->rxerrc + stats->algnerrc + stats->cexterr; in eth_em_stats_get() 983 rte_stats->oerrors = stats->ecol + stats->latecol; in eth_em_stats_get() 985 rte_stats->ipackets = stats->gprc; in eth_em_stats_get() 986 rte_stats->opackets = stats->gptc; in eth_em_stats_get() 987 rte_stats->ibytes = stats->gorc; in eth_em_stats_get() [all …]
|