From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Kiper Subject: [PATCH v2 4/7] xen: Enforce page size only when xen-syms file is used Date: Tue, 16 Jul 2013 14:32:06 +0200 Message-ID: <1373977929-4253-5-git-send-email-daniel.kiper@oracle.com> References: <1373977929-4253-1-git-send-email-daniel.kiper@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1373977929-4253-1-git-send-email-daniel.kiper-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" Errors-To: kexec-bounces+glkk-kexec=m.gmane.org-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org To: andrew.cooper3-Sxgqhf6Nn4DQT0dZR+AlfA@public.gmane.org, kumagai-atsushi-biTfD1RFvDe45+QrQBaojngSJqDPrsil@public.gmane.org, kexec-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, xen-devel-GuqFBffKawuULHF6PoxzQEEOCMrvLtNR@public.gmane.org Cc: Daniel Kiper List-Id: xen-devel@lists.xenproject.org Enforce page size only when xen-syms file is used. Otherwise its size could be read from VMCOREINFO file or /proc/vmcore file. Signed-off-by: Daniel Kiper --- makedumpfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index b42565c..b4abbe5 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -7324,8 +7324,6 @@ initial_xen(void) #endif if (!init_xen_crash_info()) return FALSE; - if (!fallback_to_current_page_size()) - return FALSE; /* * Get the debug information for analysis from the vmcoreinfo file */ @@ -7340,6 +7338,8 @@ initial_xen(void) set_dwarf_debuginfo("xen-syms", NULL, info->name_xen_syms, info->fd_xen_syms); + if (!fallback_to_current_page_size()) + return FALSE; if (!get_symbol_info_xen()) return FALSE; if (!get_structure_info_xen()) -- 1.7.10.4