[PATCH v9 14/17] graph: add stats for cross-core dispatching

Jerin Jacob jerinjacobk at gmail.com
Wed Jun 7 10:20:13 CEST 2023


On Wed, Jun 7, 2023 at 9:30 AM Zhirun Yan <zhirun.yan at intel.com> wrote:
>
> Add stats for cross-core dispatching scheduler if stats collection is

Use mcore dispatch model.(subject as well). be consistent in name usage.

> diff --git a/lib/graph/rte_graph_worker_common.h b/lib/graph/rte_graph_worker_common.h
> index 9088d4c173..3fd3f7622f 100644
> --- a/lib/graph/rte_graph_worker_common.h
> +++ b/lib/graph/rte_graph_worker_common.h
> @@ -110,6 +110,8 @@ struct rte_node {
>                         unsigned int lcore_id;  /**< Node running lcore. */
>                 } dispatch;
>         };
> +       uint64_t total_sched_objs; /**< Number of objects scheduled. */
> +       uint64_t total_sched_fail; /**< Number of scheduled failure. */

Move under dispatch_stats union.

With above change:
Acked-by: Jerin Jacob <jerinj at marvell.com>

>         /* Fast path area  */
>  #define RTE_NODE_CTX_SZ 16
>         uint8_t ctx[RTE_NODE_CTX_SZ] __rte_cache_aligned; /**< Node Context. */
> --
> 2.37.2
>


More information about the dev mailing list