Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp288166ybt; Fri, 19 Jun 2020 01:54:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSNxkkl5E2DE+pDOt3gbrF6mtp0jvFIWoMNMpH7fge/JDvQwyZV3Mp80NiA4ZXQJXzSpKz X-Received: by 2002:a17:906:af84:: with SMTP id mj4mr2252993ejb.473.1592556883285; Fri, 19 Jun 2020 01:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592556883; cv=none; d=google.com; s=arc-20160816; b=F0lZgPIF+W3gGeCD0MPXi8CZ2bTACLzbD6P2HAj2NqzGIGPEVX7PpM1FoCtwJh6ChF dHeBlUW+VgEfDfkf4/tS4h3E+DdwLpNBAe46tAHnYNrTKgUHbLFamA2EWlQ7HJlxJflS 3m2b2Ehc9f9OwY4euzE4uIutbVEiRtzTZQOJ7zWB6I8OjzmNyjUKOY8O/CbxEPweW1Ug UnXFXQBfmSH3eehARMKOrP4sqVqRmmUltanI2KOh1dFpR6O/2Eivn7FyVOhV2mmTcHpd 38Ru/+7V05d4TJPQy3JY5cwByrJP6E/2pSCXIA/npI1DJLY3drnA7ZaLFmsB/LFRX+jx ORvQ== 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=cNXacOnzwE81ZFJA9nNTaQn4ODztqqglZ0JOKU7bsRU=; b=Ce8dERXYKLEGNlrkVt077YIUrXD/LxMvo+pv5qee0QtkmXGjuNcbwKPrmNhIBHJ2Jp cRwFunAY1P9Pla9wuXheaDnXs5+FAb/SSW2WKO+0OSOavIuUmBBLZz6532FJoWX6pOH4 Kc8X/mbs79KMf+Ibdyo3AxARDMiHiDHn49aqFQAP5w7UqZU7ahX/EwQeHxrdeOD3Edcr Spc8vU1WcphOgixE3Rc39z6joicXTLbBhSSMd2NsAFf0z31Fqpslxm0s/alMyNS9bPIj yYTgbqDkvnF8NtbrfArICqyhLzTVlYysaDQljVUOjR6vU9WHeim/J7xou5DV32n1LuYO ebMQ== 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 f6si3799829edv.356.2020.06.19.01.54.21; Fri, 19 Jun 2020 01:54: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; 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 S1730751AbgFSHqB (ORCPT + 99 others); Fri, 19 Jun 2020 03:46:01 -0400 Received: from mx2.suse.de ([195.135.220.15]:56308 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730830AbgFSHqA (ORCPT ); Fri, 19 Jun 2020 03:46:00 -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 0D9FDB18D; Fri, 19 Jun 2020 07:45:56 +0000 (UTC) Date: Fri, 19 Jun 2020 09:45:55 +0200 From: Petr Mladek To: jim.cromie@gmail.com Cc: Jason Baron , LKML , akpm@linuxfoundation.org, Greg KH , Rasmus Villemoes , Jonathan Corbet , Andrew Morton , Will Deacon , Orson Zhai , Linux Documentation List Subject: Re: [PATCH v3 20/21] dyndbg: add user-flag, negating-flags, and filtering on flags Message-ID: <20200619074555.GF3617@alley> References: <20200617162536.611386-1-jim.cromie@gmail.com> <20200617162536.611386-23-jim.cromie@gmail.com> <20200618161912.GD3617@alley> <20200618174058.GE3617@alley> <746984fb-00ee-9079-efac-50167f3c3e40@akamai.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu 2020-06-18 13:11:05, jim.cromie@gmail.com wrote: > On Thu, Jun 18, 2020 at 12:17 PM Jason Baron wrote: > > Yes, I'm wondering as well if people are really going to use the > > new flags and filter flags - I mentioned that here: > > https://lkml.org/lkml/2020/6/12/732 > > yes, I saw, and replied there. No, the repply only explains how the interface might be used. There is no prove that people would actually use it. > but since that was v1, and we're on v3, we should refresh. > > the central use-case is above, 1-liner version summarized here: > > 1- enable sites as you chase a problem with +up > 2- examine them with grep =pu > 3- change the set to suit, either by adding or subtracting callsites. > 4- continue debugging, and changing callsites to suit > 5- grep =pu control > ~/debugging-session-task1-callsites > 6- echo up-p >control # disable for now, leave u-set for later > 7- do other stuff > 8 echo uP+p >control # reactivate useful debug-state and resume In short, this feature allows repeatedly enable/disable some slowly growing maze of debug messages. Who need this, please? !!! If I am debugging then I add/remove debug messages. But I never enable/disable all of them repeatedly. Also this is far from the original problem. It was about debugging a single driver (venus, drm). In this case, people need something easy to use. The following is the easy way: drm.debug = area_of_interest venus.debug = level_of_interest echo module=drm group=area_of_interest +p >control [*] echo module=venus group=level_of_interes +p >control Anyway, why filtering and 'u' flag would be necessary to debug these drivers? Is anyone going to use it? I would really like to hear the motivation for these features. Has anyone asked for them? Or are these just some "interesting" ideas from some brainstorming? [*] Well, I wonder if the dyndbg interface would even be useful for drm because it it is actually split into many modules. So it might require creating/maintaining several filters. Best Regards, Petr PS: This is probably my last mail in this thread. It goes in cycle. You repeatedly explain how many possibilities the new features allow. I repeatedly doubt that they are worth it. I also proposed another solution for the original problem (venus) but it has never been commented. I just hope that these features will not get merged without a clear interest in them.