Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp264045ybg; Tue, 9 Jun 2020 23:33:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJaBywOQUQt/NSunJUM9Pj4nl6MzbMTBzJiqOR9iO2VqvW53Opnd0yvWFGD4rh/vEQx+hf X-Received: by 2002:aa7:d6c1:: with SMTP id x1mr1182200edr.154.1591770796981; Tue, 09 Jun 2020 23:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591770796; cv=none; d=google.com; s=arc-20160816; b=lVIluMHjN7hWVPJqqW5VWZjfQuJvdahSpddZmUktgreAmJWgDXug2vJzBQV0P6adZ2 Mh/Dr6lr6aMqXDF8LdyNeP+2xU7Nx+HkvMGDcWl7JKJacvhD/XYljnwb6KXGCI7ZyS6a Hz7OKYkNsdu7+IPb+v3zEb5bAcG99odMZqkADDKD8UbszTRE6/Z8EeY3u4Hbt9r8W+Ns 7hwB8ao6IOrgTS719THZQgICAJ1+vSr4HMZSH9hU0ZwUhelalJNnJ7kMbS8EGJpfwYpq cAJ3Z1MjK3vxyHMqJHv+XtKFMEyMCuojukT8AyMU76J6xYzKjzfcg3MlU+5A1HNLiJjz 3Z1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zyaRohiMBXI7RrvgNqV+vdFZo2dbVTFySV9Gy5Kmcn0=; b=eSxcF7/DfbdKPBHfzfe2wcp4BItjqpQo1db4VIgrYI9H2lqGGesGJoiYkO7ReFe7YE RhXq/fAv3euCQO6aqhOxJbuRKkfUiSx7tse/fhQiCZWBYb6GT4p/bJaIlN/m9CKT5HRy e8npQt405RQU4u8dHeT4WtEXRfy/SzMNkL8MdTq6VQuti5+WM2foVtqBdPDJKOCjsUpT y+Kpl742xQ493B8BU1lVDkuZxxp2rbwfV4Ngl8RE916H+IKJwVinWEjxcRQEM5JOmP0m 9yL0GipMAPRV5S1U5ykDvdXqEwA5AqFyE3JSSgocvuvNHvQ7MAW+Rgho6+yVYhOu3CJC pFmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E8Cvgegk; 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 i7si3761201ejo.684.2020.06.09.23.32.53; Tue, 09 Jun 2020 23:33:16 -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=@kernel.org header.s=default header.b=E8Cvgegk; 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 S1726260AbgFJGbH (ORCPT + 99 others); Wed, 10 Jun 2020 02:31:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:46980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgFJGbG (ORCPT ); Wed, 10 Jun 2020 02:31:06 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77AC320760; Wed, 10 Jun 2020 06:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591770666; bh=HWqfOjSKZShVNILAl4Rwx3P52sNZxPeoQVKJIj6dIEU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=E8Cvgegk66cCXmlxVRnTbOP7DpmPu5rN+pO2KqHRyhnv/CabF0fwKFwbWzu+l0hYQ IM90rm9VemBskzD0IvXHXOA9jewhU/xl7ji+nePWuDVYBIvD//3KQwBdgJHupS60Cb Mp4tTOCmUlP2s0Dvu08GFR/RNf9CfM/iCqVNvE2o= Date: Wed, 10 Jun 2020 08:31:03 +0200 From: Greg Kroah-Hartman To: Joe Perches Cc: Stanimir Varbanov , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, Jason Baron , Jonathan Corbet , Jim Cromie Subject: Re: [PATCH v3 1/7] Documentation: dynamic-debug: Add description of level bitmask Message-ID: <20200610063103.GD1907120@kroah.com> References: <20200609104604.1594-1-stanimir.varbanov@linaro.org> <20200609104604.1594-2-stanimir.varbanov@linaro.org> <20200609111615.GD780233@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 09, 2020 at 09:58:07AM -0700, Joe Perches wrote: > On Tue, 2020-06-09 at 13:16 +0200, Greg Kroah-Hartman wrote: > > What is wrong with the existing control of dynamic > > debug messages that you want to add another type of arbitrary grouping > > to it? > > There is no existing grouping mechanism. info/warn/err/dbg is what I am referring to. > Many drivers and some subsystems used an internal one > before dynamic debug. > > $ git grep "MODULE_PARM.*\bdebug\b"|wc -l > 501 Yes, and it's horrid and needs to be cleaned up, not added to. In the beginning, yes, adding loads of different types of debugging options to a driver is needed by the author, but by the time it is added to the kernel, all of that should be able to be removed and only a single "enable debug" should be all that is needed. We do not need each individual driver thinking it needs to have some sort of special classification of each type of debug message. Just use the framework that we have, you can enable/disable them on a line-by-line basis as needed. > This is an attempt to unify those homebrew mechanisms. All of those should just be removed. > Stanimir attempted to add one for his driver via a > driver specific standardized format substring for level. > > > And who defines that grouping? > > Individual driver authors That way lies madness, let's try to fix all of that up. greg k-h