On Tue, May 9, 2023 at 11:35 AM Zhirun Yan <zhirun....@intel.com> wrote: > > Add stats for cross-core dispatching scheduler if stats collection is > enabled. > > Signed-off-by: Haiyue Wang <haiyue.w...@intel.com> > Signed-off-by: Cunming Liang <cunming.li...@intel.com> > Signed-off-by: Zhirun Yan <zhirun....@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.