Annotate vital static information into meminspect: - __per_cpu_offset Information on these variables is stored into dedicated inspection section.
Signed-off-by: Eugen Hristev <[email protected]> --- mm/percpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/percpu.c b/mm/percpu.c index 81462ce5866e..cdc5b30f6a99 100644 --- a/mm/percpu.c +++ b/mm/percpu.c @@ -87,6 +87,7 @@ #include <linux/sched.h> #include <linux/sched/mm.h> #include <linux/memcontrol.h> +#include <linux/meminspect.h> #include <asm/cacheflush.h> #include <asm/sections.h> @@ -3346,6 +3347,7 @@ void __init setup_per_cpu_areas(void) #endif /* CONFIG_SMP */ +MEMINSPECT_SIMPLE_ENTRY(__per_cpu_offset); /* * pcpu_nr_pages - calculate total number of populated backing pages * -- 2.43.0
