Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1899203rwb; Thu, 19 Jan 2023 17:28:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXtmZeE6yIDI968ONGB0XV2YqCZQyjx6dEpI8Lf/QUNhc4ih6M/gbv/PXA1tBG9pjuF6UC1Y X-Received: by 2002:a17:903:2611:b0:194:cd07:a8ba with SMTP id jd17-20020a170903261100b00194cd07a8bamr3833735plb.32.1674178133066; Thu, 19 Jan 2023 17:28:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674178133; cv=none; d=google.com; s=arc-20160816; b=ZkTlzsgkXvSEcTZgsth+MzfsOQ6/URIIUseCHIGbriT7C2PHhVTAeoWioxm3HcfVFk hud3AuVI9iDtjCyNpNZ/NngHbBZOHfM88oCbGzUGLZ/Mz+1HDzisQG8kQc5UwyQYCOvr fYbfSwLigEK+Uwo73jEMOkxOWC5oKQdaf8RFWcS340kVkSLK5rjk9gK5RvSYNb+yKJvM wOvMhQOuyYP10Hmv8HuhJZMRlEPzJ5oF/NmcaeQ74MZYipywRp9WGeib4u8u8rMT9o8G z+mLdZ0H/MsxpGcGYHOBCwu20mfBLBr5UzB908c5MFaTNCPsSRt4GNYNZCr1MIuPjiAQ pJzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CBmcNwL+aCKg0OyJFs8OQoByhuxvR6d0y1rKM5CmK5o=; b=Vcrzlw5Cf1VLtBOvJ55jqDzjwFAfbHXJEmrUD2GfvWhTJ9M6Czida3CxaCGBntgCa7 QPjO1qcLiywDe894VvcBOnewn+las9Bea9Gki62Tw02rHCFYygDAqPurjXArs/YmCX/k V8VquLnMKTS8gtRRXOtDh7AWG4uhvt7Cn7ypSDVqdWMqrER67Z1LJJdJjKvX69QA5Sdc UvEVSpou8DEKQO9gwnUZ2atR3bVcyU8AGtQPSDtqYusrBMv94sXRB9norTfZmp/+HTPs E4Qa5J7j12cIOXxsdBiNSKglUl8FmEW+RlN0qGsfYaqZGYzgC87qu+Luq0XXopbbv4mi L5fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JXRMl3Tl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k62-20020a638441000000b004cf4fcf9c15si9807726pgd.52.2023.01.19.17.28.47; Thu, 19 Jan 2023 17:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JXRMl3Tl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229775AbjATAxZ (ORCPT + 46 others); Thu, 19 Jan 2023 19:53:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjATAxY (ORCPT ); Thu, 19 Jan 2023 19:53:24 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1FAE9AAB9; Thu, 19 Jan 2023 16:53:21 -0800 (PST) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 17ABE514; Fri, 20 Jan 2023 01:53:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1674175998; bh=leFNSZshv+kpPN94K/far0pL9B7KIYKntxiaXNDjR4w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JXRMl3TludEwKOM8ACTPCGPZ4KXVAtKd4a3LEYyl3mTLrxbLqBhtSIZedlnTVXzYI R06RARw7I8Ajys8fEhQgvNMUnJWIqimdY5Ofi+CJS0/nTh7lw9mAiUKA8SrYT2UjgC x0wHKgEKCMqDg4UzmmyfJqIsRFssMHj5XFC41gI8= Date: Fri, 20 Jan 2023 02:53:15 +0200 From: Laurent Pinchart To: Dan Carpenter Cc: Phil Elwell , Greg Kroah-Hartman , Stefan Wahren , Umang Jain , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, Florian Fainelli , Adrien Thierry , Dave Stevenson , Kieran Bingham , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/4] Drop custom logging Message-ID: References: <20230118115810.21979-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 19, 2023 at 05:37:48PM +0300, Dan Carpenter wrote: > On Thu, Jan 19, 2023 at 02:31:50PM +0000, Phil Elwell wrote: > > On Thu, 19 Jan 2023 at 14:25, Dan Carpenter wrote: > > > On Thu, Jan 19, 2023 at 01:47:44PM +0000, Phil Elwell wrote: > > > > > > I understand the desire to remove the custom logging. I don't welcome > > > > > > the loss of flexibility that comes with such a strategy > > > > > > > > > > What "loss of flexibility"? You now have access to the full dynamic > > > > > debugging facilities that all of the rest of the kernel has. What is > > > > > lacking? > > > > > > > > Perhaps I've missed something, either in this patch set or the kernel > > > > as a whole, but how is one supposed to set different logging levels on > > > > different facilities within a driver/module, or even for the module as > > > > a whole? > > > > > > Yeah. You will be still able to do that and more besides after the > > > transition. Cleaning this up makes the code better in every way. > > > > > > Documentation/admin-guide/dynamic-debug-howto.rst > > > > Are you saying this patch set gets us to that point? > > Yes. The patch has some issues, but yes. I think I'm missing something too then. Dynamic debug provides the ability to easily switch dev_dbg() messages on and off at runtime, but it doesn't provide, as far as I'm aware, log levels or log categories. Log levels are currently used by the vchiq code to suppress messages below a certain level. Kernel log levels are not an exact replacement, as the messages still end up in the kernel log (except for debug messages). Log categories are used to group messages in categories and control their log level per category. As far as I know, dynamic debug doesn't provide any such feature. -- Regards, Laurent Pinchart