[PATCH v4 3/5] graph: add stats for node specific errors
Robin Jarry
rjarry at redhat.com
Fri Oct 11 11:54:06 CEST 2024
Hi Pavan,
, Aug 16, 2024 at 17:09:
> From: Pavan Nikhilesh <pbhagavatula at marvell.com>
>
> Add support for retrieving/printing stats for node specific
> errors using rte_graph_cluster_stats_get().
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
> ---
[snip]
> diff --git a/lib/graph/rte_graph.h b/lib/graph/rte_graph.h
> index b28143d737..12b6461cf5 100644
> --- a/lib/graph/rte_graph.h
> +++ b/lib/graph/rte_graph.h
> @@ -223,6 +223,10 @@ struct __rte_cache_aligned rte_graph_cluster_node_stats {
>
> uint64_t realloc_count; /**< Realloc count. */
>
> + uint8_t node_error_cntrs; /**< Number of Node error counters. */
> + char (*node_error_desc)[RTE_NODE_ERROR_DESC_SIZE]; /**< Names of the Node error counters. */
Why do you need the parentheses here?
> + uint64_t *node_error_count; /**< Total error count per each error. */
The node_ prefix is redundant here. Can you use something shorter?
uint8_t errors_num; /**< Number of Node error counters. */
char (*errors_desc)[RTE_NODE_ERROR_DESC_SIZE];
uint64_t *errors_value;
Thanks!
More information about the dev
mailing list