Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp244532imm; Thu, 10 May 2018 19:42:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoq76aT0+GgSV35kWPdoaqwL3XbeFcvfpts+GAwAb4fhEImP5jI0UdbPXLw1ivhLKuKu0D5 X-Received: by 2002:a63:2787:: with SMTP id n129-v6mr2986764pgn.167.1526006535228; Thu, 10 May 2018 19:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526006535; cv=none; d=google.com; s=arc-20160816; b=NK6+3NP7HWFn16ke8L0+AsY8kyv6l0biLFGsNPPTwnb/3PR69yeBLghJ+79gVGoGiv W35C9UfsVihG7B0kbVkZAD/ODpFuI1q1pmW5MbInvCLRrcGad2Y5dIcyHtHcnPUddIyG FnWY5x9SAbqcQZ0ene6TCdQYbnLxySrBCCGmBZvqiV14lj3JgNDG5KfmqzdSTmR6whs6 mtqiDthW0AA5U1gCpA1lzdInsaoToNgZ8ckMt3JB7o05sx52CcY/dLUc9G1tF3KxTYbi u6Oy2FDeAgbYoGQ2Lb7yl8xBxhCpkAt01O+Nr7PeayO+Sn96cPJ9SHchgCpNg0fn0MJY meQA== 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=KiG2E52vgCO+0Jc1LwBaD1J2ye1Un+gIKuGNTnig2iw=; b=FvEJQO1nAedhK0hz1f7zql+bWySl+tmPSwBYs96GpAdW73fHbeYwaIMcLDnuUMbRx8 EIQhOw2M/G6XSblZCgBRiDGJd4dhPtqTnR2ipD/5C+Ac1AmfQ8dZ2JFDn3aKBlqJdZDh /Bfx1CfJc4/+Z5/gac2zSD6sq+cyRj50vbt13WN7B9OHCcC7DlxkNXoIqBkGTIzMyi/q EOzArl/6LbIhGXd5bLgdHKS7Q7Vnp4QyU+dvNAJ3BCYYUHb1iHRdZeWhbTZnqwMl/c0y XRVLxPR8f9L6dCAdzF3SDu3lKTHhgaW25ZZztP1RSCRFM1D2UD1fxVlcW1rfbrThv2lp SXxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=h6neqTHz; 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=QUARANTINE 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 y15-v6si1895060pgr.98.2018.05.10.19.42.00; Thu, 10 May 2018 19:42:15 -0700 (PDT) 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=h6neqTHz; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751345AbeEKClv (ORCPT + 99 others); Thu, 10 May 2018 22:41:51 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:45358 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750722AbeEKClt (ORCPT ); Thu, 10 May 2018 22:41:49 -0400 Received: by mail-pf0-f196.google.com with SMTP id c10-v6so1984475pfi.12 for ; Thu, 10 May 2018 19:41:49 -0700 (PDT) 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=KiG2E52vgCO+0Jc1LwBaD1J2ye1Un+gIKuGNTnig2iw=; b=h6neqTHzTYVhaKEV2ayG/lLU3d69ORr4VKitLPoklMYuiMU7Fv/1K27YecmJy1EwDE SUeNKb30Ad5lej0stvWYxtHNtiixIaNMGZNd3WWpsOOw0C6Oie9llHRHDOxFWVAt3WfW /CCFe9L7T1U73ag5cc8N5ydKsxW3/O053gJFZPCmJ7Z5jWWzuvafya4QrakA4zfcdLv4 A2QEITszLPzJORo37G7D48wM7lMpZ/Ky/Cto56P6R5FoIVamFe020x3OVzAqYSvWhOF6 VhU3ik/QKkDm74WD+hGKz198+3WV8+4lmtsiUXcs6GEZta3SxJqvAGgkEjzAakrszjKk 3fvg== 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=KiG2E52vgCO+0Jc1LwBaD1J2ye1Un+gIKuGNTnig2iw=; b=lpwX0Ntj4sKpWH4Cc+N4LqoglDfL/olD/hKIhU09YW9Pp/jNazVHhHOy5MlAsDQQ8s rBv0bhU0dnyHMef9Hg95J9/DBN5bjLUjWnIzJvJZAc5YjYIw2dpqchLEBlFdheNGVJKa 6zxwvN/27Uz0PZ6ukJOfrsD/tqvR+bmnPPI0ZDKYIxAT33pFW87MsPsLGiBegI9u6cIN Q1xl0wnGpnh/c5LEUUzU3LwT5HbDcx4NWQ8RVos+f9EeYO9Wd8Oz0HH6lZlzBPDWJ5N+ rHcBOiyoU/sWN0xkFsU1Z3/I5b8xT4snAJc/nzN/sZ++acYbugpofqpZ3l2TBDj3bOcd 5q5Q== X-Gm-Message-State: ALKqPweyDGSqJC82FfiIQRtLcOHD9QtnULMelT/zU0hkqW6SkVBFKijb sgvhPQVIjYV+p309NGuHtMl5LT2/ X-Received: by 2002:a63:6fc8:: with SMTP id k191-v6mr2987184pgc.330.1526006509471; Thu, 10 May 2018 19:41:49 -0700 (PDT) Received: from localhost ([211.246.69.73]) by smtp.gmail.com with ESMTPSA id e18-v6sm3326248pfi.100.2018.05.10.19.41.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 May 2018 19:41:48 -0700 (PDT) Date: Fri, 11 May 2018 11:41:44 +0900 From: Sergey Senozhatsky To: Joe Perches Cc: Sergey Senozhatsky , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , linux-kernel@vger.kernel.org Subject: Re: [PATCH 03/18] printk: Convert pr_fmt from blank define to KBUILD_MODNAME Message-ID: <20180511024144.GA416@jagdpanzerIV> References: <20180511022314.GA491@jagdpanzerIV> <5b898d97466c512049493c26d5fd4bf8123ed7c7.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b898d97466c512049493c26d5fd4bf8123ed7c7.camel@perches.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (05/10/18 19:33), Joe Perches wrote: > > > > [ 28.420519] generic: RSP: 0018:ffffa01dc062bda8 EFLAGS: 00010282 > > [ 28.420522] generic: RAX: ffffffff8317612f RBX: ffffffffffffffea RCX: ffffa01dc062bdc8 > > [ 28.420523] generic: RDX: 000055a6a3f03110 RSI: 0000000000000001 RDI: ffffffff83e31540 > > [ 28.420525] generic: RBP: 0000000000000001 R08: ffffa01dc062bec0 R09: 0000000000000004 > > [ 28.420526] generic: R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 > > [ 28.420528] generic: R13: ffffffff83e31540 R14: ffffa01dc062bec0 R15: 0000000000000002 > > [ 28.420547] generic: ? rcu_read_lock_sched_held+0x5d/0x63 > > [ 28.420549] generic: ? rcu_sync_lockdep_assert+0x2e/0x54 > > [ 28.420551] generic: ? __sb_start_write+0xeb/0x1a3 > > > > Correct? > > No, that stack dump comes from arch/x86/kernel/dumpstack.c > and that uses printk(KERN_DEFAULT ... and generic printk( > which is not prefixed at all. That's platform specific. Right? Most of platforms [probably most of them] use plain printk("... %pS"). But some use pr_emerg("[<%p>] %s%pS\n") or pr_info("PC: [<%08lx>] %pS\n"), and so on. In case of x86, I think we will have some changes as well. Looking at generic __warn(): pr_warn("WARNING: CPU: %d PID: %d at %s:%d %pS\n") and pr_warn("WARNING: CPU: %d PID: %d at %pS\n") and probably some others will change now: Instead of [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: CPU: 0 PID: 0 at blah-blah-blah we will have [ 0.000000] panic: ------------[ cut here ]------------ [ 0.000000] panic: WARNING: CPU: 0 PID: 0 at blah-blah-blah -ss