| /f-stack/dpdk/drivers/net/vhost/ |
| H A D | rte_eth_vhost.c | 88 uint64_t xstats[VHOST_XSTATS_MAX]; member 292 xstats[count].value = 0; in vhost_dev_xstats_get() 297 xstats[count].value += in vhost_dev_xstats_get() 301 xstats[count].id = count; in vhost_dev_xstats_get() 305 xstats[count].value = 0; in vhost_dev_xstats_get() 310 xstats[count].value += in vhost_dev_xstats_get() 314 xstats[count].id = count; in vhost_dev_xstats_get() 334 pstats->xstats[VHOST_UNICAST_PKT]++; in vhost_count_xcast_packets() 353 pstats->xstats[VHOST_PKT]++; in vhost_update_packet_xstats() 356 pstats->xstats[VHOST_64_PKT]++; in vhost_update_packet_xstats() [all …]
|
| /f-stack/dpdk/drivers/event/octeontx2/ |
| H A D | otx2_evdev_stats.h | 58 struct otx2_sso_xstats_name *xstats; in otx2_sso_xstats_get() local 76 xstats = sso_hws_xstats; in otx2_sso_xstats_get() 87 xstat = &xstats[ids[i] - start_offset]; in otx2_sso_xstats_get() 109 xstats = sso_grp_xstats; in otx2_sso_xstats_get() 124 xstat = &xstats[ids[i] - start_offset]; in otx2_sso_xstats_get() 147 struct otx2_sso_xstats_name *xstats; in otx2_sso_xstats_reset() local 165 xstats = sso_hws_xstats; in otx2_sso_xstats_reset() 176 xstat = &xstats[ids[i] - start_offset]; in otx2_sso_xstats_reset() 199 xstats = sso_grp_xstats; in otx2_sso_xstats_reset() 214 xstat = &xstats[ids[i] - start_offset]; in otx2_sso_xstats_reset()
|
| /f-stack/dpdk/drivers/event/sw/ |
| H A D | sw_evdev_xstats.c | 257 sw->xstats = rte_zmalloc_socket(NULL, sizeof(sw->xstats[0]) * count, 0, in sw_xstats_init() 259 if (sw->xstats == NULL) in sw_xstats_init() 262 #define sname sw->xstats[stat].name.name in sw_xstats_init() 264 sw->xstats[stat] = (struct sw_xstats_entry){ in sw_xstats_init() 280 sw->xstats[stat] = (struct sw_xstats_entry){ in sw_xstats_init() 380 rte_free(sw->xstats); in sw_xstats_uninit() 423 if (sw->xstats[i].mode != mode) in sw_xstats_get_names() 427 queue_port_id != sw->xstats[i].obj_idx) in sw_xstats_get_names() 430 xstats_names[xidx] = sw->xstats[i].name; in sw_xstats_get_names() 522 struct sw_xstats_entry *xs = &sw->xstats[i]; in sw_xstats_get_by_name() [all …]
|
| /f-stack/dpdk/doc/guides/tools/ |
| H A D | proc_info.rst | 20 ./<build_dir>/app/dpdk-procinfo -- -m | [-p PORTMASK] [--stats | --xstats | 21 --stats-reset | --xstats-reset] [ --show-port | --show-tm | --show-crypto | 32 **--xstats** 33 The xstats parameter controls the printing of extended port statistics. If no 34 port mask is specified xstats are printed for all DPDK ports. 40 **--xstats-reset** 41 The xstats-reset parameter controls the resetting of extended port statistics. 42 If no port mask is specified xstats are reset for all DPDK ports.
|
| /f-stack/dpdk/drivers/net/octeontx2/ |
| H A D | otx2_stats.c | 162 struct rte_eth_xstat *xstats, in otx2_nix_xstats_get() argument 172 if (xstats == NULL) in otx2_nix_xstats_get() 176 xstats[count].value = otx2_read64(dev->base + in otx2_nix_xstats_get() 178 xstats[count].id = count; in otx2_nix_xstats_get() 183 xstats[count].value = otx2_read64(dev->base + in otx2_nix_xstats_get() 185 xstats[count].id = count; in otx2_nix_xstats_get() 195 xstats[count].value += val; in otx2_nix_xstats_get() 197 xstats[count].id = count; in otx2_nix_xstats_get() 276 struct rte_eth_xstat xstats[OTX2_NIX_NUM_XSTATS_REG]; in otx2_nix_xstats_get_by_id() local 288 otx2_nix_xstats_get(eth_dev, xstats, n); in otx2_nix_xstats_get_by_id() [all …]
|
| /f-stack/dpdk/drivers/raw/ioat/ |
| H A D | rte_ioat_rawdev_fns.h | 70 struct rte_ioat_xstats xstats; member 194 struct rte_ioat_xstats xstats; member 226 ioat->xstats.enqueue_failed++; in __ioat_write_desc() 246 ioat->xstats.enqueued++; in __ioat_write_desc() 300 ioat->xstats.started = ioat->xstats.enqueued; in __ioat_perform_ops() 367 ioat->xstats.completed += count; in __ioat_completed_ops() 400 idxd->xstats.enqueued++; in __idxd_write_desc() 404 idxd->xstats.enqueue_failed++; in __idxd_write_desc() 479 idxd->xstats.started = idxd->xstats.enqueued; in __idxd_perform_ops() 517 idxd->xstats.completed += n; in __idxd_completed_ops()
|
| H A D | ioat_common.c | 22 const uint64_t *stats = (const void *)&ioat->xstats; in ioat_xstats_get() 26 if (ids[i] > sizeof(ioat->xstats)/sizeof(*stats)) in ioat_xstats_get() 55 uint64_t *stats = (void *)&ioat->xstats; in ioat_xstats_reset() 59 memset(&ioat->xstats, 0, sizeof(ioat->xstats)); in ioat_xstats_reset() 64 if (ids[i] < sizeof(ioat->xstats)/sizeof(*stats)) in ioat_xstats_reset()
|
| /f-stack/dpdk/drivers/net/hns3/ |
| H A D | hns3_stats.c | 665 xstats[*count].value = hns3_read_dev(hw, in hns3_get_queue_stats() 667 xstats[*count].id = *count; in hns3_get_queue_stats() 676 xstats[*count].value = hns3_read_dev(hw, in hns3_get_queue_stats() 678 xstats[*count].id = *count; in hns3_get_queue_stats() 730 if (xstats == NULL) in hns3_dev_xstats_get() 751 xstats[count].id = count; in hns3_dev_xstats_get() 759 xstats[count].id = count; in hns3_dev_xstats_get() 767 xstats[count].value = *(uint64_t *)addr; in hns3_dev_xstats_get() 768 xstats[count].id = count; in hns3_dev_xstats_get() 778 xstats[count].id = count; in hns3_dev_xstats_get() [all …]
|
| H A D | hns3_stats.h | 136 int hns3_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats,
|
| /f-stack/dpdk/doc/guides/howto/ |
| H A D | telemetry.rst | 68 "/ethdev/link_status", "/ethdev/xstats", "/help", "/info"]} 82 --> /ethdev/xstats,0 83 {"/ethdev/xstats": {"rx_good_packets": 0, "tx_good_packets": 0, 91 --> /help,/ethdev/xstats 92 {"/help": {"/ethdev/xstats": "Returns the extended stats for a port.
|
| /f-stack/dpdk/drivers/net/bnxt/ |
| H A D | bnxt_stats.c | 597 if (xstats == NULL) in bnxt_dev_xstats_get_op() 600 memset(xstats, 0, sizeof(*xstats)); in bnxt_dev_xstats_get_op() 627 xstats[count].id = count; in bnxt_dev_xstats_get_op() 636 xstats[count].id = count; in bnxt_dev_xstats_get_op() 644 xstats[count].id = count; in bnxt_dev_xstats_get_op() 645 xstats[count].value = in bnxt_dev_xstats_get_op() 655 xstats[count].value = rte_le_to_cpu_64 in bnxt_dev_xstats_get_op() 694 xstats[count].id = count; in bnxt_dev_xstats_get_op() 695 xstats[count].value = in bnxt_dev_xstats_get_op() 698 xstats[count].id = count; in bnxt_dev_xstats_get_op() [all …]
|
| H A D | bnxt_stats.h | 19 struct rte_eth_xstat *xstats, unsigned int n);
|
| /f-stack/dpdk/drivers/event/dlb/ |
| H A D | dlb_xstats.c | 512 dlb->xstats = rte_zmalloc_socket(NULL, in dlb_xstats_init() 513 sizeof(dlb->xstats[0]) * count, 0, in dlb_xstats_init() 515 if (dlb->xstats == NULL) in dlb_xstats_init() 518 #define sname dlb->xstats[stat_id].name.name in dlb_xstats_init() 520 dlb->xstats[stat_id] = (struct dlb_xstats_entry) { in dlb_xstats_init() 584 rte_free(dlb->xstats); in dlb_xstats_uninit() 626 if (dlb->xstats[i].mode != mode) in dlb_eventdev_xstats_get_names() 630 queue_port_id != dlb->xstats[i].obj_idx) in dlb_eventdev_xstats_get_names() 633 xstats_names[xidx] = dlb->xstats[i].name; in dlb_eventdev_xstats_get_names() 737 struct dlb_xstats_entry *xs = &dlb->xstats[i]; in dlb_eventdev_xstats_get_by_name() [all …]
|
| /f-stack/dpdk/drivers/event/dlb2/ |
| H A D | dlb2_xstats.c | 568 dlb2->xstats = rte_zmalloc_socket(NULL, in dlb2_xstats_init() 569 sizeof(dlb2->xstats[0]) * count, 0, in dlb2_xstats_init() 571 if (dlb2->xstats == NULL) in dlb2_xstats_init() 574 #define sname dlb2->xstats[stat_id].name.name in dlb2_xstats_init() 576 dlb2->xstats[stat_id] = (struct dlb2_xstats_entry) { in dlb2_xstats_init() 640 rte_free(dlb2->xstats); in dlb2_xstats_uninit() 682 if (dlb2->xstats[i].mode != mode) in dlb2_eventdev_xstats_get_names() 686 queue_port_id != dlb2->xstats[i].obj_idx) in dlb2_eventdev_xstats_get_names() 689 xstats_names[xidx] = dlb2->xstats[i].name; in dlb2_eventdev_xstats_get_names() 792 struct dlb2_xstats_entry *xs = &dlb2->xstats[i]; in dlb2_eventdev_xstats_get_by_name() [all …]
|
| /f-stack/dpdk/examples/ioat/ |
| H A D | ioatfwd.c | 127 print_rawdev_stats(uint32_t dev_id, uint64_t *xstats, in print_rawdev_stats() argument 138 xstats[i]); in print_rawdev_stats() 169 uint64_t *xstats; in print_stats() local 220 xstats = malloc(sizeof(*xstats) * 2); in print_stats() 221 if (xstats == NULL) { in print_stats() 274 ids_xstats, xstats, 2); in print_stats() 276 print_rawdev_stats(dev_id, xstats, in print_stats() 280 xstats[ids_xstats[0]]; in print_stats() 282 xstats[ids_xstats[1]]; in print_stats() 308 free(xstats); in print_stats()
|
| /f-stack/dpdk/examples/bbdev_app/ |
| H A D | main.c | 589 struct rte_eth_xstat *xstats; in print_stats() local 607 xstats = calloc(len, sizeof(*xstats)); in print_stats() 608 if (xstats == NULL) in print_stats() 612 ret = rte_eth_xstats_get(port_id, xstats, len); in print_stats() 614 free(xstats); in print_stats() 622 free(xstats); in print_stats() 629 free(xstats); in print_stats() 637 if (xstats[i].value > 0) in print_stats() 641 xstats[i].value); in print_stats() 646 free(xstats); in print_stats() [all …]
|
| /f-stack/dpdk/drivers/net/netvsc/ |
| H A D | hn_ethdev.c | 774 struct rte_eth_xstat *xstats, in hn_dev_xstats_get() argument 795 xstats[count].id = count; in hn_dev_xstats_get() 796 xstats[count].value = *(const uint64_t *) in hn_dev_xstats_get() 809 xstats[count].id = count; in hn_dev_xstats_get() 810 xstats[count].value = *(const uint64_t *) in hn_dev_xstats_get() 815 ret = hn_vf_xstats_get(dev, xstats, count, n); in hn_dev_xstats_get()
|
| H A D | hn_vf.c | 497 struct rte_eth_xstat *xstats, in hn_vf_xstats_get() argument 509 xstats + offset, n - offset); in hn_vf_xstats_get() 515 xstats[i + offset].id += offset; in hn_vf_xstats_get()
|
| /f-stack/dpdk/doc/guides/nics/ |
| H A D | bnxt.rst | 602 testpmd> show port xstats (port_id) 608 // application queries the number of xstats 613 // application allocates memory for xstats 615 struct rte_eth_xstats *xstats; 617 xstats = calloc(len, sizeof(*xstats)); 619 // application retrieves xstats // names and values 621 ret = rte_eth_xstats_get(port_id, *xstats, len); 623 // application checks the xstats 625 len = rte_eth_xstats_reset(port_id); // reset the xstats 630 // retrieve xstats // no need to retrieve xstats names again [all …]
|
| /f-stack/dpdk/drivers/net/ipn3ke/ |
| H A D | ipn3ke_representor.c | 2220 (struct rte_eth_dev *ethdev, struct rte_eth_xstat *xstats, unsigned int n) in ipn3ke_rpst_xstats_get() argument 2231 if (!xstats) in ipn3ke_rpst_xstats_get() 2289 xstats[count].value = *(uint64_t *)(((char *)&hw_stats.eth) in ipn3ke_rpst_xstats_get() 2291 xstats[count].id = count; in ipn3ke_rpst_xstats_get() 2297 xstats[count].value = *(uint64_t *)(((char *)(&hw_stats)) + in ipn3ke_rpst_xstats_get() 2299 xstats[count].id = count; in ipn3ke_rpst_xstats_get() 2306 xstats[count].value = in ipn3ke_rpst_xstats_get() 2310 xstats[count].id = count; in ipn3ke_rpst_xstats_get() 2318 xstats[count].value = in ipn3ke_rpst_xstats_get() 2322 xstats[count].id = count; in ipn3ke_rpst_xstats_get()
|
| /f-stack/dpdk/drivers/net/bnx2x/ |
| H A D | bnx2x_ethdev.c | 502 bnx2x_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats, in bnx2x_dev_xstats_get() argument 516 xstats[num].value = HILO_U64( in bnx2x_dev_xstats_get() 522 xstats[num].value = in bnx2x_dev_xstats_get() 525 xstats[num].id = num; in bnx2x_dev_xstats_get()
|
| /f-stack/dpdk/drivers/net/vmxnet3/ |
| H A D | vmxnet3_ethdev.c | 84 struct rte_eth_xstat_name *xstats, 87 struct rte_eth_xstat *xstats, unsigned int n); 1056 vmxnet3_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats, in vmxnet3_dev_xstats_get() argument 1074 xstats[count].value = *(uint64_t *)(((char *)&rxq->stats) + in vmxnet3_dev_xstats_get() 1076 xstats[count].id = count; in vmxnet3_dev_xstats_get() 1088 xstats[count].value = *(uint64_t *)(((char *)&txq->stats) + in vmxnet3_dev_xstats_get() 1090 xstats[count].id = count; in vmxnet3_dev_xstats_get()
|
| /f-stack/dpdk/drivers/net/failsafe/ |
| H A D | failsafe_ops.c | 1007 struct rte_eth_xstat *xstats, in __fs_xstats_get() argument 1021 if (ret < 0 || ret > (int)n || xstats == NULL) in __fs_xstats_get() 1025 ret = rte_eth_xstats_get(PORT_ID(sdev), xstats, n); in __fs_xstats_get() 1034 xstats[j].id += count; in __fs_xstats_get() 1036 xstats += ret; in __fs_xstats_get() 1046 struct rte_eth_xstat *xstats, in fs_xstats_get() argument 1052 ret = __fs_xstats_get(dev, xstats, n); in fs_xstats_get()
|
| /f-stack/dpdk/doc/guides/prog_guide/ |
| H A D | poll_mode_drv.rst | 413 Examples of common statistics xstats strings, formatted to comply to the scheme 446 The xstats API uses the ``name``, ``id``, and ``value`` to allow performant 486 xstats API can be used to achieve this goal. 499 printf("Cannot get xstats count\n"); 509 /* Retrieve xstats names, passing NULL for IDs to return all statistics */ 517 printf("Cannot allocate memory for xstats\n"); 521 /* Getting xstats values */ 527 /* Print all xstats names and values */ 547 printf("Cannot find xstats with a given name\n"); 563 /* Getting multiple xstats values from array of IDs */ [all …]
|
| /f-stack/dpdk/drivers/net/qede/ |
| H A D | qede_ethdev.c | 392 static void qede_reset_queue_stats(struct qede_dev *qdev, bool xstats) in qede_reset_queue_stats() argument 418 if (xstats) in qede_reset_queue_stats() 1776 qede_get_xstats(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats, in qede_get_xstats() argument 1791 xstats[stat_idx].value = *(uint64_t *)(((char *)&stats) + in qede_get_xstats() 1793 xstats[stat_idx].id = stat_idx; in qede_get_xstats() 1799 xstats[stat_idx].value = in qede_get_xstats() 1802 xstats[stat_idx].id = stat_idx; in qede_get_xstats() 1807 xstats[stat_idx].value = in qede_get_xstats() 1810 xstats[stat_idx].id = stat_idx; in qede_get_xstats() 1819 xstats[stat_idx].value = *(uint64_t *) in qede_get_xstats() [all …]
|