]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
cgroup: selftests: Move memcontrol specific helpers out of common cgroup_util.c
authorSean Christopherson <seanjc@google.com>
Thu, 8 May 2025 18:46:44 +0000 (18:46 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 16 May 2025 18:45:14 +0000 (11:45 -0700)
commit3a7f9e518c6a83d54c84c101e23ffc8aa12df139
tree1c3bd709303f824521125a2cfe76301b9b85d96b
parent26dcdfa01c33b4b52fd8bd3798dc221a9de7529c
cgroup: selftests: Move memcontrol specific helpers out of common cgroup_util.c

Move a handful of helpers out of cgroup_util.c and into test_memcontrol.c
that have nothing to with cgroups in general, in anticipation of making
cgroup_util.c a generic library that can be used by other selftests.

Make read_text() and write_text() non-static so test_memcontrol.c can
use them.

Signed-off-by: James Houghton <jthoughton@google.com>
Acked-by: Michal Koutný <mkoutny@suse.com>
Link: https://lore.kernel.org/r/20250508184649.2576210-4-jthoughton@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
tools/testing/selftests/cgroup/cgroup_util.c
tools/testing/selftests/cgroup/cgroup_util.h
tools/testing/selftests/cgroup/test_memcontrol.c