Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4718935iob; Sun, 8 May 2022 23:08:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwEvQ/QZDd+LN0x7xx7WOBAMkSTVI5BINY6imDdksMuurveA8Yjm25QLDDj+FAOOeZU805 X-Received: by 2002:a17:902:b682:b0:15d:29:9820 with SMTP id c2-20020a170902b68200b0015d00299820mr14777134pls.134.1652076523486; Sun, 08 May 2022 23:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652076523; cv=none; d=google.com; s=arc-20160816; b=rtnSCsOKa1cqYYIkiamwAlrz1C1+4WALvJRLYHSR63Q63LDb16T8lX3qr7KDC0TxKC /q6S2zWVxlFrh9suAWSPEU2P/s1d5GL5lVSKphpZRyuhjetJvgxtWl9wnmWrTpqPT7Eo w5crewX6ImwqkmlHWHKA1JZzlHo8uknwEnHHWWtGIdxLKC+p7nKwaAn6fevsHL5eQv/r WnE0XmSrcxWInBQRpusHtBSeYSE6H5yrLmZrLNRoukdryDepjRCk6A1k20qhJbXTctfK jEdf/X2AY2TU4DvtfV+6BTN5sY2GyG/Ib0OjwAE56JtFE2huGN72jINEjZBy5+F4Beip xTQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9xUjY/Sk1s4u2esh57fjrL6TCcB4aUwi+kflp6Fv2t8=; b=oRxmO/R4EY9zIIsonKEZvnhGC+PRx0b3JZsQh1TPDhOYvJyjh1zaAGggdaD9ZorC/e xtBtzOdMLBcX6NCLs7IsRQnt97VM/09IYKYpFuroGfugN0eoETRbw2+yyxIEdnctSd98 ACpGgr2xvDQqsjf5ZwGzcaX+RQ/mVsdmOXIBMZBNFE4md+4xoMjF1tMopB/QCHb0lE/S tNyiRcG6PoZyGiA0EiqKYO4a3cPg6SP6ksflH4jlm6EcI9pNVMi+J33QDWvfTOfSyDBr vGmD4rAO4QFPyvqPgaMcqZW+K1doYlzvXGN/qi/1yJz84ZGgcwyEbB5xT3IfMGQW3VTG Lxlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vZPpQvL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 71-20020a63024a000000b003c26048ca0bsi12896948pgc.860.2022.05.08.23.08.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:08:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vZPpQvL1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1F122114D; Sun, 8 May 2022 23:05:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388863AbiEFEJv (ORCPT + 99 others); Fri, 6 May 2022 00:09:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381072AbiEFEJu (ORCPT ); Fri, 6 May 2022 00:09:50 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08B424CD56 for ; Thu, 5 May 2022 21:06:07 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id iq10so5992179pjb.0 for ; Thu, 05 May 2022 21:06:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=9xUjY/Sk1s4u2esh57fjrL6TCcB4aUwi+kflp6Fv2t8=; b=vZPpQvL1o6mLIpHBQJcuUdaxxwP8V87v52/wrzRkz1TkrAtEJeHmq35SHTv+gTpD4L 5jEqB6oj8/EjqpJbaGYPu4NNdJ+74CEZF3uY3B/eoItBXf3iVh0vMFSJt0jwtSLKXdgl 4UX9q4yNJOBJeWC3troOuSVLKDokz5dqpZcltI2rqWktv6pPDY06w8+MfNAxsvwahhtt eywjmHiTp8wPX3UELcHUxjhIJ/gvQaMMl9M7gGdScWSCXbuwP+YWAavvZwMJdrxQA9EU SeVyi89aAr68/9g9uFXtPXO8xoiiQd6cl9ZVAhf/H+T7xegllLovV6AmICCfqR8szrf9 +FgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=9xUjY/Sk1s4u2esh57fjrL6TCcB4aUwi+kflp6Fv2t8=; b=ofF7oAKUJyqlsBrx39FIGawSYJvOZ80pwV14CWlQ3hVs98xlJaA6kARuKR41cVY8t9 iKu+SPZWfaTCuagAcMffEP+qsyc6CxNUTU7lENCtGH3iO/bfR6oW+hzfwza9eZn+laVc +dMLysaPPdGyI75PqCYMWZpObpCavNKQCDpiGGpcwMdoJNWvXg8/g4udFXd+iDlmiSTZ P/xa3eACz8aeCeyJ6Qz/q16R0wqkgTSAxLiHPo3vIYD+WkoPeCr/33+17kvjC6+FFFAW ADqaS0FEO1fyIQNZU33DJWKRzTTc0CtW5OnBs1ZUaDyh5uyPQzDPa/LZZd58Y5Lqy+bQ ERtg== X-Gm-Message-State: AOAM533qvTU5pHWbywfoYTI2AvmaFKhzuGPozbqzlvN3kwCSQDHaS3VY +t5KHlFI+UbShcqyEym4UMYcmA== X-Received: by 2002:a17:90a:4417:b0:1ca:a861:3fbf with SMTP id s23-20020a17090a441700b001caa8613fbfmr10164152pjg.80.1651809966534; Thu, 05 May 2022 21:06:06 -0700 (PDT) Received: from localhost ([122.162.234.2]) by smtp.gmail.com with ESMTPSA id b10-20020a17090a550a00b001d954837197sm6072611pji.22.2022.05.05.21.06.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 May 2022 21:06:05 -0700 (PDT) Date: Fri, 6 May 2022 09:36:03 +0530 From: Viresh Kumar To: Frank Wunderlich Cc: Frank Wunderlich , linux-pm@vger.kernel.org, Greg Kroah-Hartman , "Rafael J. Wysocki" , Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-kernel@vger.kernel.org Subject: Re: [RFC v1] opp: add config option for debug Message-ID: <20220506040603.xumqemlcrlrolqmw@vireshk-i7> References: <20220504174823.156709-1-linux@fw-web.de> <20220505055857.bqjm72qkzwcbuvuh@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 05-05-22, 17:54, Frank Wunderlich wrote: > you mean something like this: > > https://www.kernel.org/doc/html/v5.17/admin-guide/dynamic-debug-howto.html#debug-messages-during-boot-process Yes, though I haven't used it in a long time myself :) > so enabling debug only with cmdline-param... Yes and via debugfs file. You can basically control debug messages based on subsystems, files, functions, etc. > have you a simple example how to implement it? have not done anything with dynamic-debug yet...seems mighty but not trivial to implement. > > currently dev_dbg() is used for the messages that i try to disable...but show others from driver_debug at debug level. > > What needs to be changed to filter it via DYNAMIC_DEBUG? Nothing, just enable the config for dynamic debug. > found this, but i'm not sure if i interpret it the right way... > > https://elixir.bootlin.com/linux/v5.18-rc5/source/drivers/acpi/utils.c#L495 > defines __acpi_handle_debug > called via acpi_handle_debug macro > https://elixir.bootlin.com/linux/v5.18-rc5/source/include/linux/acpi.h#L1136 > > so basicly convert dev_dbg to __dynamic_pr_debug > > at least much more changed code because all dev_*/pr_* needs to be changed to own handler which does the switch based on CONFIG_DYNAMIC_DEBUG set or not. You aren't required to change anything there. -- viresh