42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
|
From 4b0bed3523a5f6c2c428d9dab3d27d4572207d52 Mon Sep 17 00:00:00 2001
|
||
|
Message-Id: <4b0bed3523a5f6c2c428d9dab3d27d4572207d52.1489471500.git.panand@redhat.com>
|
||
|
From: Pratyush Anand <panand@redhat.com>
|
||
|
Date: Thu, 2 Mar 2017 17:37:08 +0900
|
||
|
Subject: [PATCH 1/7] [PATCH v3 1/7] show_mem_usage(): calculate page offset
|
||
|
after elf load
|
||
|
|
||
|
x86_64 calculated page offset from PT_LOAD headers. Therefore call
|
||
|
get_page_offset() after get_elf_loads()
|
||
|
|
||
|
Signed-off-by: Pratyush Anand <panand@redhat.com>
|
||
|
---
|
||
|
makedumpfile.c | 6 +++---
|
||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||
|
|
||
|
diff --git a/makedumpfile-1.6.1/makedumpfile.c b/makedumpfile-1.6.1/makedumpfile.c
|
||
|
index e69b6df9a9ee..6942047199de 100644
|
||
|
--- a/makedumpfile-1.6.1/makedumpfile.c
|
||
|
+++ b/makedumpfile-1.6.1/makedumpfile.c
|
||
|
@@ -10944,15 +10944,15 @@ int show_mem_usage(void)
|
||
|
|
||
|
info->dump_level = MAX_DUMP_LEVEL;
|
||
|
|
||
|
- if (!get_page_offset())
|
||
|
- return FALSE;
|
||
|
-
|
||
|
if (!open_files_for_creating_dumpfile())
|
||
|
return FALSE;
|
||
|
|
||
|
if (!get_elf_loads(info->fd_memory, info->name_memory))
|
||
|
return FALSE;
|
||
|
|
||
|
+ if (!get_page_offset())
|
||
|
+ return FALSE;
|
||
|
+
|
||
|
if (!get_sys_kernel_vmcoreinfo(&vmcoreinfo_addr, &vmcoreinfo_len))
|
||
|
return FALSE;
|
||
|
|
||
|
--
|
||
|
2.9.3
|
||
|
|