]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Remove kmem subtest from cgroup_iter_memcg
authorHui Zhu <zhuhui@kylinos.cn>
Tue, 3 Mar 2026 05:53:08 +0000 (13:53 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 10 Mar 2026 18:53:23 +0000 (11:53 -0700)
commita8fce027e17b0a99a8f9732f271ed505aa7a2940
treea667acaa3f969c702339478e12582e02e46212c7
parent437350df8640bf0535b74a3d8bade6f707940027
selftests/bpf: Remove kmem subtest from cgroup_iter_memcg

When cgroup.memory=nokmem is set in the kernel command line, kmem
accounting is disabled. This causes the test_kmem subtest in
cgroup_iter_memcg to fail because it expects non-zero kmem values.

Remove the kmem subtest altogether since the remaining subtests
(shmem, file, pgfault) already provide sufficient coverage for
the cgroup iter memcg functionality.

Reviewed-by: JP Kobryn <jp.kobryn@linux.dev>
Signed-off-by: Hui Zhu <zhuhui@kylinos.cn>
Link: https://lore.kernel.org/r/35fa32a019361ec26265c8a789ee31e448d4dbda.1772505399.git.zhuhui@kylinos.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/cgroup_iter_memcg.h
tools/testing/selftests/bpf/prog_tests/cgroup_iter_memcg.c
tools/testing/selftests/bpf/progs/cgroup_iter_memcg.c