Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1012622imm; Tue, 15 May 2018 12:28:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZruObT4JXrSgA/QSEw2C9SkfyBUTFUBUSztcTbpZYphcTDy2/d5qkPHHFvAXhXUmiGGXBvR X-Received: by 2002:a17:902:462:: with SMTP id 89-v6mr15429386ple.300.1526412491517; Tue, 15 May 2018 12:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526412491; cv=none; d=google.com; s=arc-20160816; b=hSMOzRYeCL7Q9yHg2DoWNAYHdI3FcxwlzIg3MBvHVh0TtUDRV8r7YoxPAeORa7Y9vi gQKd04kTa4s6z1JU23xqRKEAuNG8Y8eJn5zsGtSWyn2e0bBjcUh43VgKj6BoYXjN+F+k o0EjNO8Dm9d4Qqc/f7ckHXubX6Q0+khl7sxvKbS93Fz6Sbf6vgsb3sVQ5fP4fbUaZRez ulSJh/Ef2H7DZslDLUcfCf3gZBUMqKhmrWR8gdo4q8MJRvchL3KLhwFGL+yAR+VJYGi2 i5uqd7aJjqkUaKd5xAFguA7va4OLHAOIBz92wi8fbG0+1SAE/1bgn+9OKo0fLCX9iZzs BMhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:subject:cc:to :from:date:arc-authentication-results; bh=kTWH79TU/m+Q707evIQGjW1E18urIls3r5nG1AVWQBo=; b=lqNZ6A0O1xz1MdfJuxP2yn7vWPhMcYkGCbsEc6i6aOsEGZdeZe/veYrJ2F3is0tn0H Hyuo3rq+11yRtfykFhRX2Khb+m4pRqqZhCbEhyojcfwb3cRYZneK7SNeRcN3bknVLhVL NVvqccibDMMDfdmxPYlUcuHRK92TuRcbwgWWuJ5PSyrheUtf2ZhNrLyPfHzN4DPynyXM gmXn5znqhlhdUh+VCgqdODAV6KCVt9K2Eb6NHGx/K6NkuwsTmaIdHhvk6kGGFW3PsygF zXWw9KpHah6uSOaqCY0/WGxJVTaP4+Ee2MAu7u9+e6GEAthAyMC4fQISha2JOkdXLI6r Knrw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q12-v6si315209pgn.377.2018.05.15.12.27.41; Tue, 15 May 2018 12:28:11 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751578AbeEOT1b (ORCPT + 99 others); Tue, 15 May 2018 15:27:31 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49696 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750810AbeEOT1a (ORCPT ); Tue, 15 May 2018 15:27:30 -0400 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4FJQRMm063989 for ; Tue, 15 May 2018 15:27:29 -0400 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 2j049nc1tk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 15 May 2018 15:27:29 -0400 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 15 May 2018 15:27:28 -0400 Received: from b01cxnp22033.gho.pok.ibm.com (9.57.198.23) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 15 May 2018 15:27:25 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp22033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4FJROKh44630240; Tue, 15 May 2018 19:27:24 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5CD50B204D; Tue, 15 May 2018 16:29:22 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id 08A15B2056; Tue, 15 May 2018 16:29:22 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 163AD16C3D0F; Tue, 15 May 2018 12:28:56 -0700 (PDT) Date: Tue, 15 May 2018 12:28:56 -0700 From: "Paul E. McKenney" To: Joe Perches Cc: Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Davidlohr Bueso , linux-kernel@vger.kernel.org Subject: Re: [PATCH 18/18] rcu: Use pr_fmt to prefix "rcu: " to logging output Reply-To: paulmck@linux.vnet.ibm.com References: <41d9686471d67f6f98d160e5891bf61061515b6d.1525964386.git.joe@perches.com> <20180514202910.GI26088@linux.vnet.ibm.com> <32216d8f154b29400d4c11bae91850591114f7f8.camel@perches.com> <20180514222456.GO26088@linux.vnet.ibm.com> <3c7770a062355650fb61e48a5fbeb9653d98d85a.camel@perches.com> <20180514235832.GR26088@linux.vnet.ibm.com> <0cb282d85c37d9b626933a03574848d17430f04c.camel@perches.com> <20180515003205.GT26088@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180515003205.GT26088@linux.vnet.ibm.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18051519-0040-0000-0000-0000042BC4F5 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009030; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000260; SDB=6.01032781; UDB=6.00528023; IPR=6.00811913; MB=3.00021130; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-15 19:27:27 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051519-0041-0000-0000-00000831D9A4 Message-Id: <20180515192856.GA24473@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-15_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805150189 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 14, 2018 at 05:32:05PM -0700, Paul E. McKenney wrote: > On Mon, May 14, 2018 at 05:23:59PM -0700, Joe Perches wrote: > > On Mon, 2018-05-14 at 16:58 -0700, Paul E. McKenney wrote: > > > OK, so if I define pr_fmt as follows, I get the old behavior? > > > > > > #define pr_fmt(fmt) fmt > > > > yes. > > OK, then I will queue patches with this for the near term for > the various torture files. And here is the patch. Thoughts? Thanx, Paul ------------------------------------------------------------------------ commit de94f0b65dd4dcb7e651e2d85df9d9bc86b5bf23 Author: Paul E. McKenney Date: Tue May 15 12:25:05 2018 -0700 torture: Keep old-school dmesg format This commit adds "#define pr_fmt(fmt) fmt" to the torture-test files in order to keep the current dmesg format. Once Joe's commits have hit mainline, these definitions will be changed in order to automatically generate the dmesg line prefix that the scripts expect. This will have the beneficial side-effect of allowing printk() formats to be used more widely and of shortening some pr_*() lines. Signed-off-by: Paul E. McKenney Cc: Joe Perches diff --git a/kernel/locking/locktorture.c b/kernel/locking/locktorture.c index 6d42670a1c70..5f00e5a2ef3b 100644 --- a/kernel/locking/locktorture.c +++ b/kernel/locking/locktorture.c @@ -21,6 +21,9 @@ * Davidlohr Bueso * Based on kernel/rcu/torture.c. */ + +#define pr_fmt(fmt) fmt + #include #include #include diff --git a/kernel/rcu/rcuperf.c b/kernel/rcu/rcuperf.c index 9047e5439e46..791f8ae7ce20 100644 --- a/kernel/rcu/rcuperf.c +++ b/kernel/rcu/rcuperf.c @@ -19,6 +19,9 @@ * * Authors: Paul E. McKenney */ + +#define pr_fmt(fmt) fmt + #include #include #include diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 9d80245b2a1c..ca08e6733fa2 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -22,6 +22,9 @@ * * See also: Documentation/RCU/torture.txt */ + +#define pr_fmt(fmt) fmt + #include #include #include diff --git a/kernel/torture.c b/kernel/torture.c index 840fd33c1cda..1ac24a826589 100644 --- a/kernel/torture.c +++ b/kernel/torture.c @@ -20,6 +20,9 @@ * Author: Paul E. McKenney * Based on kernel/rcu/torture.c. */ + +#define pr_fmt(fmt) fmt + #include #include #include