Received: by 10.223.176.46 with SMTP id f43csp707336wra; Fri, 19 Jan 2018 00:30:34 -0800 (PST) X-Google-Smtp-Source: ACJfBos4EU/ZslonD3jzKPf6rAmalGkLHiPj3WY9SdY7I2pyWHuHFjFO2EPzrBVFd7mJk/n5wKwA X-Received: by 10.101.80.202 with SMTP id s10mr24565431pgp.226.1516350634752; Fri, 19 Jan 2018 00:30:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516350634; cv=none; d=google.com; s=arc-20160816; b=ZxSEkJKx0eUsMb2NfhiW/OflPpiW5z3Pve3UIPNLjhwrxnge93m2bCa8v369fpXT4m TRxcUwQfTe1EMfo1RJ0KzVPZnroC/Noen7XIunyck0CEuAObQxEKXFEgdGGxJyCNXBtj ZI/6LPlZ+bQNgjYss/soMg7vUpIHEAwuDYoGHvyh7fBdHj3CSZonFtOzpYD2VdrLeF8O PSeW6H7dUaZjeR70pNVD9JhbQVJOJJ69XCE51ODRhWK2UfDjKIZfa5TAyL4ywMlfzkGK 5vfRZW6DaR0jUFGGLYNYR3rBcHDlrtxN013ELnlvGuyRAxLVCSFICMLd6KlWr5+lCs9e jfbw== 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:arc-authentication-results; bh=PSbULPDcNJBeGww2Penax9CMEGx/Xu+JizVHxikaGu4=; b=bokCHttAp22e+h0MfkxyG4Z/H9jnTe8Qkny6WSpLrIIwzRnkhk/h35TKcLHH4Ei54a 3zJBiCh+yrNRUsJIKgRWDnwP1guDs4Mk6pNMbZF7qGFukJE17eU8k3JRl7ts/08RKBv1 aTbndYiYqdK/5ZL10Bdfx7TEkb+UGSxrTj4KhwZSIRlt6dJPVLshXefjyvs8n+EMZQ5o iDj07wq44NaiylhRi+qGc6sOSuwrmp760v8aIWBb0GEz4R4jiulvO+t807aPLE/a4mMF g7ilVctFELnkOXnWtqwQ9Gvh5uVffRBDL0bdesgcCPqDMRK95NV6v/stvrETetvgLKF0 HABw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DFXCfE5s; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j71si7550110pgd.138.2018.01.19.00.30.19; Fri, 19 Jan 2018 00:30:34 -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=@gmail.com header.s=20161025 header.b=DFXCfE5s; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754873AbeASI2q (ORCPT + 99 others); Fri, 19 Jan 2018 03:28:46 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:36631 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751282AbeASI2l (ORCPT ); Fri, 19 Jan 2018 03:28:41 -0500 Received: by mail-pg0-f68.google.com with SMTP id k68so907155pga.3 for ; Fri, 19 Jan 2018 00:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=PSbULPDcNJBeGww2Penax9CMEGx/Xu+JizVHxikaGu4=; b=DFXCfE5sXTp/m+j1yJvzBp1H4Sof7nh2naRu/ztuOXknvTS+ameYmJX9ywZK0qStgL D4jKa9+nuIaoM0k43n1x5yxnSfogol2ruD52XqTWtDEVO8thYGZaFzvrEWYer5dG4x0h z/ySPCVpuPsTJQQ0Er/5X0RFOz1ACmVEXHaPFD1KDwPWOkI/vRVVoruizo4E6WJC1YQJ +UHnCiueITuZ6CjXplBfnxZgzLaYx4xm2Z7+XXmkveH7OX1KElUOKGwAZCLQhuUetCPN HLSjdbjG2hUxl5LkhV6UyhLbJOaMy/a5h4XNGW8BekpRzs7Npv+mQ+B/2vaxGewSUmsb TMRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=PSbULPDcNJBeGww2Penax9CMEGx/Xu+JizVHxikaGu4=; b=nW/WXBqXevn/GlItCgapedxy7Z8mkzY8BnBsOhQG1hjOhQ9riK7PlxsMmKzMlciEnH boBnVL2Wo8bHUB+ZtjH3jIYunnTCjC/2x1DlbGpNjf700w4wNsLbFnHf9FAnJ8GojhF0 /O6fZlePpvjXIYj6NQJvUZs3lidTte+Ht2X74dJlRn3kZ8ZUu/TwzpgE3//Rt4MLRThI s69vJQLJMnb9w/zKapMLDVGW8DhVs3ULoW6+EnpPyawz+KJAAQhM0Mzkv1sJ5NO8+Qx9 r8GfWp2C2Yh3B9tzZp3xDXLLNwwIQC870IFqaMf7k2OaEoj5STNpLi2aHFcvcEPHwdFh ZCXQ== X-Gm-Message-State: AKwxytesj0ApDlzRHIyYQ3U+pi1CmRdaok2S906K3MyZRKOt/jjwh4g6 GT8V/anHkBOd0HhY+S1NOYM= X-Received: by 10.101.82.134 with SMTP id y6mr171546pgp.101.1516350520742; Fri, 19 Jan 2018 00:28:40 -0800 (PST) Received: from localhost ([110.70.56.177]) by smtp.gmail.com with ESMTPSA id e189sm15496180pfa.4.2018.01.19.00.28.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jan 2018 00:28:39 -0800 (PST) Date: Fri, 19 Jan 2018 17:28:35 +0900 From: Sergey Senozhatsky To: Dave Young Cc: Sergey Senozhatsky , Andi Kleen , pmladek@suse.com, sergey.senozhatsky@gmail.com, rostedt@goodmis.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, kexec@lists.infradead.org Subject: Re: [PATCH] print kdump kernel loaded status in stack dump Message-ID: <20180119082835.GA477@jagdpanzerIV> References: <20180117045057.GA4994@dhcp-128-65.nay.redhat.com> <878tcvt592.fsf@linux.intel.com> <20180119054538.GA484@jagdpanzerIV> <20180119081628.GB3985@dhcp-128-65.nay.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180119081628.GB3985@dhcp-128-65.nay.redhat.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (01/19/18 16:16), Dave Young wrote: > On 01/19/18 at 02:45pm, Sergey Senozhatsky wrote: > > On (01/18/18 10:02), Andi Kleen wrote: > > > Dave Young writes: > > > > printk("%sHardware name: %s\n", > > > > log_lvl, dump_stack_arch_desc_str); > > > > + if (kexec_crash_loaded()) > > > > + printk("%skdump kernel loaded\n", log_lvl); > > > > > > Oops/warnings are getting longer and longer, often scrolling away > > > from the screen, and if the kernel crashes backscroll does not work > > > anymore, so precious information is lost. > > > > true. I even ended up having a console_reflush_on_panic() function. it > > simply re-prints with a delay [so I can at least read the oops] logbuf > > entries every once in a while, staring with the first oops_in_progress > > record. > > > > If too many messages printed on screen, then the next flush will > still scroll up. right. but it re-prints Oops with a new console_unlock_delay() delay which gives me enough time to either read it as many times as I want, or take a picture, etc. it's not as fast as the normal oops print out. [I'm not entirely sure I see why do we have printk_delay() in vprintk_emit()... I mean I probably can see some reasoning behind it, but at the same it makes sense to slow down console_unlock() as well] -ss