Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp361163ybt; Wed, 17 Jun 2020 02:57:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz/fhYzwglnz3c0je0D8bsF3fjwBqzVUFPcQcirG1EUJ5YvNGEt+lJpbdobENNIQ1H+2oX X-Received: by 2002:a17:906:1947:: with SMTP id b7mr6508901eje.320.1592387824738; Wed, 17 Jun 2020 02:57:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592387824; cv=none; d=google.com; s=arc-20160816; b=tkdAqM2+jfYf4Xmh/8J94viIehOAQ9BI10Azvdfv9jLGVS5GZwFXYXyopL/KRKqPae NfmeWT5lAYgAXj2em66sNOJ7jq3HMtpqQc+2/1bwr4whh7Au2V2j/r2s5lsEdp0uvsCT hw8DdAWyr50Dtk5As6zszc0ItlrUXjgjyaEPgj1ZS6VeRBEephvUiKG5SU0GSfZdZ4nd lgWADlAKGFZk80Iiq3E2OsszmuUMshyZYk/AU6gtIy58XLAyvEMUkuf2lnmQbUndwItt OwcobjGcr32ET6e/cI42C1N/cH6wgHQtaRCOtvwfcdpEcl8k2VUe+6IDY07aQSsDg3kl wwCQ== 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=vLIegzFAbOEGqiiZzzp+UOU0huKYDwCK+cgABsP2fo4=; b=n7ArAQZKtIt7TEU/kS3ZdW+5xlVsfdJ0AOWt2azoJk7Q1jBu/p6rTEW4eBaXEOy9Wo 02Xf+vQ7dcR0M2JVsn0b8VvzykuR1gwDiaHvSTc8CEuWYlT1Cm+i/+Xr+Uw6hYCmERg5 GXJJx+2L5yzQbeknErWQqwausS0RgqRS/XN2S+LSvR+ku8TjUOZM9lCclInC7xJzxflM 2/+fMjpNlxRB6kYUgOOUqdczWjhnNYxD55w3XDGxxhJ3+WDLs48eU9mUVGTvYiXW+Qur iw6CEo/Fcm2zhPtJtupNNx3pruDgYQbh+gscNvQK7tEwczpcRjTWQJChg/7HhMNUp//M tI1A== 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 d22si12555184edv.113.2020.06.17.02.56.42; Wed, 17 Jun 2020 02:57:04 -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 S1726134AbgFQJw7 (ORCPT + 99 others); Wed, 17 Jun 2020 05:52:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:47000 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgFQJw7 (ORCPT ); Wed, 17 Jun 2020 05:52:59 -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 CD345AC52; Wed, 17 Jun 2020 09:53:00 +0000 (UTC) Date: Wed, 17 Jun 2020 11:52:55 +0200 From: Petr Mladek To: Daniel Thompson Cc: Joe Perches , Jim Cromie , jbaron@akamai.com, linux-kernel@vger.kernel.org, akpm@linuxfoundation.org, gregkh@linuxfoundation.org, linux@rasmusvillemoes.dk Subject: Re: [PATCH v2 20/24] dyndbg: WIP towards debug-print-class based callsite controls Message-ID: <20200617095255.GU31238@alley> References: <20200613155738.2249399-1-jim.cromie@gmail.com> <20200613155738.2249399-21-jim.cromie@gmail.com> <20200616134507.GO31238@alley> <5b0fade06c46da0a469266738c684ba55d8e39f0.camel@perches.com> <20200617093154.v7mf5355faa4c7ob@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617093154.v7mf5355faa4c7ob@holly.lan> 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:31:54, Daniel Thompson wrote: > On Tue, Jun 16, 2020 at 02:05:27PM -0700, Joe Perches wrote: > > On Tue, 2020-06-16 at 15:45 +0200, Petr Mladek wrote: > > > On Sat 2020-06-13 09:57:34, Jim Cromie wrote: > > > > There are *lots* of ad-hoc debug printing solutions in kernel, > > > > this is a 1st attempt at providing a common mechanism for many of them. > > > > > > I agree that it might make sense to provide some common mechanism. > > [] > > > My problem with this approach is that it is too generic. Each class > > > would have different meaning in each subsystem. > > > > > > It might help to replace any existing variants. But it would be hard > > > for developers debugging the code. They would need to study/remember > > > the meaning of these groups for particular subsystems. They would > > > need to set different values for different messages. > > > > > > Could you please provide more details about the potential users? > > > Would be possible to find some common patterns and common > > > meaning of the groups? > > > > I doubt the utility of common patterns. > > Verbosity is common but groupings are not. > > > > Look at the DRM patterns vs other groups. > > I've seen drm.debug mentioned a couple of times but the comments about > it seem to only learn part of what is shows us. > > drm.debug is a form of common grouping but it acts at a sub-system level > rather then whole system (and gives a whole sub-system enable/disable). > This is where grouping makes most sense. > > The result is that drm.debug is easy to document, both in official > kernel docs and in other resources (like the arch distro documentation). > Having controls that are easy to document makes them easy to find and > thus sub-system grouping leads directly to higher quality bug reports. Thanks a lot for explanation. Now, could anyone please tell me how this new dynamic debug feature would allow to replace drm.debug option? I mean what steps/commands will be needed instead of, for example drm.debug=0x3 command line option? Best Regards, Petr