Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755682AbcJFMqK (ORCPT ); Thu, 6 Oct 2016 08:46:10 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40439 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753419AbcJFMqC (ORCPT ); Thu, 6 Oct 2016 08:46:02 -0400 Date: Thu, 6 Oct 2016 05:45:52 -0700 From: "Paul E. McKenney" To: Nikolay Borisov Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] rcu: Reword help of RCU_TRACE option Reply-To: paulmck@linux.vnet.ibm.com References: <1475651181-5512-1-git-send-email-kernel@kyup.com> <20161005140307.GE3640@linux.vnet.ibm.com> <57F50BA1.6010404@kyup.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57F50BA1.6010404@kyup.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16100612-0008-0000-0000-000005BFF5C7 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005862; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000186; SDB=6.00765026; UDB=6.00365492; IPR=6.00540883; BA=6.00004791; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012894; XFM=3.00000011; UTC=2016-10-06 12:45:46 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16100612-0009-0000-0000-00003BE911E3 Message-Id: <20161006124552.GF23148@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-10-06_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1609300000 definitions=main-1610060225 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3246 Lines: 87 On Wed, Oct 05, 2016 at 05:18:09PM +0300, Nikolay Borisov wrote: > > > On 10/05/2016 05:03 PM, Paul E. McKenney wrote: > > On Wed, Oct 05, 2016 at 10:06:21AM +0300, Nikolay Borisov wrote: > >> Explicitly state that enabling RCU_TRACE enables more > >> tracepoints and not just "additional tracing". > >> > >> Signed-off-by: Nikolay Borisov > >> --- > >> > >> Hello Paul, > >> > >> Following our latest conversation re. enabling RCU tracing > >> I had to actually go and look into the code to see which > >> option enables the additional tracepoints. I wasn't sure > >> while reading the help of TRACE_RCU. So here is a patch > >> which explicitly states that this enables additional > >> tracepoints. > >> > >> Apply it if you deem necessary it might be just me that > >> thinks the description is not verbose enough. > >> > >> lib/Kconfig.debug | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >> > >> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > >> index cab7405f48d2..f8c3468ec7ef 100644 > >> --- a/lib/Kconfig.debug > >> +++ b/lib/Kconfig.debug > >> @@ -1429,8 +1429,8 @@ config RCU_TRACE > >> depends on DEBUG_KERNEL > >> select TRACE_CLOCK > >> help > >> - This option provides tracing in RCU which presents stats > >> - in debugfs for debugging RCU implementation. > >> + This option enables additional tracepoints in RCU which present > >> + stats in debugfs for debugging RCU implementation. > > > > How about something like this? > > > > This option provides tracing in RCU which presents stats > > in debugfs for debugging RCU implementation. It also enables > > additional tracepoints for ftrace-style event tracing. > > So long as it's explicitly stated that it also enables tracepoints it's > all fine by me. Apparently I'm not the only one who got confused. In a > question re. CONFIG_RCU_TRACE here is what someone said on IRC: > > "what's tracepoints do you mean? this option enables the additional > statistics permanently." > > Care to apply it with the revised wording or shall I resend? Please see below for the current state. Thanx, Paul ------------------------------------------------------------------------ commit a30cd69bdcb1ae12cb243e75eddd608c1798d438 Author: Nikolay Borisov Date: Thu Oct 6 05:42:39 2016 -0700 rcu: RCU_TRACE enables event tracing as well as debugfs The commit brings the RCU_TRACE Kconfig option's help text up to date by noting that it enables additional event tracing as well as debugfs. Signed-off-by: Nikolay Borisov [ paulmck: Do some wordsmithing. ] Signed-off-by: Paul E. McKenney diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 2b5441812214..7f8e8f3c72ea 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1450,7 +1450,8 @@ config RCU_TRACE select TRACE_CLOCK help This option provides tracing in RCU which presents stats - in debugfs for debugging RCU implementation. + in debugfs for debugging RCU implementation. It also enables + additional tracepoints for ftrace-style event tracing. Say Y here if you want to enable RCU tracing Say N if you are unsure.