[PATCH v3 09/26] mm/page_alloc: Annotate static information into meminspect

From: Mukesh Ojha

Date: Wed Jul 08 2026 - 01:38:20 EST


From: Eugen Hristev <ehristev@xxxxxxxxxx>

Annotate vital static information into inspection table:
- node_states

Information on these variables is stored in a dedicated meminspect
section.

Signed-off-by: Eugen Hristev <eugen.hristev@xxxxxxxxxx>
Signed-off-by: Mukesh Ojha <mukesh.ojha@xxxxxxxxxxxxxxxx>
---
mm/page_alloc.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index a63733dac659..70c5e0794efa 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -54,6 +54,7 @@
#include <linux/delayacct.h>
#include <linux/cacheinfo.h>
#include <linux/pgalloc_tag.h>
+#include <linux/meminspect.h>
#include <asm/div64.h>
#include "internal.h"
#include "page_alloc.h"
@@ -204,6 +205,7 @@ nodemask_t node_states[NR_NODE_STATES] __read_mostly = {
#endif /* NUMA */
};
EXPORT_SYMBOL(node_states);
+MEMINSPECT_SIMPLE_ENTRY(node_states);

gfp_t gfp_allowed_mask __read_mostly = GFP_BOOT_MASK;


--
2.53.0