Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2383192ybt; Tue, 16 Jun 2020 04:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJfzyMCGylaFABJOe9GTKGpiIYKTj9ufgyX9ZWeenlyj+3aQDJk0yyMGAFwSyjMvz3QSpF X-Received: by 2002:aa7:da14:: with SMTP id r20mr2202993eds.7.1592308273874; Tue, 16 Jun 2020 04:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592308273; cv=none; d=google.com; s=arc-20160816; b=J0N/kgQzaUzwwvWEpaEqRK6imdNNeotL/YdwCNdMwsdROzwdE5m5IoLowGO2wDg6X0 9LqqPSqCRaLcnE8R/vMFwXKstMly9T/crte46RYsuR6p5vnUp+4PM9jV7nl0kfe/EGVU Er0GAXh/gf99u+l5JKTmPRXv7CqSIRiIwVkhqhRAjHZXK2pmx/SA1tX2UM+zG4SKpv2g HGh4JT2Rwtfoc6Mbrmud4qnNK8jTmojXXkV2TA6Mo1wXhgqGNxv2Dk4jCO763ZzTKakP 1cndSPgYW9K8FRNlkbmk4tfn99kxNFYq7stdy3ovknXmEU5h/lpV4Xm7azZjznm2Kd59 efkA== 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=jixDn8KXkwSaCzfX94wD26AtflpAzFqPjRF81dRlQbU=; b=kHGd56JXKJwjEdMifs7nPq/2okJZFFUk+64gb0KNmnFKfZzx7b0sRt7BhVthmgorqA lQy37vZuel7cL2XreLk66iBe4hpJSnHR06ggzOa9LFO/xJvpX1WW4zl4MD6P6Duyz8iB pTPRSHM4x6X1iGDzb+BgKGFrJTqIzJKr+pXv3JqM3Q1zGYJaLjtuIkKLTYUJRWigKuBy LTvjSR2Gghc4LB89AlmynuJw0yT6copJjB3k5OTrtcXfi2nocIi5jWN532Jklg4wxKm3 8ZebZh/2eLMLwKiWgAuCIb4n48JI4RLKMIAb+AAdaB/HZhJOd9W+ieM6qlGSgjxyYuv5 NcJQ== 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 c24si10300835edv.129.2020.06.16.04.50.50; Tue, 16 Jun 2020 04:51:13 -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 S1726692AbgFPLrF (ORCPT + 99 others); Tue, 16 Jun 2020 07:47:05 -0400 Received: from mx2.suse.de ([195.135.220.15]:41376 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725775AbgFPLrF (ORCPT ); Tue, 16 Jun 2020 07:47:05 -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 7D1F7ADD3; Tue, 16 Jun 2020 11:47:07 +0000 (UTC) Date: Tue, 16 Jun 2020 13:47:02 +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 , Orson Zhai , Andrew Morton , Will Deacon , linux-doc@vger.kernel.org Subject: Re: [PATCH v2 18/24] dyndbg: allow negating flag-chars in modflags Message-ID: <20200616114702.GM31238@alley> References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-19-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200613155738.2249399-19-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:32, Jim Cromie wrote: > Extend flags modifications to allow [PFMLTU] negating flags. > This allows control-queries like: > > #> Q () { echo file inode.c $* > control } # to type less > #> Q -P # same as +p > #> Q +U # same as -u > #> Q u-P # same as u+p > > This allows flags in a callsite to be simultaneously set and cleared, > while still starting with the current flagstate (with +- ops). > > Using filter-flags with negating-flags, you can select exactly the > flagstates you want, both required and prohibited. > > Then with negating-flags in modflags, you can set and clear every flag > > #> Q umfLT-Pmf # select sites with u,m,f only. enable print, turn off m,f leave u > > Its not an important feature, but it does fill out the logic. > and the patch is tiny, and feels more symmetrical. I do not think that it is a good idea. Many people do not like perl because it allows to do the same thing many ways. The result is that the code is hard to read. There are too many coding styles and tricks to understand. Best Regards, Petr