Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4910318ybv; Mon, 17 Feb 2020 08:16:05 -0800 (PST) X-Google-Smtp-Source: APXvYqwAGIB8BuWgECRUty5H35rwSbuQCyQs/q897K+hFN0VZqcx+gWnBkcGHm9WgcwgV9/DZQJk X-Received: by 2002:a9d:7617:: with SMTP id k23mr11939822otl.329.1581956165540; Mon, 17 Feb 2020 08:16:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581956165; cv=none; d=google.com; s=arc-20160816; b=XWTTb5zWOFZwgzDugAfjAln6WccTi6xQpkangwJ1Y001sa/wqw4fy2okEahWiMdq1w UTajlAPKYM82lRhgXS80bprqW1y6OObjCPQlShyFcu6EbLDjvHZly+q1uPAfRkiJDOdQ ZbT6F8fbLNb6jAEUSHf5ePvIS3v//0Z+0O8rt9/iHp0P6F/SBro4RQVKdmLo3GBwyE1K KuBvgPURSX2egHeGtyN17UQ74cN4oBJV7ChKiaF8uqgFw48jLUC22dsFHVhihnoz8dgM GjnQ5Hv9QJLsy4IzoA1UHJJ4oHVtTCJbYC3xG+zbGVS4d7lw4rVIVaJ9cDpkp6kZPiA8 kfjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=oihEDtPYfnxv5OSQShwswEFNaxp3zKnAVIRYmDUeFvg=; b=pGPeq49FkpLdegrzS/mWjVpctfFQ0f0rtxwqu2e8UhOVVULISd5fvq/8mveTrpRgUL C1PRAQ7IiiIqrnJRuZKCwIyg5nuVXp7Zefiwr2YsnFCvdrnkr5HL2iJVbrTxWKt0Vpfr YYvoXMYvPHfyD5yHmIhMbz/4zAS0E8JycnB2lw+TxYgxV771z8Fw7k+2kDH5gRUB7EZP silYWKmsRGwDiZR8G8fEFyE4EuszRNWRqAFZJ6aFdq9Pl15+JQZLeaHOVCF2Lj2dp6yT lJge6lWKZ0nBLAC/KOkqeqZGCOKWgu+gmmPuiF7oaRQ4GUGAaGZpCedVe+J+SNmW8sxs OBlg== 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 m7si410407otk.73.2020.02.17.08.15.53; Mon, 17 Feb 2020 08:16:05 -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 S1728543AbgBQQO2 (ORCPT + 99 others); Mon, 17 Feb 2020 11:14:28 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:60203 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728138AbgBQQO2 (ORCPT ); Mon, 17 Feb 2020 11:14:28 -0500 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1j3j2N-0001Hx-Sj; Mon, 17 Feb 2020 17:14:23 +0100 From: John Ogness To: Petr Mladek Cc: lijiang , 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 Subject: Re: crashdump: Re: [PATCH 2/2] printk: use the lockless ringbuffer References: <20200128161948.8524-1-john.ogness@linutronix.de> <20200128161948.8524-3-john.ogness@linutronix.de> <87zhdle0s5.fsf@linutronix.de> <20200217154026.7x2xyrklprgql4if@pathway.suse.cz> Date: Mon, 17 Feb 2020 17:14:22 +0100 In-Reply-To: <20200217154026.7x2xyrklprgql4if@pathway.suse.cz> (Petr Mladek's message of "Mon, 17 Feb 2020 16:40:26 +0100") Message-ID: <87zhdh9oo1.fsf@linutronix.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-17, Petr Mladek wrote: >>> 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? >> >> 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 >> 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. > > I am not sure which parts you are working on. Are you going to provide > also patch for makedumpfile, please? I'm working on crash first. makedumpfile is on my list as well. > I get the following failure when creating the crashdump using: > > echo c >/proc/sysrq-trigger > > > The kernel version is not supported. > The makedumpfile operation may be incomplete. > dump_dmesg: Can't find variable-length record symbols > makedumpfile Failed. > Running makedumpfile --dump-dmesg /proc/vmcore failed (1). Yes, the symbols have changed (and some are missing). I will get this sorted out for v2. And I will provide some heavily hacked code for crash and makedumpfile to show that the necessary symbols are there and it works. John Ogness