From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gfFDs-0008DT-DI for kexec@lists.infradead.org; Fri, 04 Jan 2019 02:28:33 +0000 Subject: Re: [PATCH 1/2 v4] kdump: add the vmcoreinfo documentation References: <20181220054044.30738-1-lijiang@redhat.com> <20181220054044.30738-2-lijiang@redhat.com> <4AE2DC15AC0B8543882A74EA0D43DBEC035656E1@BPXM09GP.gisp.nec.co.jp> From: lijiang Message-ID: Date: Fri, 4 Jan 2019 10:28:20 +0800 MIME-Version: 1.0 In-Reply-To: <4AE2DC15AC0B8543882A74EA0D43DBEC035656E1@BPXM09GP.gisp.nec.co.jp> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Kazuhito Hagio Cc: "bhe@redhat.com" , "linux-doc@vger.kernel.org" , "x86@kernel.org" , "kexec@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "mingo@redhat.com" , "bp@alien8.de" , "tglx@linutronix.de" , "dyoung@redhat.com" , "akpm@linux-foundation.org" 在 2019年01月04日 03:28, Kazuhito Hagio 写道: > Hi Lianbo, > > -----Original Message----- >> +======================= >> +What is the VMCOREINFO? >> +======================= >> + >> +VMCOREINFO is a special ELF note section. It contains various >> +information from the kernel like structure size, page size, symbol >> +values, field offsets, etc. These data are packed into an ELF note >> +section and used by user-space tools like crash and makedumpfile to >> +analyze a kernel's memory layout. >> + >> +To dump the VMCOREINFO contents, one can do: >> + >> +# makedumpfile -g VMCOREINFO -x vmlinux > > again, this command does not dump the VMCOREINFO in ELF note section. > It converts the vmlinux's debug infomation into a VMCOREINFO-like data. > So I don't think this command is suitable to introduce here. > Thank you, Kazu. As you mentioned, makedumpfile in 'devel' branch can print VMCOREINFO in /proc/kcore, can i add the following command to this document? #makedumpfile --mem-usage /proc/kcore -D >> +PG_lru|PG_private|PG_swapcache|PG_swapbacked|PG_slab| >> +PG_hwpoision|PG_head_mask >> +----------------------------------------------------- >> + >> +Page attributes. These flags are used to filter free pages. > > Some of these are not used to filter *free* pages, so > > ... used to filter various unnecessary pages. > Great. I will modify it in next post. And also merge the 'PG_buddy' and 'PG_offline' into the PG_* flag here. Many thanks. Lianbo >> +PAGE_BUDDY_MAPCOUNT_VALUE or ~PG_buddy >> +-------------------------------------- > > then, this can be merged into the one above? > >> +====== >> +x86_64 >> +====== > ... >> +PAGE_OFFLINE_MAPCOUNT_VALUE(~PG_offline) >> +---------------------------------------- > > This looks not only for x86_64, and also can be merged into > the PG_* flags? > > Thank you for your effort! > Kazu > > _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec