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