Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9535010imu; Wed, 5 Dec 2018 06:24:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/U56zaRsIKv1OILzibceqO+uYlrScg5kH0gFp3ISalPYWYhH61E4EWfNo6pCj2z8wGykZte X-Received: by 2002:a17:902:3283:: with SMTP id z3mr24836576plb.76.1544019859371; Wed, 05 Dec 2018 06:24:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544019859; cv=none; d=google.com; s=arc-20160816; b=ztB+r1GxqIbjPdl9sEj47Bcazc1NH2fpzVCmZ0KDNGL+0EtSFnUp4s1ogLz0rjRg+S trrdqtIbCpRiNwl2UqSoTGKV8Gj3DCfSiPPEIXiR9L/6nlNOIgA2uqFlXiAXTdQkA+HI WG5mnnmVdQ7E55ApenG4w6xdqMzwXW+krQWG4JgZwseJy37dI2JIYTjSGYyQkCR/0ePQ O1/S2AqyRISH8jnCuJh7QGWp+9pdgsg5oo2NHQmK3KyzU5zHjfoOoveVRI5nR9cNGFgh IDCBk5XKUnKRuDqebzVIYMsD32geNPbzUSpQm8hT/fsoERtrpR2iZzDw4LR2xU6ZL+5f TnkA== 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=HWDWf9IN58oSUsfm8e+FrSaFlqh/Z/tnLEn8OkMC+Yo=; b=wveONeQ8cchZ+WFGJ/NdkImNU3oRZMd4uxn/H1HKV6SyuG4yPcPg0xg48TSjoCCz9g XUDg/hok6UPprfSLJNHebqOFGXbzf/ExISmKvV9pCCZifGA8oPcd5g6xxwiGC16eeoVe Ksx/3pdhsFjLcV08ADvjb4EX7npJaDF8421sP6zdS+GmiFdQcqMZQbjLJ4DVnM+qDGVY 6bemSVP7513mZV9zkYqS4S4Zk2qHj2K2aegmL7WcxOus7gSOXaBrPWeuJ3meGXj8wWW9 EOaHm5+UcUgTlVYyTCkmAlGQOUbLXUFyHJ9EveIGWuhnGAGmQI89Bfj4G4CGRwqE7K/E MXPQ== 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 206si18480203pga.240.2018.12.05.06.24.04; Wed, 05 Dec 2018 06:24:19 -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 S1727763AbeLEOWA (ORCPT + 99 others); Wed, 5 Dec 2018 09:22:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:24339 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbeLEOWA (ORCPT ); Wed, 5 Dec 2018 09:22:00 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C7B59653C4; Wed, 5 Dec 2018 14:21:59 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-56.pek2.redhat.com [10.72.12.56]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 870C06014F; Wed, 5 Dec 2018 14:21:49 +0000 (UTC) Subject: Re: [PATCH 1/2 v2] kdump: add the vmcoreinfo documentation To: Dave Young Cc: Borislav Petkov , 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, Jonathan Corbet , linux-doc@vger.kernel.org, Kazuhito Hagio References: <20181202030839.29945-1-lijiang@redhat.com> <20181202030839.29945-2-lijiang@redhat.com> <20181203150809.GA4794@zn.tnic> <779dbae7-f6e2-e9e4-bdd0-0a9e6ec62487@redhat.com> <20181205101653.GA6940@dhcp-128-65.nay.redhat.com> From: lijiang Message-ID: <72c311b4-1946-0bcf-54d9-9fcd7f6e630c@redhat.com> Date: Wed, 5 Dec 2018 22:21:46 +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: <20181205101653.GA6940@dhcp-128-65.nay.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 05 Dec 2018 14:22:00 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2018年12月05日 18:16, Dave Young 写道: >>>> +init_uts_ns >>>> +=========== >>>> +This is the UTS namespace, which is used to isolate two specific elements >>>> +of the system that relate to the uname system call. The UTS namespace is >>>> +named after the data structure used to store information returned by the >>>> +uname system call. >>> >>> Those non-obvious exports should also have a short explanation why >>> they're part of VMCOREINFO. >>> >>>> + >>>> +node_online_map >>>> +=============== >>>> +It is a macro definition, actually it is an arrary node_states[N_ONLINE], >>>> +and it represents the set of online node in a system, one bit position >>>> +per node number. >>> >>> Ditto. >>> >>> So yeah, people can find out what those things are but I think it is >>> more important to state here *why* they're part of VMCOREINFO and how >>> they're used and why they're exported. >>> >> >> This is a good question. >> >> 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. >> >> 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. > > It should be a good chance to learn how makedumpfile works :), Maybe it is > hard to get *all* of them, but it would be good to dig and find the > thing you can find then explain it. And leave those *unknown* part as > FIXME or TODO, people can add description later. > Thank you, Dave. It looks like a good idea. Regards, Lianbo > Added Kazu in cc as well.. > > Thanks > Dave >