Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1068609ybh; Sun, 19 Jul 2020 07:38:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7DUXpDYVa81ed9evMhB5v/7xDOtNW9pHKx2bugy90c4m+z2HBqqKEnafSD7EXslPsNgpX X-Received: by 2002:a05:6402:14c1:: with SMTP id f1mr18320851edx.342.1595169491370; Sun, 19 Jul 2020 07:38:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595169491; cv=none; d=google.com; s=arc-20160816; b=tYv1lpMYUHW1uFtyV6DMqf78gfRJ5IIiSguFlDbDzZEWh5q/W89JhYurDg+dxjVWky UOuG1i6oVDz8D+605W36x7NJ9YzMxWxNWXhOUqU5HZ7Kqkj+0O282PJk1DP9fv3wCsQa kXP8Uhdf73okauQAMYgNxJ+t7tEJsZgEa9dR58B9j89YujK9gnOp/ZNE65D815QdUlTR K3aNceaFy4KbdQ1qWMz6EuBGO/RTS+ojWW8I0VCcWdalT4xseNZIfTT2gj53CrbwwGxq mj6Q/lsjAzft/MTOfOQMz1iCsKDzAAemHNKxze6fMsTeNxUFJj4OTveOPA7oR7SYfvor vKQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MSkvqxCGHgwiApo84aQWZNHUudChAzaosYHcOhPptH4=; b=rUB0FmYuAlbhD52N8dvULVk68sREeaU4rYjMo8ZLFOETJUQqvZrolDauwHE+kjnpx/ jQQJj6m3RT/xEW3FLuVoxIuUMfTleWXbO0wkStdsjI3C+ujZwIkGMzoYMlC8TgXDvRUT S4/+f2Sn3ZpIKR+pH1ndBZpImv7+h0Axfz3VP+I3nHR5ry1tE8cM4+o3/wAfkn56p5dt fcdYIh+p56SP7BSh9a2E5OlM8x/3Uw6L6wQFpLZierOh5oAsImvk764XFiWyfH0ew7HP gSdaGhvpm2CoGt2adzed2LYIXWXNzoOpxSfEvtrXKMgl3uaakySk+E7LyuJuZabq00iz LJWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GRwqVOPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id rn4si10591572ejb.658.2020.07.19.07.37.48; Sun, 19 Jul 2020 07:38:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GRwqVOPU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726307AbgGSOfe (ORCPT + 99 others); Sun, 19 Jul 2020 10:35:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgGSOfd (ORCPT ); Sun, 19 Jul 2020 10:35:33 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DAB33C0619D2 for ; Sun, 19 Jul 2020 07:35:33 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id 207so7787578pfu.3 for ; Sun, 19 Jul 2020 07:35:33 -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; bh=MSkvqxCGHgwiApo84aQWZNHUudChAzaosYHcOhPptH4=; b=GRwqVOPUpYjfZgAKaMMVgV5ROix3NayjZ5TFnwZbtxPv5J8rmy+2iJChiWKtYgiIBL +99jY7LV7BzSggJ3Ow9/xNUn6NUiaX2RUKdY2rqIg6IM50piKsicXHqweDjmMwnKbFzq v5jRYtzRGG7yfJZEqtXhh+6Ex04tLspkcxa/FMkUDS8BK88hmInrm3jre2uu6Si+df1D wqaw9S6wd0X3mxhJGSoZgB48+re+FprEbmdFXitdOC2HOEjRlZR0k8HsjJyFbJJCb6+V zmvNBhnMC2t6+lfc6fNBUHjzHuAf7fP5sTf7A8GSu2gWJIvVBkRIluen6/7ODB8EYwC9 7NaQ== 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; bh=MSkvqxCGHgwiApo84aQWZNHUudChAzaosYHcOhPptH4=; b=nIYk3scIPSODbOJPlFOrNY2nmW9vICMRrCKhOvkgNJp6/N6rjbBH8fnfah8wZNNPem T1B+4XE7IsdOuBtncd3x/LOiWj0iu0hLzMSIfOeeLP+B/bVUZdjJS5qHkq66ymY6PwUm vJMXa+iMGSUmy2V50gz7y/pcq7sNPGg+J2VFmp11hS6Zv/ak6buOT6IV0+Sw77BdfEIv FbFwPNFBDE8y4ovHSF8kVHP7n/eAqvZyBCCzqpgI5kvEfScWw+sWiHApc6ySEF3PcFf5 e6CF+vh4V6VaE3PYep0d7/H7nnMhj/36uQhdt7V0Ifw9i8s/C/+NEF8jKJnrNcOx91lC YV5w== X-Gm-Message-State: AOAM5316p08hpDg9waP0cHKJR6lbNW1xT9qzWbAzbkc7OJmtWNKC3f3S yjVQxs/IGBzl0TXNcwryAsM= X-Received: by 2002:a63:1f45:: with SMTP id q5mr15417855pgm.240.1595169333407; Sun, 19 Jul 2020 07:35:33 -0700 (PDT) Received: from localhost ([2409:10:2e40:5100:6e29:95ff:fe2d:8f34]) by smtp.gmail.com with ESMTPSA id a17sm12187302pgw.60.2020.07.19.07.35.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2020 07:35:31 -0700 (PDT) Date: Sun, 19 Jul 2020 23:35:27 +0900 From: Sergey Senozhatsky To: John Ogness Cc: Petr Mladek , Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Peter Zijlstra , Thomas Gleixner , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/4] printk: store instead of processing cont parts Message-ID: <20200719143527.GA566@jagdpanzerIV.localdomain> References: <20200717234818.8622-1-john.ogness@linutronix.de> <20200717234818.8622-3-john.ogness@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200717234818.8622-3-john.ogness@linutronix.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (20/07/18 01:54), John Ogness wrote: > --- > kernel/printk/printk.c | 114 ++++------------------------------------- > 1 file changed, 11 insertions(+), 103 deletions(-) > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > index fec71229169e..c4274c867771 100644 > --- a/kernel/printk/printk.c > +++ b/kernel/printk/printk.c > @@ -495,9 +495,14 @@ static void truncate_msg(u16 *text_len, u16 *trunc_msg_len) > *trunc_msg_len = 0; > } > > +static inline u32 printk_caller_id(void) > +{ > + return in_task() ? task_pid_nr(current) : > + 0x80000000 + raw_smp_processor_id(); > +} Can we merge lines that we don't want to merge? pr_cont() -> IRQ -> pr_cont() -> NMI -> pr_cont() |__________________________________| different same 0x80000000 + cpu_id caller id caller id -ss