Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp143560imu; Thu, 3 Jan 2019 16:03:29 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Euygg+225J/I3A99Zz+mCrgZR9ggkQNDTGis49T1aP4J1Nw88+Up/Dl0vYlTcwO6NJwpV X-Received: by 2002:a63:181c:: with SMTP id y28mr18287768pgl.75.1546560209252; Thu, 03 Jan 2019 16:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546560209; cv=none; d=google.com; s=arc-20160816; b=c6LGR+XFDWjEgj/fs/AXP8a1FRYgkp7ogu4bOorPM/vMWznR2gveZlnYNc2QoQhwCE +bX+kVZFYLQT5A9fwIJuH32f7SVdWXyfXKiPS39bIt18e+Z2/yqn8L6+1KqQLTwpxXMC sEztFn/RN0BV7pk0yaOWwnbXiMdDHVojxucBCBbzMIlEMMyui6A6AWbmPGD2r2yfINQS jMlAnq9BK8Tisc+R0tEnyGLRVYk4S+yrV/ztByxwNOjpqGYXA/bA+hZwZwL4W5mFjkwD iCffSJJQ+ekW/9fYBPkFyrVqz7B2rqMsDiroJIwfyBoolKQGXSbroMdhX9hSNHDdTOXf 7s5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=G4jsXZ/ZSl7XefdJJEnytBwwvawYQiZO8D5si7prZ1Y=; b=k2pCERo1n2/7a3P0qvp0b5O0dpo9onib1zlRqfNIFHI/xbHYx/7UggaQny5HRP/fol S53nnEThEqmyizLCSV9SM+xTwby40sw4VaDAgJp5DmgB0uoY2LgpVVS5duqQk8/Y9mHY sB2ZQX9fCnqr6VoawSFoN4470QqVnNnvGYrFi1PHV8a+oAY7zT8AbvnvoBJvnny8uDM6 bUWe/tbCZde4MPP0MjCrcHvyoJW4mC0XSRKup5rG4xP41ua1nkg3dGOu3iOUJVNwz4C7 EHTGGenOj7BT0syqik/aMmxeyXno1b6BOmVn23+Skk1uYEOCADM1f1qitJbyufRaWhfD eIVg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 187si39803741pfv.238.2019.01.03.16.03.13; Thu, 03 Jan 2019 16:03:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727377AbfACTcj convert rfc822-to-8bit (ORCPT + 99 others); Thu, 3 Jan 2019 14:32:39 -0500 Received: from tyo162.gate.nec.co.jp ([114.179.232.162]:55035 "EHLO tyo162.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727342AbfACTcj (ORCPT ); Thu, 3 Jan 2019 14:32:39 -0500 Received: from mailgate01.nec.co.jp ([114.179.233.122]) by tyo162.gate.nec.co.jp (8.15.1/8.15.1) with ESMTPS id x03JVrD6006770 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 4 Jan 2019 04:31:53 +0900 Received: from mailsv01.nec.co.jp (mailgate-v.nec.co.jp [10.204.236.94]) by mailgate01.nec.co.jp (8.15.1/8.15.1) with ESMTP id x03JVrqN032082; Fri, 4 Jan 2019 04:31:53 +0900 Received: from mail02.kamome.nec.co.jp (mail02.kamome.nec.co.jp [10.25.43.5]) by mailsv01.nec.co.jp (8.15.1/8.15.1) with ESMTP id x03JVrwa020740; Fri, 4 Jan 2019 04:31:53 +0900 Received: from bpxc99gp.gisp.nec.co.jp ([10.38.151.136] [10.38.151.136]) by mail03.kamome.nec.co.jp with ESMTP id BT-MMP-1172895; Fri, 4 Jan 2019 04:28:16 +0900 Received: from BPXM09GP.gisp.nec.co.jp ([10.38.151.201]) by BPXC08GP.gisp.nec.co.jp ([10.38.151.136]) with mapi id 14.03.0319.002; Fri, 4 Jan 2019 04:28:15 +0900 From: Kazuhito Hagio To: Lianbo Jiang 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" Subject: RE: [PATCH 1/2 v4] kdump: add the vmcoreinfo documentation Thread-Topic: [PATCH 1/2 v4] kdump: add the vmcoreinfo documentation Thread-Index: AQHUmCarLJirG+8GGUKf+iqFxfsfO6WclVbw Date: Thu, 3 Jan 2019 19:28:14 +0000 Message-ID: <4AE2DC15AC0B8543882A74EA0D43DBEC035656E1@BPXM09GP.gisp.nec.co.jp> References: <20181220054044.30738-1-lijiang@redhat.com> <20181220054044.30738-2-lijiang@redhat.com> In-Reply-To: <20181220054044.30738-2-lijiang@redhat.com> Accept-Language: ja-JP, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [143.101.133.166] Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-TM-AS-MML: disable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > +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. > +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