Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp424312ybg; Tue, 9 Jun 2020 04:18:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyUuQLMh39WQ/17u93qzqpey5icLOVlbEdWo0YEvrPtrslr5QDh8tE/JwfsOGcQMZ8hlYTi X-Received: by 2002:a17:906:c831:: with SMTP id dd17mr21066242ejb.40.1591701524255; Tue, 09 Jun 2020 04:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591701524; cv=none; d=google.com; s=arc-20160816; b=0VB/OHEsKCyIb8HtKX98dFIIT+PM7Ja0jpmSqdIjIe9JlUM7kK0LA6RlAWonoeNTac 8LAB2sUB3WqCVFJc7rVSSllJhdzEKbk5LVmLAqEcvSbZnf5Kk2wd3TGbdjQ18xw1Gy+b mT7KbvX8HZsZwTX029MPnG/jSn7cm4YjSLL6igEESgAVkk9/WSDl9pMTsJiEpC3aUUN4 pNotsj9k98G2H4G5TnMk2gQJDGUh4eyQc0U3giJ2w31dzIwa0sU7m9obNWn8a3cLQjm6 tS4huR/jhMiQP275JZOBva3wzt/yqv0TQyaTmJiBV7ChmbdC6nV37QV5BAhXUCrxkwVk hYjw== 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=H6Bt8uMWDjTK8t/yUaPhFOCcoIyi3zdYHjLHVwsQvrY=; b=zFrfjZdyVJzu8uMWnw4/tgP2h2AXZNndIOH9u/T0af8HOQvOX6uTKiBOlgh+vnbCrg bMNLhtMcnz5poO5ZlczzwFRnt++mfxFKFvUKZi5q9OIuaiemM7iMw4N0UxAemimn5AR7 RSTiFSpa0BmgUtt9k3TRt2ibY3LC/4p+TEHV73SdWikjnhG44eXLTbnTvEcXPUexqyfF TUgBLDKQROk8xDE9+LBPeFdl/l2CucwPB6psg47yDZbK7vHPMOlNMReF5TwfTYjqPMXO MYiMkT7Ngxm8MsSI2zectpU9WVWZKQSaK0eY+snFduSGN57wA29d92k/vGzxenvAmJ1S RqRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fvtwVxjv; 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 co19si11022756edb.20.2020.06.09.04.18.20; Tue, 09 Jun 2020 04:18:44 -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=fvtwVxjv; 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 S1728911AbgFILQT (ORCPT + 99 others); Tue, 9 Jun 2020 07:16:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:41230 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726083AbgFILQS (ORCPT ); Tue, 9 Jun 2020 07:16:18 -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 50236207ED; Tue, 9 Jun 2020 11:16:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591701377; bh=xU2wxxxrsLRWawYxncEIYiWeqskYMvCbos9vXfMghc4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fvtwVxjvZX99zxaniwh1G9/o2C8apo21iA4dq2KWDskckwppNIRJ7QPE53zLAXYIc uBRlDf2dbCmgFsC0L1EUriB6WOyjiI5+3kKbIm+iBUHkklkqL/+wNHQlTMei9K6B15 rbg0aciyOuk2Uh1MInUEg34BZpUyEO9NZkiVt2aA= Date: Tue, 9 Jun 2020 13:16:15 +0200 From: Greg Kroah-Hartman To: Stanimir Varbanov Cc: 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, Joe Perches , Jason Baron , Jonathan Corbet Subject: Re: [PATCH v3 1/7] Documentation: dynamic-debug: Add description of level bitmask Message-ID: <20200609111615.GD780233@kroah.com> References: <20200609104604.1594-1-stanimir.varbanov@linaro.org> <20200609104604.1594-2-stanimir.varbanov@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200609104604.1594-2-stanimir.varbanov@linaro.org> 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 01:45:58PM +0300, Stanimir Varbanov wrote: > This adds description of the level bitmask feature. > > Cc: Jonathan Corbet (maintainer:DOCUMENTATION) > > Signed-off-by: Stanimir Varbanov > --- > Documentation/admin-guide/dynamic-debug-howto.rst | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/Documentation/admin-guide/dynamic-debug-howto.rst b/Documentation/admin-guide/dynamic-debug-howto.rst > index 0dc2eb8e44e5..c2b751fc8a17 100644 > --- a/Documentation/admin-guide/dynamic-debug-howto.rst > +++ b/Documentation/admin-guide/dynamic-debug-howto.rst > @@ -208,6 +208,12 @@ line > line -1605 // the 1605 lines from line 1 to line 1605 > line 1600- // all lines from line 1600 to the end of the file > > +level > + The given level will be a bitmask ANDed with the level of the each ``pr_debug()`` > + callsite. This will allow to group debug messages and show only those of the > + same level. The -p flag takes precedence over the given level. Note that we can > + have up to five groups of debug messages. As was pointed out, this isn't a "level", it's some arbitrary type of "grouping". But step back, why? What is wrong with the existing control of dynamic debug messages that you want to add another type of arbitrary grouping to it? And who defines that grouping? Will it be driver/subsystem/arch/author specific? Or kernel-wide? This feels like it could easily get out of hand really quickly. Why not just use tracepoints if you really want to be fine-grained? thanks, greg k-h