Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1230917ybl; Fri, 23 Aug 2019 15:48:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9EIvQPFbFRkGuNSRt7Nqr4pH0aSchvIj6CRqfRghYj8c3ogiqhozA1Bar8U2gVnapYce4 X-Received: by 2002:a17:902:1027:: with SMTP id b36mr6131474pla.203.1566600505643; Fri, 23 Aug 2019 15:48:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566600505; cv=none; d=google.com; s=arc-20160816; b=nikocXV/vpISTykWv3ZsLQXx9/zCCkF/pAJ/IO2hAjhdDwr2M/MUS1DpKmVOMXQXYf sHdNJEZt9jnQ7mWLiHfxfp87OIgbzFQ0y01iVQkmbKCPNY7g46fAKtU8nYsNwQHGWwoL sxFXfHZjybAimdbL04E1qkVv9/PJEoPbsUowa+c9V7/t7sNE5W4BVLeAfZNauK3W6Z3e sRea+RQyeUnFhl80JI5NEXFIFNGQVkx8CFNWRh2LAP6aw56vjAhQ4qMbZneoZriHoyBi 81i3/chaeawMPhdAMY+2bv4ieqZ1dGJZAndl+RxhVnXWIYATVNlTmNaguObO6m51XHKz c/7Q== 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; bh=4pKJfLts+ii68aI+WC2XZXU7J3w8Upzj8e1MnFrdmK8=; b=WDU4oMufSSXR2cnIxUF19xIzxgEPqll8cMUk/FoqLLdlZugOans2wqZ+gkm2vGbL5h ZmxliiqQ5v7Y91kp2XyHyTtyDiauKe2PmhWYdp9BiT9ew149Nd99R5HFVq9Df3hUYGdV I/KNxWDaTPODAOpus5Q3UI3jfNm4fPC+yHHYXw12fTOOp//DJehL0JsdL22nTpI0ktoQ 8mAO4XaY5sq7GWKHO8q5JeFGMdt3309o5nl+udWbVbxhWduYNfIfPTFZa4uadoE6ZgXz KNHAy2DweofcPByxk2pVi8tIx+w7eGq4tiECCrEU6YyZCcn6cRV45Petu/ylNFn5xJbH DhMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VlCSJVwx; 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 r14si3805636pfc.134.2019.08.23.15.48.10; Fri, 23 Aug 2019 15:48:25 -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=VlCSJVwx; 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 S2389429AbfHWJts (ORCPT + 99 others); Fri, 23 Aug 2019 05:49:48 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:34712 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729716AbfHWJtr (ORCPT ); Fri, 23 Aug 2019 05:49:47 -0400 Received: by mail-pg1-f196.google.com with SMTP id n9so5511425pgc.1 for ; Fri, 23 Aug 2019 02:49:47 -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=4pKJfLts+ii68aI+WC2XZXU7J3w8Upzj8e1MnFrdmK8=; b=VlCSJVwxNCkO9SjHAgCO85lM05XJjw9MAyN2ZHwcdAFbq29drolRzfkqvR5K9YOs7v djh8km3I9oCvdlwwSc210g0KpzYa+ZAp+mm9Bv9bQNzzO2w8NiKf1glGFBP7QDf1U/h+ Mi3PXFA+9bsYQ4O3pt4wUuQFj2Xs/iw/dTWb0DzhuLVToDvk1Sa5ekxtbRcj3qEOhA9U oWhnS+mz3YhgHmQy8ga+K1P39hi7Yt3GooTZtMbauGNW5nW+Dod0CVLD+0GZPIpo80xJ 3ZjTVwiag9dDBP3Jcqalso6C2qAeOEjBLb7uMox04HDLise2KQfEkFqeHMa4HEvWpxS1 upUQ== 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=4pKJfLts+ii68aI+WC2XZXU7J3w8Upzj8e1MnFrdmK8=; b=GmZ3JTqyxXmWaVRQSVLrldv5BrQ065DC88KVMy/R2jqE/T3uAR6QKDirrsc9LrhxQs 4SKn1TWtE8nt8G+hpMA1KNlPOPFZPZbDgA0Mv1EmqTywnIk+3tcOqZCRVkYujpeobeug T7qr7suXTJIRf+HV3iBWSoa6qKK1f5X4VyOy6uRmS53IuIVREGJshaEq3Kv3hyHgLNcH sovS4lj/EA5doKrjYefMP+TA4N1Vs8Mqmn+DlfdrGrWTWfaUlzG5pF8YjUNj8y5aAGLP urUbUMxf4I0mg+GECe8YX1rFmt0aVO4WXoR8JQ5LD36mav0CQVIMj1NxV36br/luCVt7 gbdA== X-Gm-Message-State: APjAAAWx1opPtypTNPEMotfjnNGTYjp2rGF/Se/RjDdCVhWPsPlXk/r3 xweKvU5HxkTsDxl8d+LavbI= X-Received: by 2002:a17:90a:fe5:: with SMTP id 92mr4328993pjz.35.1566553786972; Fri, 23 Aug 2019 02:49:46 -0700 (PDT) Received: from localhost ([110.70.58.156]) by smtp.gmail.com with ESMTPSA id j5sm2088113pfi.104.2019.08.23.02.49.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2019 02:49:46 -0700 (PDT) Date: Fri, 23 Aug 2019 18:49:43 +0900 From: Sergey Senozhatsky To: Petr Mladek Cc: John Ogness , Sergey Senozhatsky , Andrea Parri , Sergey Senozhatsky , Steven Rostedt , Brendan Higgins , Peter Zijlstra , Thomas Gleixner , Linus Torvalds , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Subject: Re: comments style: Re: [RFC PATCH v4 1/9] printk-rb: add a new printk ringbuffer implementation Message-ID: <20190823094943.GA15662@jagdpanzerIV> References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190807222634.1723-2-john.ogness@linutronix.de> <20190820085554.deuejmxn4kbqnq7n@pathway.suse.cz> <20190820092731.GA14137@jagdpanzerIV> <87a7c3f4uj.fsf@linutronix.de> <20190822135052.dp4dvav6fy2ajzkx@pathway.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190822135052.dp4dvav6fy2ajzkx@pathway.suse.cz> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (08/22/19 15:50), Petr Mladek wrote: [..] > I could understand that you spend a lot of time on creating the > labels and that they are somehow useful for you. > > But I am not using them and I hope that I will not have to: > > + Grepping takes a lot of time, especially over several files. But without labels one still has to grep. A label at least points to one exact location. > + Grepping is actually not enough. It is required to read > the following comment or code to realize what the label is for. > > + Several barriers have multiple dependencies. Grepping one > label helps to check that one connection makes sense. > But it is hard to keep all relations in head to confirm > that they are complete and make sense overall. Hmm. Labels don't add dependencies per se. Those tricky and hard to follow dependencies will still be there, even if we'd remove labels from comments. Labels just attempt to document them and to show the intent. The most important label, which should be added, is John's cell phone number. So people can call/text him when something is not working ;) > + There are about 50 labels in the code. "Entry Lifecycle" > section in dataring.c talks about 8 step. One would > expect that it would require 8 read and 8 write barriers. > > Even coordination of 16 barriers might be complicated to check. > Where 50 is just scary. > > + It seems to be a newly invented format and it is not documented. > I personally do not understand it completely, for example, > the meaning of "RELEASE from jA->cD->hA to jB". I was under impression that this is the lingo used by LMM, but can't find it in Documentation. I agree, things can be improved and, may be, standardized. It feels that tooling is a big part of the problem here. -ss