Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1306404ybt; Thu, 18 Jun 2020 05:46:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzdXAwPtaNvBSKY/vBmC1jaK/O+nTsLIqduVnnaWrW/CEiWv9nt9i/DF7y1RMMS3UMkCNs X-Received: by 2002:a05:6402:459:: with SMTP id p25mr3784412edw.383.1592484391649; Thu, 18 Jun 2020 05:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592484391; cv=none; d=google.com; s=arc-20160816; b=JAxZeYX1bx1y8QRdryM/MiCNytNGHFg9iYq6E7e7JD+5L/4FzfZG4AQcLETzNYKKGh 22aRcgN8V/gel9z2UAvqXBYihVuuB9qe6Af8zf5KRdgKfqeD7fixHSs54BSDih43R3HL XIqAqGQWOUKoqLOQJaujQuCoczWu2Y1boS1yamZjPMplw1fizhlrVynMNPhYj0UY8N7a PU3LAHleKOYEeeXgVT1cuGbVDihWxf2TaoAY0/h17lKrfbSv5GqTpXmmI/7oprjLu1+Y SVBKW2YvJUbzlj/tSe7dP0EL7PomitHo0Itp462FmDHBl6ACuZhivfKQQ41GMGocQDTd iVBQ== 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=zUbXI7XNnvG5E25/oFv6eKFjDbsjIkJwCdtNTi4SEqU=; b=iOmvKr1E+I80Ycvwzldp78ekXDcm3i/LtOPOBfbnBCNLopOWIdKT9kBnWFKxGD5lbd lyWiZHurX+vWEOUnAdTr/8QbD8O20LnIuaxG7JIqWjyPQW6DUhVn4g4rO4v3mz5NYQg7 8rd7qZtLmhKgvULBdHI5sfimaQZSomgugctc9WiaQpSCQp1h2uPMrfBJzGRWlMaL/Q8U CFfv4JP0jehNrkV1zNTonseIv5CK8kpc5WkbOw3pw5K/xp1TyFzDDFfoBXHVgAzM0ipV RF+G50JsvnmtfC0a8Ebqvwg38YgrQBo5o5Tq1XOxSJ4BckYZaYFCGAVtnSiOpPVJy47M rkOg== 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 e19si2006107edr.418.2020.06.18.05.46.05; Thu, 18 Jun 2020 05:46:31 -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 S1729068AbgFRMoE (ORCPT + 99 others); Thu, 18 Jun 2020 08:44:04 -0400 Received: from mx2.suse.de ([195.135.220.15]:37648 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbgFRMoE (ORCPT ); Thu, 18 Jun 2020 08:44:04 -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 E9F67AB3D; Thu, 18 Jun 2020 12:44:00 +0000 (UTC) Date: Thu, 18 Jun 2020 14:44:00 +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 v3 19/21] dyndbg: extend ddebug_parse_flags to accept optional leading filter-flags Message-ID: <20200618124400.GA7536@alley> References: <20200617162536.611386-1-jim.cromie@gmail.com> <20200617162536.611386-22-jim.cromie@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617162536.611386-22-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 Wed 2020-06-17 10:25:34, Jim Cromie wrote: > Change ddebug_parse_flags to accept optional filterflags before the > required operator [-+=]. Read the flags into the filter_flags > parameter added in the previous patch. So this now supplies the > filterflags to ddebug_exec_query. > > filterflags work like query terms, they constrain what callsites get > matched before theyre modified. So like a query, they can be empty. > > Filterflags let you read callsite's flagstate, including results of > previous modifications, and require that certain flags are set, before > modifying the callsite further. > > So you can build up sets of callsites by marking them with a > particular flagstate, for example 'fmlt', then enable that set in a > batch. > > echo fmlt+p >control > > Naturally you can use almost any combo of flags you want for marking, > and can mark several different sets with different patterns. And then > you can activate them in a bunch: > > echo 'ft+p; mt+p; lt+p;' >control > > + * Parse `str' as a flags-spec, ie: [pfmlt_]*[-+=][pfmlt_]+ This interface is simply _horrible_ and I do not see a point in this feature!!! I as a normal dynamic debug user am interested into: + enabling/disabling messages from a given module/file/line/function + list of available modules/files/lines/functions + list of enabled modules/files/lines/functions I do not understand why I would ever want to do something like: + enable messages that print module name and line number + disable message that does not print a module name In fact, IMHO, all the 'flmt' flags were a wrong idea and nobody really needed them. This information in not needed by other printk() messages. Why pr_debug() would need them? They just made the code and interface complicated. Please, stop all this non-sense!!! Best Regards, Petr