Home
last modified time | relevance | path

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

12345678910>>...23

/dpdk/lib/metrics/
H A Drte_metrics.c74 stats = memzone->addr; in rte_metrics_init()
94 stats = memzone->addr; in rte_metrics_deinit()
130 stats = memzone->addr; in rte_metrics_reg_names()
138 stats->metadata[stats->idx_last_set].idx_next_set = stats->cnt_stats; in rte_metrics_reg_names()
140 stats->idx_last_set = idx_base = stats->cnt_stats; in rte_metrics_reg_names()
143 entry = &stats->metadata[idx_name + stats->cnt_stats]; in rte_metrics_reg_names()
150 stats->cnt_stats += cnt_names; in rte_metrics_reg_names()
186 stats = memzone->addr; in rte_metrics_update_values()
190 if (key >= stats->cnt_stats) { in rte_metrics_update_values()
238 stats = memzone->addr; in rte_metrics_get_names()
[all …]
/dpdk/app/test/
H A Dtest_pmd_ring.c143 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 …]
/dpdk/lib/graph/
H A Dgraph_stats.c122 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()
171 cluster = RTE_PTR_ADD(stats, stats->sz), in stats_mem_populate()
182 stats->sz += stats->cluster_node_size; in stats_mem_populate()
188 free(stats); in stats_mem_populate()
196 free(stats); in stats_mem_fini()
309 rc = rte_malloc_socket(NULL, stats->sz, 0, stats->socket_id); in rte_graph_cluster_stats_create()
[all …]
/dpdk/drivers/net/mlx5/
H A Dmlx5_stats.c47 if (n >= mlx5_stats_n && stats) { in mlx5_xstats_get()
60 stats[i].id = i; in mlx5_xstats_get()
65 stats[i].value = (counters[i] - in mlx5_xstats_get()
69 if (stats[i].value < in mlx5_xstats_get()
72 stats[i].value |= (wrap_n) << 32; in mlx5_xstats_get()
75 stats[i].value = in mlx5_xstats_get()
119 tmp.q_ibytes[idx] += rxq->stats.ibytes - in mlx5_stats_get()
123 rxq->stats.rx_nombuf) - in mlx5_stats_get()
132 tmp.rx_nombuf += rxq->stats.rx_nombuf - in mlx5_stats_get()
170 *stats = tmp; in mlx5_stats_get()
[all …]
/dpdk/examples/qos_sched/
H A Dstats.c92 &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 …]
/dpdk/drivers/common/qat/
H A Dqat_common.c88 struct qat_common_stats *stats, in qat_stats_get() argument
94 if (stats == NULL || dev == NULL || service >= QAT_SERVICE_INVALID) { in qat_stats_get()
96 stats, dev, service); in qat_stats_get()
108 stats->enqueued_count += qp[i]->stats.enqueued_count; in qat_stats_get()
109 stats->dequeued_count += qp[i]->stats.dequeued_count; in qat_stats_get()
110 stats->enqueue_err_count += qp[i]->stats.enqueue_err_count; in qat_stats_get()
111 stats->dequeue_err_count += qp[i]->stats.dequeue_err_count; in qat_stats_get()
112 stats->threshold_hit_count += qp[i]->stats.threshold_hit_count; in qat_stats_get()
114 i, stats->threshold_hit_count); in qat_stats_get()
137 memset(&(qp[i]->stats), 0, sizeof(qp[i]->stats)); in qat_stats_reset()
/dpdk/drivers/event/dlb2/
H A Ddlb2_xstats.c109 val += port->stats.traffic.rx_ok; in dlb2_device_traffic_stat_get()
112 val += port->stats.traffic.rx_drop; in dlb2_device_traffic_stat_get()
121 val += port->stats.traffic.tx_ok; in dlb2_device_traffic_stat_get()
1146 p->stats.traffic.rx_ok); in dlb2_eventdev_dump()
1149 p->stats.traffic.rx_drop); in dlb2_eventdev_dump()
1158 p->stats.traffic.tx_ok); in dlb2_eventdev_dump()
1161 p->stats.traffic.total_polls); in dlb2_eventdev_dump()
1164 p->stats.traffic.zero_polls); in dlb2_eventdev_dump()
1194 p->stats.tx_implicit_rel); in dlb2_eventdev_dump()
1209 p->stats.tx_invalid); in dlb2_eventdev_dump()
[all …]
/dpdk/lib/port/
H A Drte_port_kni.c18 port->stats.n_pkts_in += val
20 port->stats.n_pkts_drop += val
93 if (stats != NULL) in rte_port_kni_reader_stats_read()
94 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_kni_reader_stats_read()
97 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_kni_reader_stats_read()
269 if (stats != NULL) in rte_port_kni_writer_stats_read()
270 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_kni_writer_stats_read()
273 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_kni_writer_stats_read()
479 if (stats != NULL) in rte_port_kni_writer_nodrop_stats_read()
480 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_kni_writer_nodrop_stats_read()
[all …]
H A Drte_port_fd.c31 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 Drte_port_ethdev.c19 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 Drte_port_sched.c16 port->stats.n_pkts_in += val
18 port->stats.n_pkts_drop += val
28 struct rte_port_in_stats stats; member
93 if (stats != NULL) in rte_port_sched_reader_stats_read()
94 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_sched_reader_stats_read()
97 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_sched_reader_stats_read()
108 port->stats.n_pkts_in += val
110 port->stats.n_pkts_drop += val
267 if (stats != NULL) in rte_port_sched_writer_stats_read()
268 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_sched_writer_stats_read()
[all …]
H A Drte_port_sym_crypto.c17 (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 Drte_port_eventdev.c31 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 Drte_swx_port_ring.c32 struct rte_swx_port_in_stats stats; member
96 p->stats.n_empty++; in reader_pkt_rx()
125 p->stats.n_pkts++; in reader_pkt_rx()
126 p->stats.n_bytes += pkt->length; in reader_pkt_rx()
156 if (!stats) in reader_stats_read()
159 memcpy(stats, &p->stats, sizeof(p->stats)); in reader_stats_read()
171 struct rte_swx_port_out_stats stats; member
259 p->stats.n_pkts++; in writer_pkt_tx()
260 p->stats.n_bytes += pkt->length; in writer_pkt_tx()
295 if (!stats) in writer_stats_read()
[all …]
H A Drte_port_ring.c19 port->stats.n_pkts_in += val
21 port->stats.n_pkts_drop += val
126 if (stats != NULL) in rte_port_ring_reader_stats_read()
127 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_ring_reader_stats_read()
130 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_ring_reader_stats_read()
394 if (stats != NULL) in rte_port_ring_writer_stats_read()
395 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_ring_writer_stats_read()
398 memset(&p->stats, 0, sizeof(p->stats)); in rte_port_ring_writer_stats_read()
727 if (stats != NULL) in rte_port_ring_writer_nodrop_stats_read()
728 memcpy(stats, &p->stats, sizeof(p->stats)); in rte_port_ring_writer_nodrop_stats_read()
[all …]
H A Drte_swx_port_source_sink.c44 struct rte_swx_port_in_stats stats; member
180 p->stats.n_pkts++; in source_pkt_rx()
181 p->stats.n_bytes += pkt->length; in source_pkt_rx()
194 source_stats_read(void *port, struct rte_swx_port_in_stats *stats) in source_stats_read() argument
198 if (!p || !stats) in source_stats_read()
201 memcpy(stats, &p->stats, sizeof(p->stats)); in source_stats_read()
226 struct rte_swx_port_out_stats stats; member
302 p->stats.n_pkts++; in sink_pkt_tx()
303 p->stats.n_bytes += pkt->length; in sink_pkt_tx()
327 if (!p || !stats) in sink_stats_read()
[all …]
H A Drte_swx_port_ethdev.c40 struct rte_swx_port_in_stats stats; member
99 p->stats.n_empty++; in reader_pkt_rx()
130 p->stats.n_pkts++; in reader_pkt_rx()
131 p->stats.n_bytes += pkt->length; in reader_pkt_rx()
156 reader_stats_read(void *port, struct rte_swx_port_in_stats *stats) in reader_stats_read() argument
160 memcpy(stats, &p->stats, sizeof(p->stats)); in reader_stats_read()
172 struct rte_swx_port_out_stats stats; member
259 p->stats.n_pkts++; in writer_pkt_tx()
260 p->stats.n_bytes += pkt->length; in writer_pkt_tx()
290 writer_stats_read(void *port, struct rte_swx_port_out_stats *stats) in writer_stats_read() argument
[all …]
/dpdk/lib/table/
H A Drte_table_stub.c14 table->stats.n_pkts_in += val
16 table->stats.n_pkts_lookup_miss += val
26 struct rte_table_stats stats; member
69 rte_table_stub_stats_read(void *table, struct rte_table_stats *stats, int clear) in rte_table_stub_stats_read() argument
73 if (stats != NULL) in rte_table_stub_stats_read()
74 memcpy(stats, &t->stats, sizeof(t->stats)); in rte_table_stub_stats_read()
77 memset(&t->stats, 0, sizeof(t->stats)); in rte_table_stub_stats_read()
/dpdk/drivers/crypto/bcmfs/
H A Dbcmfs_qp.c174 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 …]
/dpdk/drivers/net/nfb/
H A Dnfb_stats.c12 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()
/dpdk/drivers/net/e1000/
H A Dem_ethdev.c871 struct e1000_hw_stats *stats = in eth_em_stats_get() local
889 stats->dc += E1000_READ_REG(hw, E1000_DC); in eth_em_stats_get()
899 stats->xoffrxc += pause_frames; in eth_em_stats_get()
970 rte_stats->imissed = stats->mpc; in eth_em_stats_get()
971 rte_stats->ierrors = stats->crcerrs + stats->rlec + in eth_em_stats_get()
972 stats->rxerrc + stats->algnerrc + stats->cexterr; in eth_em_stats_get()
975 rte_stats->oerrors = stats->ecol + stats->latecol; in eth_em_stats_get()
977 rte_stats->ipackets = stats->gprc; in eth_em_stats_get()
978 rte_stats->opackets = stats->gptc; in eth_em_stats_get()
979 rte_stats->ibytes = stats->gorc; in eth_em_stats_get()
[all …]
/dpdk/drivers/net/axgbe/
H A Daxgbe_ethdev.c829 stats->tx64octets_gb += in axgbe_read_mmc_stats()
831 stats->tx64octets_gb += in axgbe_read_mmc_stats()
889 stats->txpauseframes += in axgbe_read_mmc_stats()
891 stats->txpauseframes += in axgbe_read_mmc_stats()
925 stats->rxcrcerror += in axgbe_read_mmc_stats()
927 stats->rxcrcerror += in axgbe_read_mmc_stats()
930 stats->rxrunterror += in axgbe_read_mmc_stats()
939 stats->rxoversize_g += in axgbe_read_mmc_stats()
1016 if (!stats) in axgbe_dev_xstats_get()
1022 stats[i].id = i; in axgbe_dev_xstats_get()
[all …]
/dpdk/drivers/net/vhost/
H A Drte_eth_vhost.c99 struct vhost_stats stats; member
240 memset(&vq->stats, 0, sizeof(vq->stats)); in vhost_dev_xstats_reset()
246 memset(&vq->stats, 0, sizeof(vq->stats)); in vhost_dev_xstats_reset()
1311 stats->q_ipackets[i] = vq->stats.pkts; in eth_stats_get()
1314 stats->q_ibytes[i] = vq->stats.bytes; in eth_stats_get()
1323 stats->q_opackets[i] = vq->stats.pkts; in eth_stats_get()
1326 stats->q_obytes[i] = vq->stats.bytes; in eth_stats_get()
1348 vq->stats.pkts = 0; in eth_stats_reset()
1349 vq->stats.bytes = 0; in eth_stats_reset()
1355 vq->stats.pkts = 0; in eth_stats_reset()
[all …]
/dpdk/drivers/net/igc/
H A Digc_ethdev.c1656 uint64_t old_tpr = stats->tpr; in igc_read_stats_registers()
1684 stats->xoffrxc += pause_frames; in igc_read_stats_registers()
1704 stats->gorc -= (stats->gprc - old_gprc) * RTE_ETHER_CRC_LEN; in igc_read_stats_registers()
1707 stats->gotc -= (stats->gptc - old_gptc) * RTE_ETHER_CRC_LEN; in igc_read_stats_registers()
1728 stats->tor -= (stats->tpr - old_tpr) * RTE_ETHER_CRC_LEN; in igc_read_stats_registers()
1731 stats->tot -= (stats->tpt - old_tpt) * RTE_ETHER_CRC_LEN; in igc_read_stats_registers()
1751 stats->hgorc -= (stats->rpthc - old_rpthc) * RTE_ETHER_CRC_LEN; in igc_read_stats_registers()
1754 stats->hgotc -= (stats->hgptc - old_hgptc) * RTE_ETHER_CRC_LEN; in igc_read_stats_registers()
1885 rte_stats->ierrors = stats->crcerrs + stats->rlec + in eth_igc_stats_get()
1886 stats->rxerrc + stats->algnerrc; in eth_igc_stats_get()
[all …]
/dpdk/drivers/crypto/armv8/
H A Drte_armv8_pmd_ops.c114 struct rte_cryptodev_stats *stats) in armv8_crypto_pmd_stats_get() argument
121 stats->enqueued_count += qp->stats.enqueued_count; in armv8_crypto_pmd_stats_get()
122 stats->dequeued_count += qp->stats.dequeued_count; in armv8_crypto_pmd_stats_get()
124 stats->enqueue_err_count += qp->stats.enqueue_err_count; in armv8_crypto_pmd_stats_get()
125 stats->dequeue_err_count += qp->stats.dequeue_err_count; in armv8_crypto_pmd_stats_get()
138 memset(&qp->stats, 0, sizeof(qp->stats)); in armv8_crypto_pmd_stats_reset()
249 memset(&qp->stats, 0, sizeof(qp->stats)); in armv8_crypto_pmd_qp_setup()

12345678910>>...23