Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9356503imu; Wed, 5 Dec 2018 03:32:49 -0800 (PST) X-Google-Smtp-Source: AFSGD/Uy0nTBtht6jiGOCx7MHYdqqOSp+lwq00DFdeZ4A5d/8PAczc782/BnEHDVqG9zWHiLjwgS X-Received: by 2002:a17:902:724a:: with SMTP id c10mr24428341pll.51.1544009569077; Wed, 05 Dec 2018 03:32:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544009569; cv=none; d=google.com; s=arc-20160816; b=vVkvyfZXY7ZunyeLuiA7Os6BlHuzcFfvzC14xulHlOGP8pv7qSPgyoAOkrDeECBqOz R7yGl4gktv/PZrNWdrxu+81M1LDKzrpRl1IIr3M88MMZtYRccxlqIzY83GcVQRmct2zr XQ8iOZynIDYg3Ol56/1JHhZc19HzhDQ14IpleL6h4ikFM2hzpqzJtjpcKPWR+y0slBYA Elo7TSLkBSmYHczhso/wE7X/ht1PpDd3Jum4TN2dn/i0VLcPn5T4pp18SutcMfOlcRG7 h7EiEKdRye3BYwTNdvWHZfslKE+3EPD4l2sSwg12i7QGeUvoPVVhAGNkkVtEO4IaBUKX AtMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JLhqjsfa2CquKOYmT6utM3/cei0NP7DCwshiiuRa9uk=; b=bSC3l/WeqBS854HaBszQ938DUrBFOeNxdxcRqB0N8GR3/M+yE/ndgUxzRk0/AwaKPp SZOp44dIITp9+CCaejZyD6JFv3N1XMCUpnvG7x7SU9gAgt+OG/V4fdbG/Fee3Xe48xyD WALI4Hf3HTdNRWQbFGe3sUccgGS+fZIJCjI59gjO2H1kN9W6I9VF/D4z6QnNDNLeJ/L2 4Qvl8Mct366idHLAXOgm94zAZkCQR7CJjffC6zu+kTAHKNjyjjw64L0t8Zugz12HAVbG oCYAlRvhfL4+kw7iILWPRQ1AEbcXkyXKdWlyQc6K6g+6ra8DEn4PjkxdkuA5a51FYjsj +Hlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BT2m0P8z; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t74si18380685pgc.150.2018.12.05.03.32.33; Wed, 05 Dec 2018 03:32:49 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=BT2m0P8z; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727540AbeLELal (ORCPT + 99 others); Wed, 5 Dec 2018 06:30:41 -0500 Received: from mail.skyhub.de ([5.9.137.197]:42494 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726979AbeLELal (ORCPT ); Wed, 5 Dec 2018 06:30:41 -0500 Received: from zn.tnic (p200300EC2BC0990030B9A0F23022A8BF.dip0.t-ipconnect.de [IPv6:2003:ec:2bc0:9900:30b9:a0f2:3022:a8bf]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 96E6E1EC0B69; Wed, 5 Dec 2018 12:30:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1544009439; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=JLhqjsfa2CquKOYmT6utM3/cei0NP7DCwshiiuRa9uk=; b=BT2m0P8zCuEuqwbmNVsCQ9X3Y/1cVabKr2HcdwKAl8875grp64ktRFVO7pQALx1RifhPr5 Y34i+imZ19sad+7bMoX0YBQWkwxPLVgQPlLSiSJhvzooh0dQOPa0OucShO17XeafjcXHDa K8wwtNJwyNMFaihjyjOCvGnb4fw67jg= Date: Wed, 5 Dec 2018 12:30:32 +0100 From: Borislav Petkov To: lijiang Cc: linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, akpm@linux-foundation.org, bhe@redhat.com, dyoung@redhat.com, Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH 1/2 v2] kdump: add the vmcoreinfo documentation Message-ID: <20181205113032.GF29510@zn.tnic> References: <20181202030839.29945-1-lijiang@redhat.com> <20181202030839.29945-2-lijiang@redhat.com> <20181203150809.GA4794@zn.tnic> <779dbae7-f6e2-e9e4-bdd0-0a9e6ec62487@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <779dbae7-f6e2-e9e4-bdd0-0a9e6ec62487@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 04, 2018 at 05:35:09PM +0800, lijiang wrote: > There are more people to review and improve this document together, that would > be fine. That's basically kernel development :) > Generating VMCOREINFO is easy in the first kernel, for example: > # makedumpfile -g VMCOREINFO -x vmlinux I get: $ makedumpfile -g VMCOREINFO -x vmlinux The kernel version is not supported. The makedumpfile operation may be incomplete. The vmcoreinfo is saved to VMCOREINFO. makedumpfile Completed. But the text file looks ok AFAICT. Please add that command to the documentation file. > For these two *why*, it should be easy to understand. Because user-space tools > need to know basic information, such as the symbol values, field offset, structure > size, etc. Otherwise, these tools won't know how to analyze the memory of the crash > kernel. That's clear. The question is *why* *exactly* is every piece of export needed. > For the second question 'how they are used', we can get the answer > from user-space tools, such as makedumpfile, crash tools. Therefore, > it may not need to explain any more in kernel document. On the other > hand, if we must put these contents into kernel document, i have to > say, that would be a hard task. You can put one or two sentences for each, stating what they're used for. This way, people can go and look up makedumpfile source code for further info and people trying to add new items to VMCOREINFO can look in this documentation here first to figure out whether maybe the info they need has been exported already. Thx. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.