[PATCH v6 13/15] graph: add stats for cross-core dispatching

Jerin Jacob jerinjacobk at gmail.com
Wed May 24 10:08:36 CEST 2023


On Tue, May 9, 2023 at 11:35 AM Zhirun Yan <zhirun.yan at intel.com> wrote:
>
> Add stats for cross-core dispatching scheduler if stats collection is
> enabled.
>
> Signed-off-by: Haiyue Wang <haiyue.wang at intel.com>
> Signed-off-by: Cunming Liang <cunming.liang at intel.com>
> Signed-off-by: Zhirun Yan <zhirun.yan at intel.com>

> diff --git a/lib/graph/rte_graph.h b/lib/graph/rte_graph.h
> index 0ac764daf8..ee6c970ca4 100644
> --- a/lib/graph/rte_graph.h
> +++ b/lib/graph/rte_graph.h
> @@ -219,6 +219,8 @@ struct rte_graph_cluster_node_stats {
>         uint64_t prev_calls;    /**< Previous number of calls. */
>         uint64_t prev_objs;     /**< Previous number of processed objs. */
>         uint64_t prev_cycles;   /**< Previous number of cycles. */
> +       uint64_t sched_objs;    /**< Previous number of scheduled objs. */
> +       uint64_t sched_fail;    /**< Previous number of failed schedule objs. */

Add comment to specify it is for mcore_dispatch model. Also make it as
anonymous union so that later we can add new item for other model.


More information about the dev mailing list