Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4837142imm; Mon, 14 May 2018 14:06:41 -0700 (PDT) X-Google-Smtp-Source: AB8JxZobMHSVPcif3NiX0cuouv+OE6th1ayjhGDvEwe4hI3hVwlCGCcrwUE+JdRLXV+F76IG/WZX X-Received: by 2002:a62:4353:: with SMTP id q80-v6mr12039631pfa.228.1526332001504; Mon, 14 May 2018 14:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526332001; cv=none; d=google.com; s=arc-20160816; b=zv9aGV6Shtb/ZUkKzQUyAqXBoZSiAlCAQrRFFlxeCOvYpQcprM60b5+mRAC8VC2HIb 6RPkHdkGBz+sp3eViNwq3JQXkkfENrk7Erwr/yMtfFcL4BOUxQlbzubp8njbAIVSgAJR r8OJQWq4cf3Ho3p/UcdQoYmM0Vax3naVri65QhS0E55sKbepN//GjXzFX0I7cpHnczj0 5UDqU0lcW9qNMcGpAGPSIV9axd5wilqlKSNxzaf+x6IXRycZPFb+UlRygsTRskUZa7/w rZUCJo47B0790iSNjZBGT63uFSO/FldJOqsn9uEnbDHUUb8eeVyB88pJ5qPhcBEoQT0Z uWgg== 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=YT0tjQGt8e/kpn76XJjrsTz+Rqc6chXo5+oDKMRt4FY=; b=n52KAumV/cdl1DyHOcMkneTJOaTcMHnylvswyUPINoYTa/LQDVLJfe5WY/7V6f0wBE ggDjuLrrQAiz+9LJ3wBf8/RFYQw8XbyXxtxQtJ88PJAZ0d500CqXz3umAscNwyOplCHa zEobr2r8dEY5+fws37HgDHd+7xz9dbmQ8O/yYZ//uCcqPOPMWHYFK38tfMl9iNs1ClCY nF86UH5eDWKKlTyk2i5emG9hq3US9MXC8789IG3Ran6lvL5j3s2vDAIRb697/ngE82Np PdZ80MMpFCzHWmt0jtYv+f98FWeS2FSIJ1h6BdLK6i0TPUM4mSN2Exolc77dL88TsczT GV0w== 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 e8-v6si10503548pfi.23.2018.05.14.14.06.27; Mon, 14 May 2018 14:06:41 -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 S1752398AbeENVE1 (ORCPT + 99 others); Mon, 14 May 2018 17:04:27 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:37390 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752096AbeENVEZ (ORCPT ); Mon, 14 May 2018 17:04:25 -0400 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4EL48UH066752 for ; Mon, 14 May 2018 17:04:25 -0400 Received: from e14.ny.us.ibm.com (e14.ny.us.ibm.com [129.33.205.204]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hye888wvw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 14 May 2018 17:04:25 -0400 Received: from localhost by e14.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 14 May 2018 17:04:22 -0400 Received: from b01cxnp23033.gho.pok.ibm.com (9.57.198.28) by e14.ny.us.ibm.com (146.89.104.201) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 14 May 2018 17:04:19 -0400 Received: from b01ledav003.gho.pok.ibm.com (b01ledav003.gho.pok.ibm.com [9.57.199.108]) by b01cxnp23033.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4EL4JrJ55443602; Mon, 14 May 2018 21:04:19 GMT Received: from b01ledav003.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 01FE3B204E; Mon, 14 May 2018 18:06:17 -0400 (EDT) Received: from paulmck-ThinkPad-W541 (unknown [9.70.82.108]) by b01ledav003.gho.pok.ibm.com (Postfix) with ESMTP id A240FB2050; Mon, 14 May 2018 18:06:16 -0400 (EDT) Received: by paulmck-ThinkPad-W541 (Postfix, from userid 1000) id 4F8A416C3783; Mon, 14 May 2018 14:05:50 -0700 (PDT) Date: Mon, 14 May 2018 14:05:50 -0700 From: "Paul E. McKenney" To: Randy Dunlap Cc: Joe Perches , 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> <2b66d372-dac9-0fad-af44-bfa84d996985@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2b66d372-dac9-0fad-af44-bfa84d996985@infradead.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 x-cbid: 18051421-0052-0000-0000-000002EE6867 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009026; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000260; SDB=6.01032334; UDB=6.00527754; IPR=6.00811465; MB=3.00021113; MTD=3.00000008; XFM=3.00000015; UTC=2018-05-14 21:04:21 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18051421-0053-0000-0000-00005CAEF361 Message-Id: <20180514210550.GM26088@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-14_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 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-1805140211 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 01:52:48PM -0700, Randy Dunlap wrote: > On 05/14/2018 01:29 PM, Paul E. McKenney wrote: > > On Thu, May 10, 2018 at 08:45:44AM -0700, Joe Perches wrote: > >> Use a consistent logging prefix for all rcu related output. > >> > >> Signed-off-by: Joe Perches > > > > I took parts of this (thank you!) but have concerns about other parts. > > > >> --- > >> kernel/rcu/rcu_segcblist.c | 2 ++ > >> kernel/rcu/rcuperf.c | 10 ++++--- > >> kernel/rcu/rcutorture.c | 46 +++++++++++++++---------------- > >> kernel/rcu/srcutiny.c | 2 ++ > >> kernel/rcu/srcutree.c | 5 +++- > >> kernel/rcu/tiny.c | 3 +++ > >> kernel/rcu/tree.c | 8 +++--- > >> kernel/rcu/tree_plugin.h | 67 +++++++++++++++++++++++++++------------------- > >> kernel/rcu/update.c | 19 ++++++++----- > >> 9 files changed, 96 insertions(+), 66 deletions(-) > >> > > >> diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c > >> index 648e1c25707d..45d98ff0d5b8 100644 > >> --- a/kernel/rcu/rcutorture.c > >> +++ b/kernel/rcu/rcutorture.c > >> @@ -22,6 +22,7 @@ > >> * > >> * See also: Documentation/RCU/torture.txt > >> */ > >> + > >> #include > >> #include > >> #include > >> @@ -908,7 +909,7 @@ rcu_torture_writer(void *arg) > >> VERBOSE_TOROUT_STRING("rcu_torture_writer task started"); > >> if (!can_expedite) > >> pr_alert("%s" TORTURE_FLAG > >> - " GP expediting controlled from boot/sysfs for %s.\n", > >> + " GP expediting controlled from boot/sysfs for %s\n", > >> torture_type, cur_ops->name); > >> > >> /* Initialize synctype[] array. If none set, take default. */ > >> @@ -916,27 +917,27 @@ rcu_torture_writer(void *arg) > >> gp_cond1 = gp_exp1 = gp_normal1 = gp_sync1 = true; > >> if (gp_cond1 && cur_ops->get_state && cur_ops->cond_sync) { > >> synctype[nsynctypes++] = RTWS_COND_GET; > >> - pr_info("%s: Testing conditional GPs.\n", __func__); > >> + pr_info("%s: Testing conditional GPs\n", __func__); > >> } else if (gp_cond && (!cur_ops->get_state || !cur_ops->cond_sync)) { > >> - pr_alert("%s: gp_cond without primitives.\n", __func__); > >> + pr_alert("%s: gp_cond without primitives\n", __func__); > >> } > >> if (gp_exp1 && cur_ops->exp_sync) { > >> synctype[nsynctypes++] = RTWS_EXP_SYNC; > >> - pr_info("%s: Testing expedited GPs.\n", __func__); > >> + pr_info("%s: Testing expedited GPs\n", __func__); > >> } else if (gp_exp && !cur_ops->exp_sync) { > >> - pr_alert("%s: gp_exp without primitives.\n", __func__); > >> + pr_alert("%s: gp_exp without primitives\n", __func__); > > Unlike some of the others, the one above is not a sentence, so it doesn't > _need_ a period ... except for consistency. > > But I don't care either way. :) ;-) ;-) ;-) Thanx, Paul > >> } > >> if (gp_normal1 && cur_ops->deferred_free) { > >> synctype[nsynctypes++] = RTWS_DEF_FREE; > >> - pr_info("%s: Testing asynchronous GPs.\n", __func__); > >> + pr_info("%s: Testing asynchronous GPs\n", __func__); > >> } else if (gp_normal && !cur_ops->deferred_free) { > >> - pr_alert("%s: gp_normal without primitives.\n", __func__); > >> + pr_alert("%s: gp_normal without primitives\n", __func__); > >> } > >> if (gp_sync1 && cur_ops->sync) { > >> synctype[nsynctypes++] = RTWS_SYNC; > >> - pr_info("%s: Testing normal GPs.\n", __func__); > >> + pr_info("%s: Testing normal GPs\n", __func__); > >> } else if (gp_sync && !cur_ops->sync) { > >> - pr_alert("%s: gp_sync without primitives.\n", __func__); > >> + pr_alert("%s: gp_sync without primitives\n", __func__); > > > > > > > > > -- > ~Randy >