Annotate vital static information into kmemdump: - __per_cpu_offset Information on these variables is stored into dedicated kmemdump section.
Signed-off-by: Eugen Hristev <eugen.hris...@linaro.org> --- mm/percpu.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/percpu.c b/mm/percpu.c index d9cbaee92b60..0cfe4d7818e9 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/kmemdump.h> #include <asm/cacheflush.h> #include <asm/sections.h> @@ -3342,6 +3343,8 @@ void __init setup_per_cpu_areas(void) #endif /* CONFIG_SMP */ +KMEMDUMP_VAR_CORE(__per_cpu_offset, sizeof(__per_cpu_offset)); + /* * pcpu_nr_pages - calculate total number of populated backing pages * -- 2.43.0