]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/sched_ext: Add error logging for dsq creation failures in remaining schedulers
authorzhidao su <soolaugust@gmail.com>
Fri, 30 Jan 2026 10:55:11 +0000 (18:55 +0800)
committerTejun Heo <tj@kernel.org>
Sun, 1 Feb 2026 17:10:18 +0000 (07:10 -1000)
commitbd4f0822f4ecd98285208e3322ad23c2ead0c878
treebad6bc62a7f635335ca6f1de3991059c45d3b584
parent36929ebd17ae66ed3acde9056a9daf611d81a2e5
tools/sched_ext: Add error logging for dsq creation failures in remaining schedulers

Add scx_bpf_error() calls when scx_bpf_create_dsq() fails in the remaining
schedulers to improve debuggability:

- scx_simple.bpf.c: simple_init()
- scx_sdt.bpf.c: sdt_init()
- scx_cpu0.bpf.c: cpu0_init()
- scx_flatcg.bpf.c: fcg_init()

This follows the same pattern established in commit 2f8d489897ae
("sched_ext: Add error logging for dsq creation failures") for other
schedulers and ensures consistent error reporting across all schedulers.

Signed-off-by: zhidao su <suzhidao@xiaomi.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/scx_cpu0.bpf.c
tools/sched_ext/scx_flatcg.bpf.c
tools/sched_ext/scx_sdt.bpf.c
tools/sched_ext/scx_simple.bpf.c