summaryrefslogtreecommitdiff
path: root/kernel/fail_function.c
diff options
context:
space:
mode:
authorRen Tamura <ren.tamura.oss@gmail.com>2026-09-30 15:03:24 +0900
committerTejun Heo <tj@kernel.org>2026-09-30 13:37:15 -1000
commit7b56cc82e5f94ef428c58666c9edd6c7f33e5691 (patch)
treede8cfdb6db92492e1f6176b55f4b3c0a0e048c4a /kernel/fail_function.c
parent5ffe20411787dd9947a35669ef8cb9484053efcf (diff)
downloadlinux-next-7b56cc82e5f94ef428c58666c9edd6c7f33e5691.tar.gz
linux-next-7b56cc82e5f94ef428c58666c9edd6c7f33e5691.zip
selftests: cgroup: Enable the cpu controller in test_cpu
test_cpu uses cg_read_strstr() to check for "cpu" in the root cgroup's cgroup.subtree_control. The substring also matches "cpuset", so a hierarchy with only cpuset enabled skips writing "+cpu" during setup. The tests then run without the required controller enabled and report failures. When cpu is unavailable in that hierarchy, the suite also reports failures instead of skipping. Always write "+cpu" during setup and skip if the write fails. Enabling a controller that is already enabled is a no-op, so a separate presence check is unnecessary. This requires write access to cgroup.subtree_control even when cpu is already enabled. Assisted-by: LLM Signed-off-by: Ren Tamura <ren.tamura.oss@gmail.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions