Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1758916ybt; Mon, 15 Jun 2020 08:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzt/1i60zAm3e3hbjt2K2T1OL11p1C0XI5YTtNSnkWUePLwLg7kOaW3kGXCx8gT4OROZmTK X-Received: by 2002:a50:9dc4:: with SMTP id l4mr25085510edk.52.1592235697114; Mon, 15 Jun 2020 08:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592235697; cv=none; d=google.com; s=arc-20160816; b=v5oV0hvADnwJi+riBfPQEToeP/zuPKNS/6DD4bOwUyDw3XYIwQFGTLlbfb9t/SeJo7 +v68Sfjk7QthaC6zJroGaCH0lp1aPithLfhzEZKclbjELq/pmZGAuDK+AUDXPYTjNP6S lJivTgFye2vo0fipQW1/pJXkfZ/Z2Sq2r7SAzbo/vtbD1Bmxna+W8zVmD3/fDIuFVJkl /2HG7twGQz+BGDMtA8uergsyxTIEtc4/fNznIRHNsoCcOuRnXaBcqKT1FeSWTDqKLXX4 fe1681e02DcrzBxfWWOqXtfR/AJ5SompxGB8JuNzLQebkFj0I4OpwOjveSun5jSKZ4tO ojPg== 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; bh=E54CPaE0S03U4MZZoDHw1HTicLe1CAIhHdaYwIgurvs=; b=JxirMFJ1pBo/6YMYU1R869k1EBXOFhKsXaJnup+r6xtcysELkzwbpPevUyuBtOZPaQ ksO5jGRtaHoQVYWx53BnfP2vMUinR7JFE4apO6//nlJX+raK/CZIX/LZliipgwhnrQlF zgV4Tw5GPum+lNd8EWFC/6vEdv9g1pILT78kq7ZaR1g9+QbS/AU76wlrjSlxqgDPw3+F LDkxNcdSRLajmD2WoVDegShzVyGMVEY2b3wpGMVaYMlbmddNcb92Q1Z4Id4wi2ftDeEs 9V6cieXVGGO88/twLZU7m/C/A1HwOPjd6/mf3tD93wEwBNwffS36cQUsNmVEVZLkH7pE IBDw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si8720595edt.501.2020.06.15.08.41.14; Mon, 15 Jun 2020 08:41:37 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729772AbgFOPhb (ORCPT + 99 others); Mon, 15 Jun 2020 11:37:31 -0400 Received: from mx2.suse.de ([195.135.220.15]:33986 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728477AbgFOPhb (ORCPT ); Mon, 15 Jun 2020 11:37:31 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 0592AAD0D; Mon, 15 Jun 2020 15:37:32 +0000 (UTC) Date: Mon, 15 Jun 2020 17:37:27 +0200 From: Petr Mladek To: Jim Cromie Cc: jbaron@akamai.com, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, gregkh@linuxfoundation.org, linux@rasmusvillemoes.dk, Jonathan Corbet , Andrew Morton , Will Deacon , Orson Zhai , linux-doc@vger.kernel.org Subject: Re: [PATCH v2 15/24] dyndbg: extend ddebug_parse_flags to accept optional leading filter-flags Message-ID: <20200615153727.GK31238@alley> References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-16-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200613155738.2249399-16-jim.cromie@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat 2020-06-13 09:57:29, Jim Cromie wrote: > change ddebug_parse_flags to accept optional filterflags before OP. > this now sets the parameter added in ~1 What is "~1", please? > --- > .../admin-guide/dynamic-debug-howto.rst | 18 +++++++---- > lib/dynamic_debug.c | 30 ++++++++++--------- > 2 files changed, 28 insertions(+), 20 deletions(-) > > diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst > index 6c04aea8f4cd..4f343e6036f5 100644 > --- a/Documentation/admin-guide/dynamic-debug-howto.rst > +++ b/Documentation/admin-guide/dynamic-debug-howto.rst > @@ -217,13 +217,19 @@ line > line -1605 // the 1605 lines from line 1 to line 1605 > line 1600- // all lines from line 1600 to the end of the file > > -The flags specification comprises a change operation followed > -by one or more flag characters. The change operation is one > -of the characters:: This removes rather useful information and there is no replacement. > +Flags Specification:: > > - - remove the given flags > - + add the given flags > - = set the flags to the given flags > + flagspec ::= filterflags? OP modflags > + filterflags ::= flagset > + modflags ::= flagset > + flagset ::= ([pfmltu_] | [PFMLTU_])+ # also cant have pP etc > + OP ::= [-+=] I have to say that dynamic debug interface always looked pretty complicated to me. But I have no idea what the above means. It explans some syntax. But it does not explain what filterfalgs and modflags mean and how they would affect the operation. Also some examples would be very useful. Best Regards, Petr