]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: cgroup: add values_close_report helper
authorSebastian Chlad <sebastianchlad@gmail.com>
Wed, 15 Oct 2025 10:33:56 +0000 (12:33 +0200)
committerTejun Heo <tj@kernel.org>
Wed, 15 Oct 2025 15:00:49 +0000 (05:00 -1000)
commit3f9c60f4d3cc3e7f4dd7cac05011ea06d512050f
tree0a6fe99bd273a9169e370abb4c7d65eefcfb81b2
parent93a4b36ef3cf4ce5e6a7e7a7686181de76e246a1
selftests: cgroup: add values_close_report helper

Some cgroup selftests, such as test_cpu, occasionally fail by a very
small margin and if run in the CI context, it is useful to have detailed
diagnostic output to understand the deviation.

Introduce a values_close_report() helper which performs the same
comparison as values_close(), but prints detailed information when the
values differ beyond the allowed tolerance.

Signed-off-by: Sebastian Chlad <sebastian.chlad@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/cgroup/lib/include/cgroup_util.h