| /dpdk/drivers/net/mlx5/ |
| H A D | mlx5_stats.c | 43 uint64_t counters[n]; in mlx5_xstats_get() local 56 ret = mlx5_os_read_dev_counters(dev, counters); in mlx5_xstats_get() 65 stats[i].value = (counters[i] - in mlx5_xstats_get() 76 (counters[i] - xstats_ctrl->base[i]); in mlx5_xstats_get() 230 uint64_t *counters; in mlx5_xstats_reset() local 241 counters = mlx5_malloc(MLX5_MEM_SYS, sizeof(*counters) * in mlx5_xstats_reset() 244 if (!counters) { in mlx5_xstats_reset() 251 ret = mlx5_os_read_dev_counters(dev, counters); in mlx5_xstats_reset() 255 mlx5_free(counters); in mlx5_xstats_reset() 259 xstats_ctrl->base[i] = counters[i]; in mlx5_xstats_reset() [all …]
|
| H A D | mlx5_flow_verbs.c | 230 cnt = TAILQ_FIRST(&pool->counters[0]); in flow_verbs_counter_new() 269 TAILQ_REMOVE(&pool->counters[0], cnt, next); in flow_verbs_counter_new() 280 TAILQ_INSERT_HEAD(&pool->counters[0], cnt, next); in flow_verbs_counter_new() 308 TAILQ_INSERT_HEAD(&pool->counters[0], cnt, next); in flow_verbs_counter_release() 329 uint64_t counters[2] = {0, 0}; in flow_verbs_counter_query() local 337 .out = counters, in flow_verbs_counter_query() 345 RTE_DIM(counters), in flow_verbs_counter_query() 356 qc->hits = counters[0] - cnt->hits; in flow_verbs_counter_query() 357 qc->bytes = counters[1] - cnt->bytes; in flow_verbs_counter_query() 359 cnt->hits = counters[0]; in flow_verbs_counter_query() [all …]
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_mae_counter.c | 83 struct sfc_mae_counters *counters = ®->counters; in sfc_mae_counter_enable() local 102 if (mae_counter.id >= counters->n_mae_counters) { in sfc_mae_counter_enable() 115 p = &counters->mae_counters[mae_counter.id]; in sfc_mae_counter_enable() 154 struct sfc_mae_counters *counters = ®->counters; in sfc_mae_counter_disable() local 168 p = &counters->mae_counters[counter->mae_id.id]; in sfc_mae_counter_disable() 192 struct sfc_mae_counters *counters, in sfc_mae_counter_increment() argument 371 &counter_registry->counters, in sfc_mae_parse_counter_packet() 679 if (counters->mae_counters == NULL) { in sfc_mae_counters_init() 686 counters->n_mae_counters = nb_counters_max; in sfc_mae_counters_init() 696 rte_free(counters->mae_counters); in sfc_mae_counters_fini() [all …]
|
| H A D | sfc_mae_counter.h | 41 int sfc_mae_counters_init(struct sfc_mae_counters *counters, 43 void sfc_mae_counters_fini(struct sfc_mae_counters *counters); 48 int sfc_mae_counter_get(struct sfc_mae_counters *counters,
|
| H A D | sfc_mae.c | 74 sfc_mae_counters_fini(®istry->counters); in sfc_mae_counter_registry_fini() 879 struct sfc_mae_counter_id *counters, in sfc_mae_counters_enable() argument 898 counters[0].mae_id.id, rte_strerror(rc)); in sfc_mae_counters_enable() 903 &counters[0].mae_id); in sfc_mae_counters_enable() 906 counters[0].mae_id.id, rte_strerror(rc)); in sfc_mae_counters_enable() 922 struct sfc_mae_counter_id *counters, in sfc_mae_counters_disable() argument 1004 if (action_set->counters == NULL) { in sfc_mae_action_set_add() 1012 action_set->counters[i].mae_id.id = in sfc_mae_action_set_add() 1083 rte_free(action_set->counters); in sfc_mae_action_set_del() 1098 struct sfc_mae_counter_id *counters = action_set->counters; in sfc_mae_action_set_enable() local [all …]
|
| H A D | sfc_mae.h | 89 struct sfc_mae_counter_id *counters; member 153 struct sfc_mae_counters counters; member
|
| /dpdk/doc/guides/contributing/ |
| H A D | design.rst | 88 When this flag is set, all the counters supported by current library are 99 counters is turned on or off for the current library. In practical terms, this 101 statistics counters and the statistics related API functions are always built 105 When the collection of statistics counters for the current library is turned 114 an application to monitor the library-level run-time events. Typical counters 119 have to be spent out of the application budget and the counters collected by 123 statistics counters should be turned on or off for each library individually. 125 Library-level statistics counters can be relevant or not for specific 128 * For Application A, counters maintained by Library X are always relevant and 152 counters collection turned on. [all …]
|
| /dpdk/drivers/crypto/dpaa2_sec/mc/ |
| H A D | dpseci.c | 514 struct dpseci_sec_counters *counters) in dpseci_get_sec_counters() argument 532 counters->dequeued_requests = in dpseci_get_sec_counters() 534 counters->ob_enc_requests = le64_to_cpu(rsp_params->ob_enc_requests); in dpseci_get_sec_counters() 535 counters->ib_dec_requests = le64_to_cpu(rsp_params->ib_dec_requests); in dpseci_get_sec_counters() 536 counters->ob_enc_bytes = le64_to_cpu(rsp_params->ob_enc_bytes); in dpseci_get_sec_counters() 537 counters->ob_prot_bytes = le64_to_cpu(rsp_params->ob_prot_bytes); in dpseci_get_sec_counters() 538 counters->ib_dec_bytes = le64_to_cpu(rsp_params->ib_dec_bytes); in dpseci_get_sec_counters() 539 counters->ib_valid_bytes = le64_to_cpu(rsp_params->ib_valid_bytes); in dpseci_get_sec_counters()
|
| H A D | fsl_dpseci.h | 331 struct dpseci_sec_counters *counters);
|
| /dpdk/drivers/vdpa/mlx5/ |
| H A D | mlx5_vdpa_virtq.c | 262 if (!virtq->counters) in mlx5_vdpa_virtq_setup() 263 virtq->counters = mlx5_devx_cmd_create_virtio_q_counters in mlx5_vdpa_virtq_setup() 265 if (!virtq->counters) { in mlx5_vdpa_virtq_setup() 270 attr.counters_obj_id = virtq->counters->id; in mlx5_vdpa_virtq_setup() 591 if (!virtq->counters) { in mlx5_vdpa_virtq_stats_get() 596 ret = mlx5_devx_cmd_query_virtio_q_counters(virtq->counters, attr); in mlx5_vdpa_virtq_stats_get() 647 if (virtq->counters == NULL) /* VQ not enabled. */ in mlx5_vdpa_virtq_stats_reset() 649 ret = mlx5_devx_cmd_query_virtio_q_counters(virtq->counters, in mlx5_vdpa_virtq_stats_reset()
|
| H A D | mlx5_vdpa.h | 85 struct mlx5_devx_obj *counters; member
|
| H A D | mlx5_vdpa.c | 689 if (!priv->virtqs[i].counters) in mlx5_vdpa_release_dev_resources() 691 claim_zero(mlx5_devx_cmd_destroy(priv->virtqs[i].counters)); in mlx5_vdpa_release_dev_resources()
|
| /dpdk/drivers/common/mlx5/linux/ |
| H A D | mlx5_glue.c | 367 mlx5_glue_destroy_counters(struct ibv_counters *counters) in mlx5_glue_destroy_counters() argument 370 (void)counters; in mlx5_glue_destroy_counters() 373 return ibv_destroy_counters(counters); in mlx5_glue_destroy_counters() 378 mlx5_glue_attach_counters(struct ibv_counters *counters, in mlx5_glue_attach_counters() argument 383 (void)counters; in mlx5_glue_attach_counters() 388 return ibv_attach_counters_point_flow(counters, attr, flow); in mlx5_glue_attach_counters() 393 mlx5_glue_query_counters(struct ibv_counters *counters, in mlx5_glue_query_counters() argument 399 (void)counters; in mlx5_glue_query_counters() 405 return ibv_read_counters(counters, counters_value, ncounters, flags); in mlx5_glue_query_counters()
|
| H A D | mlx5_glue.h | 222 int (*destroy_counters)(struct ibv_counters *counters); 223 int (*attach_counters)(struct ibv_counters *counters, 226 int (*query_counters)(struct ibv_counters *counters,
|
| /dpdk/doc/guides/prog_guide/ |
| H A D | profile_app.rst | 14 Intel processors provide performance counters to monitor events. 21 The main situations that should be monitored through event counters are: 56 The ARM64 architecture provide performance counters to monitor events. The
|
| H A D | traffic_metering_and_policing.rst | 48 packet. Statistics counters are maintained for MTR object, as configured. 65 * Statistics: The set of counters maintained for each MTR object is
|
| H A D | event_ethernet_rx_adapter.rst | 154 The ``rte_event_eth_rx_adapter_stats_get()`` function reports counters defined 173 adapter queue counters defined in struct ``rte_event_eth_rx_adapter_queue_stats``.
|
| /dpdk/drivers/net/bnx2x/ |
| H A D | bnx2x_stats.c | 851 struct stats_counter *counters = &sc->fw_stats_data->storm_counters; in bnx2x_storm_stats_validate_counters() local 861 if (le16toh(counters->xstats_counter) != cur_stats_counter) { in bnx2x_storm_stats_validate_counters() 865 le16toh(counters->xstats_counter), sc->stats_counter); in bnx2x_storm_stats_validate_counters() 869 if (le16toh(counters->ustats_counter) != cur_stats_counter) { in bnx2x_storm_stats_validate_counters() 873 le16toh(counters->ustats_counter), sc->stats_counter); in bnx2x_storm_stats_validate_counters() 877 if (le16toh(counters->cstats_counter) != cur_stats_counter) { in bnx2x_storm_stats_validate_counters() 881 le16toh(counters->cstats_counter), sc->stats_counter); in bnx2x_storm_stats_validate_counters() 885 if (le16toh(counters->tstats_counter) != cur_stats_counter) { in bnx2x_storm_stats_validate_counters() 889 le16toh(counters->tstats_counter), sc->stats_counter); in bnx2x_storm_stats_validate_counters()
|
| /dpdk/examples/pipeline/examples/ |
| H A D | meter.spec | 9 ; The "meter stats" CLI command can be used to read the packet and byte statistics counters of any
|
| /dpdk/drivers/net/softnic/ |
| H A D | rte_eth_softnic_meter.c | 861 struct rte_table_action_mtr_counters counters; in pmd_mtr_stats_read() local 895 &counters, in pmd_mtr_stats_read() 911 &counters.stats[0], in pmd_mtr_stats_read()
|
| /dpdk/doc/guides/vdpadevs/ |
| H A D | mlx5.rst | 117 removed. User can reset counters by calling function rte_vdpa_reset_stats().
|
| /dpdk/doc/guides/nics/ |
| H A D | sfc_efx.rst | 438 counters are treated responsibly. 443 counters are treated responsibly. 446 mbufs, disallows multiple mempools and neglects mbuf reference counters.
|
| /dpdk/doc/guides/sample_app_ug/ |
| H A D | rxtx_callbacks.rst | 125 transmitted the average cycle count per packet is printed out and the counters
|
| /dpdk/drivers/net/enic/ |
| H A D | enic_fm_flow.c | 156 SLIST_HEAD(enic_free_counters, enic_fm_counter) counters; 2276 SLIST_INSERT_HEAD(&fm->counters, fm_flow->counter, next); in enic_fm_counter_free() 2309 SLIST_INSERT_HEAD(&fm->counters, ctrs, next); in enic_fm_more_counters() 2345 if (SLIST_EMPTY(&fm->counters)) { in enic_fm_counter_alloc() 2352 c = SLIST_FIRST(&fm->counters); in enic_fm_counter_alloc() 2353 SLIST_REMOVE_HEAD(&fm->counters, next); in enic_fm_counter_alloc() 3166 SLIST_INIT(&fm->counters); in enic_fm_init_counters()
|
| /dpdk/drivers/crypto/dpaa2_sec/ |
| H A D | dpaa2_sec_dpseci.c | 3921 struct dpseci_sec_counters counters = {0}; in dpaa2_sec_stats_get() local 3949 &counters); in dpaa2_sec_stats_get() 3961 counters.dequeued_requests, in dpaa2_sec_stats_get() 3962 counters.ob_enc_requests, in dpaa2_sec_stats_get() 3963 counters.ib_dec_requests, in dpaa2_sec_stats_get() 3964 counters.ob_enc_bytes, in dpaa2_sec_stats_get() 3965 counters.ob_prot_bytes, in dpaa2_sec_stats_get() 3966 counters.ib_dec_bytes, in dpaa2_sec_stats_get() 3967 counters.ib_valid_bytes); in dpaa2_sec_stats_get()
|