mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
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>
17 lines
418 B
C
17 lines
418 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2025 Meta Platforms, Inc. and affiliates. */
|
|
#ifndef __CGROUP_ITER_MEMCG_H
|
|
#define __CGROUP_ITER_MEMCG_H
|
|
|
|
struct memcg_query {
|
|
/* some node_stat_item's */
|
|
unsigned long nr_anon_mapped;
|
|
unsigned long nr_shmem;
|
|
unsigned long nr_file_pages;
|
|
unsigned long nr_file_mapped;
|
|
/* some vm_event_item */
|
|
unsigned long pgfault;
|
|
};
|
|
|
|
#endif /* __CGROUP_ITER_MEMCG_H */
|