Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2491348ybv; Fri, 14 Feb 2020 20:17:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxasakR0b+XnmTwVd5xBjNfpOfZwALYEQpsGIWp3/DxCyFiUT8x01HbzW841OuskXFUK7QG X-Received: by 2002:a9d:4801:: with SMTP id c1mr4976222otf.258.1581740270305; Fri, 14 Feb 2020 20:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581740270; cv=none; d=google.com; s=arc-20160816; b=Sb6EM9jRAK+2+G5R/Nu2i1Ec9gH7vIYiRpLCFHVG0cmsfplQSY80fm1z6xhVHkXdTE qF14iy/5T1OhM1TrQnQU+M29r+BY5oTCEf8diKDl2YutgrkfhYoM9QcTMPgFxGXR8V1z V50g7Hv6yJ3+aECBxxydklNwPL+hOuwFL9ReDFornttOsQ4q3fTd3CadEq8ac2CTtF+2 8Otc6Ffh+PGME0piL3zJsU7mMi6kpZIGxh+VCUrxzGQknJxFuEI8CIU7SD7G99mFnr8I x747xiJZxRDFKyL0YaFb6MkGUlARlZ0K9EsZGMIxirW+C8nBCM7gfu05P7RGpe+53gZQ 7qyw== 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:dkim-signature; bh=4v4KhDOUgaH2uZWdr53oizMCM+xuhnQJDym0U6qJWwY=; b=xHJrR1oEkXaHWMH7Aq5s88ZpB5F+M3y61yjk1CGVsROmr+vfU3I64Tt4CgEK+mF9PF 12CUr5McLnlc5E8edNgSVAxwX8fq4ktq5qYUw/+W9hSMbouwkJfIydXmSHWcvzXTdnHS yo3nmXqC05pC8cv06kpgxUK1EpJ64mcSEW1W+9mRJa7nhxm1zow0gOvxvPNbrN3FW3xd BIIkZ0amuvBfUYlQ4PwXTn7BwHCWyDX5BXvRRpBBREBWzGxPZaXQQYogvP6vIMrY5vaM uKlfHoTmpwDq5KhAI/32HgpEimQ23cGZDgGAXJV1xQ/9MMieYZ3WTv6X3EmoH4tGfVOz VYWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NSlZqTwG; 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=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 l6si3803657oti.249.2020.02.14.20.17.36; Fri, 14 Feb 2020 20:17:50 -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=@redhat.com header.s=mimecast20190719 header.b=NSlZqTwG; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbgBOEPv (ORCPT + 99 others); Fri, 14 Feb 2020 23:15:51 -0500 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:55295 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727705AbgBOEPv (ORCPT ); Fri, 14 Feb 2020 23:15:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581740149; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4v4KhDOUgaH2uZWdr53oizMCM+xuhnQJDym0U6qJWwY=; b=NSlZqTwG3Jx/v4ruDqU6h2zN0B/dfuE6keye3v5KTeuPL0xQ9qzzFct1TiBLE09JKKpEK5 M9DwSb1+3CQ7bWyvuXg1Ol5O6MhC0/61jxtufF+Lsw6fgi4AfjHjVwAhUXSXfwncvwd9Cr PQRRLk7F1VHKoSNrc1Z0xKi1HkH/Iik= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-409-Yt1oiaODPbya0oZ7OY3DAQ-1; Fri, 14 Feb 2020 23:15:46 -0500 X-MC-Unique: Yt1oiaODPbya0oZ7OY3DAQ-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id B64A86124F; Sat, 15 Feb 2020 04:15:43 +0000 (UTC) Received: from localhost.localdomain (ovpn-12-202.pek2.redhat.com [10.72.12.202]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4097E5C1D8; Sat, 15 Feb 2020 04:15:36 +0000 (UTC) Subject: Re: [PATCH 2/2] printk: use the lockless ringbuffer To: John Ogness Cc: Petr Mladek , Peter Zijlstra , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , kexec@lists.infradead.org, linux-kernel@vger.kernel.org References: <20200128161948.8524-1-john.ogness@linutronix.de> <20200128161948.8524-3-john.ogness@linutronix.de> <87zhdle0s5.fsf@linutronix.de> From: lijiang Message-ID: Date: Sat, 15 Feb 2020 12:15:34 +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: <87zhdle0s5.fsf@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E5=9C=A8 2020=E5=B9=B402=E6=9C=8814=E6=97=A5 21:50, John Ogness =E5=86=99= =E9=81=93: > Hi Lianbo, >=20 > On 2020-02-14, lijiang wrote: >>> diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c >>> index 1ef6f75d92f1..d0d24ee1d1f4 100644 >>> --- a/kernel/printk/printk.c >>> +++ b/kernel/printk/printk.c >>> @@ -1062,21 +928,16 @@ void log_buf_vmcoreinfo_setup(void) >>> { >>> VMCOREINFO_SYMBOL(log_buf); >>> VMCOREINFO_SYMBOL(log_buf_len); >> >> I notice that the "prb"(printk tb static) symbol is not exported into >> vmcoreinfo as follows: >> >> + VMCOREINFO_SYMBOL(prb); >> >> Should the "prb"(printk tb static) symbol be exported into vmcoreinfo? >> Otherwise, do you happen to know how to walk through the log_buf and >> get all kernel logs from vmcore? >=20 > You are correct. This will need to be exported as well so that the > descriptors can be accessed. (log_buf is only the pure human-readable Really agree, and I guess that there may be more structures and their off= sets to be exported, for example: struct prb_desc_ring, struct prb_data_ring, = and struct prb_desc, etc. This makes sure that tools(such as makedumpfile and crash) can appropriat= ely access them.=20 > text.) I am currently hacking the crash tool to see exactly what needs > to be made available in order to access all the data of the ringbuffer. >=20 It makes sense and avoids exporting unnecessary symbols and offsets. Thanks. Lianbo > John Ogness >=20