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

From: Changwoo Min
Date: Fri Jan 17 2025 - 02:13:07 EST


Hello,

On 25. 1. 17. 10:40, Tejun Heo wrote:
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?

Will change it as suggested.

Regards,
Changwoo Min