Re: [PATCH 4/7] sched_ext: Add an event, SCX_EVENT_ENQ_LOCAL_EXITING

From: Tejun Heo
Date: Thu Jan 16 2025 - 20:40:39 EST


On Fri, Jan 17, 2025 at 12:15:40AM +0900, Changwoo Min wrote:
> Add a core event, SCX_EVENT_ENQ_LOCAL_EXITING, which represents how many
> times a task is enqueued to a local DSQ when exiting if SCX_OPS_ENQ_EXITING
> is not set.
>
> Signed-off-by: Changwoo Min <changwoo@xxxxxxxxxx>
> ---
> kernel/sched/ext.c | 12 +++++++++++-
> 1 file changed, 11 insertions(+), 1 deletion(-)
>
> diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
> index 909f12a41934..094e19f5fb78 100644
> --- a/kernel/sched/ext.c
> +++ b/kernel/sched/ext.c
> @@ -1479,6 +1479,12 @@ struct scx_event_stat {
> * continued to run because there were no other tasks on the CPU.
> */
> u64 CNTD_RUN_WO_ENQ;
> +
> + /*
> + * If SCX_OPS_ENQ_EXITING is not set, the number of times that a task
> + * is dispatched to a local DSQ when exiting.
> + */
> + u64 ENQ_LOCAL_EXITING;

ENQ_SKIP_EXITING?

--
tejun