Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1643862ybt; Thu, 18 Jun 2020 13:42:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDCv3mup2OrbIXAjEeP8fAh5MDkENsiqZ0h19C8vjdlyZC5GjPEXEcuMxmaXj3c9SzNMew X-Received: by 2002:a17:906:da05:: with SMTP id fi5mr499921ejb.95.1592512963146; Thu, 18 Jun 2020 13:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592512963; cv=none; d=google.com; s=arc-20160816; b=l5eEzsLwRtjwX47lq/v00a9bWw8VAIG9l/a0xdh02HGoqnZ2SwSIDNtknLHZWFEmSp LV2wb+gTRv/mXtl8vqfuCOu9UjXztVmZW5XWMrxXwBBOHklCGULD/GzU4U++bsuy6sEb VMz7h9LJ7v0t1wTO21phX7SnOjtlRHxFNcJidqesG6B3wKcJ+xRItb7D0X4dgpqbo/AQ wUhJRbRD2NxZnUunVlYaMAKVWRFsOvdkhXIrFqXOrK0U4w1BqdCZOB/edHsSyDpuhPFg xyDQ/MruHYSemsZb1alIr0pOakxeeQ5hj0Yrt/YSG6CQgJPJn/KslhNV0i7fHaimVI3/ J9mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=5gXUAQeHbErOV5ynbvpo9o+w8PM8zAlucaxTRG/q2Z4=; b=1EsckBnVjFBQTTQnWFqb24pUw0AHlbtEpoyE0hEf0w0amzthIKklkYS8/YmydgQldA WRmzfNZJKlqyAN2Lg4jPseK63A4pmP/JVHywUWkgPQ3m+t9aVnif2raNAoExHUJnElD9 4tn2TGbdqLkAjQ1hVXf1oSujUnwOZG2XN8fxI+R83vwpYszqsTf0nzvDLd7mccWEwj9B I0ijaoAxnBtq2PtV5pLGEcib7YQklVK8/4TsSUd0rJINclgjyo9ytQZ8VM1kHp9IKm/g gpQqv/4roqMQLDtLMyGNEME4aOBRwyc7wqAH5nXTLE4vIcl2D9lZ2MMoXrVEP2lCzysY posQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cVEC93Si; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jx20si2477999ejb.643.2020.06.18.13.42.18; Thu, 18 Jun 2020 13:42:43 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cVEC93Si; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730127AbgFRSPr (ORCPT + 99 others); Thu, 18 Jun 2020 14:15:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727929AbgFRSPn (ORCPT ); Thu, 18 Jun 2020 14:15:43 -0400 Received: from mail-ua1-x943.google.com (mail-ua1-x943.google.com [IPv6:2607:f8b0:4864:20::943]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F16FC0613ED; Thu, 18 Jun 2020 11:15:43 -0700 (PDT) Received: by mail-ua1-x943.google.com with SMTP id x14so2313090uao.7; Thu, 18 Jun 2020 11:15:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5gXUAQeHbErOV5ynbvpo9o+w8PM8zAlucaxTRG/q2Z4=; b=cVEC93SiNSUmUhGgNZnWbKW4cVsINB2cNtZt5hhTEvjvKX4a2J6jkB1Hq7zyvO16E8 tM//w/FgiOU7VH5bZc2+M5AxtJeQy2xrVk/sTdnht4e9xsDzXgxs5JE8dmB7gVYWqK2v 2zGbbeSmsI7BzTHs842eO4KTA7PhKCCq8bkCCph/M2ldHlQozQ4yFga4RQYFyxvIJROt woJmwqTuC40+zQlvWIGCJ08708yxkKDFwWZ7kLC5tKPOE8ynt0Yt3XcWJUdkFFRi83Zo Pml5kILn2FMzmnRgzqudR22MDGE4p/9eK/RerNuYHlYdELc+pbObvg+ZJ3+vFfQRBKsK HzSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5gXUAQeHbErOV5ynbvpo9o+w8PM8zAlucaxTRG/q2Z4=; b=EuCxAlX246W6KOUK+JWr+heCavHkT5Vgpd9AlpObRbjknQZFWEyBWF6F/Z5JoGDHOR HIcdwaVrzs69HY9713UrgTlZuX7bJfC2I4eWAapc3yBvD5IZQiBnaan7Meirydpz1IWI /6CaPrb5QB4wgp0Z+O9Zud1+GqCDpnfjL5RVlbhOt14b1AcIbkf7YG/ndy5HQk7QoG2/ kozbtigUooV/037zd+q72sudtlhyZRaYxhDQ/Ar0M7ryz6yvxDNbkDjwqEhUyxvs0gT9 13+YAdpTyZtMsR7D4JYWBuz3YzTovhAUETJ+BTGOV0umdc8Bvu7MI0ochvZuWBJTwlpc vf0g== X-Gm-Message-State: AOAM530EYLjq3CCjPFG/Vd94XhZYmeHdE/R60ti9M9I55ciI+7Plilxp VLjrK2Qy6kjJ/gyMSYl9IpTRvQZvVU9Ydl5rdUA= X-Received: by 2002:ab0:61d3:: with SMTP id m19mr4534962uan.23.1592504142300; Thu, 18 Jun 2020 11:15:42 -0700 (PDT) MIME-Version: 1.0 References: <20200617162536.611386-1-jim.cromie@gmail.com> <20200617162536.611386-23-jim.cromie@gmail.com> <20200618161912.GD3617@alley> In-Reply-To: <20200618161912.GD3617@alley> From: jim.cromie@gmail.com Date: Thu, 18 Jun 2020 12:15:16 -0600 Message-ID: Subject: Re: [PATCH v3 20/21] dyndbg: add user-flag, negating-flags, and filtering on flags To: Petr Mladek Cc: Jason Baron , LKML , akpm@linuxfoundation.org, Greg KH , Rasmus Villemoes , Jonathan Corbet , Andrew Morton , Will Deacon , Orson Zhai , Linux Documentation List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 18, 2020 at 10:19 AM Petr Mladek wrote: > > On Wed 2020-06-17 10:25:35, Jim Cromie wrote: OK. Please tell me how this chunk of prose fails to explain a use case for the u-flag we can differ on how useful it looks. if u-flag is useful, then filtering on flags is also needed, to use the flag to enable/disable an arbitrary set of callsites all the other "flag abuse" you disliked in last patch is avoidable, unless 2 people are chasing 2 separate problems, and need to keep their sets distinct > > Why ? > > > > The u-flag & filter flags > > > > The 'u' flag lets the user assemble an arbitary set of callsites. > > Then using filter flags, user can activate the 'u' callsite set. > > > > #> echo 'file foo.c +u; file bar.c +u' > control # and repeat > > #> echo 'u+p' > control > > > > Of course, you can continue to just activate your set without ever > > marking it 1st, but you could trivially add the markup as you go, then > > be able to use it as a constraint later, to undo or modify your set. > > > > #> echo 'file foo.c +up' >control > > .. monitor, debug, finish .. > > #> echo 'u-p' >control > > > > # then later resume > > #> echo 'u+p' >control > > > > # disable some cluttering messages, and remove from u-set > > #> echo 'file noisy.c function:jabber_* u-pu' >control > > > > # for doc, recollection > > grep =pu control > my-favorite-callsites > > > > Note: > > > > Your flagstate after boot is generally not all =_. -DDEBUG will arm > > compiled callsites by default, $builtinmod.dyndbg=+p bootargs can > > enable them early, and $module.dyndbg=+p bootargs will arm them when > > the module is loaded. But you could manage them with u-flags: > > > > #> echo '-t' >control # clear t-flag to use it as 2ndary markup > > #> echo 'p+ut' >control # mark the boot-enabled set of callsites > > #> echo '-p' >control # clean your dmesg -w stream > > > > ... monitor, debug .. > > #> echo 'module of_interest $qterms +pu' >control # build your set of useful debugs > > #> echo 'module of_interest $qterms UT+pu' >control # same, but dont alter ut marked set > > Does anyone requested this feature, please? > > For me, it is really hard to imagine people using these complex and hacky > steps. > > Not to say that using t-flag as a markup looks like a real hack. > People either always need the line number in the kernel log or > they do not need it at all. > > Let me repeat. Please, stop this non-sense. > > Best Regards, > Petr