From 883c9e8104cfb522a227eeddd95f8077cb77d286 Mon Sep 17 00:00:00 2001 From: Tao Cui Date: Wed, 14 Oct 2026 21:13:21 +0800 Subject: [PATCH] sched_ext: Add SCX_ECODE_RSN_CGROUP_OFFLINE to user_exit_info.h The kernel-side scx_exit_code enum gained SCX_ECODE_RSN_CGROUP_OFFLINE in ebeca1f930ea ("sched_ext: Introduce cgroup sub-sched support"), which exits a scheduler when its cgroup goes offline, but the tools-side user_exit_info.h was not updated. Userspace cannot decode exit codes carrying this reason. Add the missing enum value. Signed-off-by: Tao Cui Signed-off-by: Tejun Heo --- tools/sched_ext/include/scx/user_exit_info.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/sched_ext/include/scx/user_exit_info.h b/tools/sched_ext/include/scx/user_exit_info.h index 56a02b549aef..cf27ac2447ef 100644 --- a/tools/sched_ext/include/scx/user_exit_info.h +++ b/tools/sched_ext/include/scx/user_exit_info.h @@ -52,6 +52,7 @@ enum scx_exit_code { /* Reasons */ SCX_ECODE_RSN_HOTPLUG = 1LLU << 32, + SCX_ECODE_RSN_CGROUP_OFFLINE = 2LLU << 32, /* Actions */ SCX_ECODE_ACT_RESTART = 1LLU << 48, -- knotmirror 0.0.1