Blame SOURCES/kexec-tools-2.0.15-makedumpfile-x86_64-Take-care-of-init_level4_pgt-rename-.patch

cf4a81
From 64bd5db6f90ec5bb6622273fa5ee4cb80b172ade Mon Sep 17 00:00:00 2001
cf4a81
From: Pratyush Anand <panand@redhat.com>
cf4a81
Date: Fri, 4 Aug 2017 10:12:17 +0900
cf4a81
Subject: [PATCH] [PATCH v2] x86_64: Take care of init_level4_pgt rename in
cf4a81
 kernel
cf4a81
cf4a81
* Required for kernel 4.13
cf4a81
cf4a81
Following commit renamed init_level4_pgt to init_top_pgt in kernel.
cf4a81
cf4a81
commit 65ade2f872b474fa8a04c2d397783350326634e6
cf4a81
Author: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
cf4a81
Date:   Tue Jun 6 14:31:27 2017 +0300
cf4a81
cf4a81
    x86/boot/64: Rename init_level4_pgt and early_level4_pgt
cf4a81
cf4a81
This patch takes care of above kernel modification in makedumpfile.
cf4a81
cf4a81
Signed-off-by: Pratyush Anand <panand@redhat.com>
cf4a81
---
cf4a81
 makedumpfile.c | 4 ++++
cf4a81
 1 file changed, 4 insertions(+)
cf4a81
cf4a81
diff --git a/makedumpfile-1.6.2/makedumpfile.c b/makedumpfile-1.6.2/makedumpfile.c
cf4a81
index f85003a..30230a1 100644
cf4a81
--- a/makedumpfile-1.6.2/makedumpfile.c
cf4a81
+++ b/makedumpfile-1.6.2/makedumpfile.c
cf4a81
@@ -1486,6 +1486,8 @@ get_symbol_info(void)
cf4a81
 	SYMBOL_INIT(_stext, "_stext");
cf4a81
 	SYMBOL_INIT(swapper_pg_dir, "swapper_pg_dir");
cf4a81
 	SYMBOL_INIT(init_level4_pgt, "init_level4_pgt");
cf4a81
+	if (SYMBOL(init_level4_pgt) == NOT_FOUND_SYMBOL)
cf4a81
+		SYMBOL_INIT(init_level4_pgt, "init_top_pgt");
cf4a81
 	SYMBOL_INIT(vmlist, "vmlist");
cf4a81
 	SYMBOL_INIT(vmap_area_list, "vmap_area_list");
cf4a81
 	SYMBOL_INIT(node_online_map, "node_online_map");
cf4a81
@@ -2500,6 +2502,8 @@ read_vmcoreinfo(void)
cf4a81
 	READ_SYMBOL("_stext", _stext);
cf4a81
 	READ_SYMBOL("swapper_pg_dir", swapper_pg_dir);
cf4a81
 	READ_SYMBOL("init_level4_pgt", init_level4_pgt);
cf4a81
+	if (SYMBOL(init_level4_pgt) == NOT_FOUND_SYMBOL)
cf4a81
+		READ_SYMBOL("init_top_pgt", init_level4_pgt);
cf4a81
 	READ_SYMBOL("vmlist", vmlist);
cf4a81
 	READ_SYMBOL("vmap_area_list", vmap_area_list);
cf4a81
 	READ_SYMBOL("node_online_map", node_online_map);
cf4a81
-- 
cf4a81
2.7.4
cf4a81