Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp358028imu; Thu, 3 Jan 2019 22:05:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN7q0SvsLJPo6HQB86fqQCwJwIbzt2TnEB4fGd+0p0/nHCVxIOaoCl0LARZ+PJ0PX+MErqPt X-Received: by 2002:a17:902:541:: with SMTP id 59mr50549219plf.88.1546581913242; Thu, 03 Jan 2019 22:05:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546581913; cv=none; d=google.com; s=arc-20160816; b=Mdb/61J8ABUrTlUnwP3L6I5bPIv95PAc7Mi7QEv+69IA2r74iH0K3WA1ywxhCtcHN4 LbkQDsGY0UxlAogBcbDyeJrjovacLcXHzCIjBtxVPplYTbh6zRXTUZLbKeA8BuPY175H nrcHQxEvy96AUNrgHyTlREUO+XaP2I5ZfewQpII+3SRGkYOJDWQkvjmYMH7CkDWUM8v6 WtQywgDsN+VyTMryayT8mL0oG5DGm0dpk1VVKRF2yzUCH0vCc31bICKFmAqHHGfqAyV8 DK980kv+i2Qs9E2yP5B4SiQBCIZyfhXBZ2FOEcUE5fArbw3TatXKxD7NWCkMfiPAfbq7 wLcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=BZ8i3IC5ovVDbjsD58S2Rxzf8rYWHK+AMbEdKVCsUpI=; b=qO20XrWNCy56Nqaxz3uK+irba9p8mEn2BGdcqcBDM/0a9kT+2G4FD7VYptIYOCMC9K FxG3u43EAla4BajHZA+NsVMn5O16Jh1eqyizjAbU2P+u27Gh8XSro/D0ScTBzQyqAb9d pJ/Lu6Raz96Aq8Bushc16Pl5eD1MUHDXPWTnZ8vPd/8wyWu8C6M71I+iu950kCIHc4Me O4nWPF3/9sSk8KqKPE1yRv37iOKuO07AQMoRh1PIt4ar30auPQe+qojLbQY+91ovHhf0 fdionMh2gmlsWeoZHfxoQc5DgN2UV1mg4Hg8+soJIo1GQGt3EXQKI4K3QtUU52p60AlB IWVQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n137si31574911pfd.216.2019.01.03.22.04.58; Thu, 03 Jan 2019 22:05:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbfADC2b (ORCPT + 99 others); Thu, 3 Jan 2019 21:28:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59688 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726163AbfADC2b (ORCPT ); Thu, 3 Jan 2019 21:28:31 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4B81258E27; Fri, 4 Jan 2019 02:28:31 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-85.pek2.redhat.com [10.72.12.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 47D595C223; Fri, 4 Jan 2019 02:28:23 +0000 (UTC) Subject: Re: [PATCH 1/2 v4] kdump: add the vmcoreinfo documentation To: Kazuhito Hagio Cc: "bhe@redhat.com" , "linux-doc@vger.kernel.org" , "x86@kernel.org" , "kexec@lists.infradead.org" , "mingo@redhat.com" , "bp@alien8.de" , "tglx@linutronix.de" , "dyoung@redhat.com" , "akpm@linux-foundation.org" , "linux-kernel@vger.kernel.org" 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 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <4AE2DC15AC0B8543882A74EA0D43DBEC035656E1@BPXM09GP.gisp.nec.co.jp> Content-Type: text/plain; charset=iso-2022-jp Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 04 Jan 2019 02:28:31 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 > >