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