summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/cgroup_iter_memcg.h
blob: 3f59b127943baa4b0fe611422493e0820b3c42cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* 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 memcg_stat_item */
	unsigned long memcg_kmem;
	/* some vm_event_item */
	unsigned long pgfault;
};

#endif /* __CGROUP_ITER_MEMCG_H */