Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3706614ybl; Mon, 27 Jan 2020 08:55:03 -0800 (PST) X-Google-Smtp-Source: APXvYqy8DfXzKygyBhWyL9tqSebujadMGlKI2sg/VZNP+NsN6YrRcPwzKbd2c+ZMR/Nf2vpNgM+C X-Received: by 2002:a05:6808:907:: with SMTP id w7mr8032296oih.137.1580144103562; Mon, 27 Jan 2020 08:55:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580144103; cv=none; d=google.com; s=arc-20160816; b=xq31tmWdqCWaI5caimuVpCiLK/WxFKsY40LwZ7toHhtUXVh4B9fsODAPi6R5MFArGJ lnMz7M7FgdyJyOSrQHE5JbexZ1kWRkX7s0UnuV/72zTEcADrlrRCVwHLJhmQoBgVeAS6 MX35yDUTWUwyGYQfQucsWNO1l3FP2pXhdxjqUKlVTgzUzvrIQHl1hMJhrahuNlaA+RLx PeK/W89y1ieMl3meDxgFkO/gvjqMg9+RHEqx9DsvtIk3ppbM2vadUWsrEeyP/VHYjQUV iJiinabo5fpIut/NJT14FqWHGjhy/+GCqMKYM6HNF3lbnDBM/XbWI59MaYzREY1agoUx ssew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=wA8NODnoBsDRE9HRmfy+xi8RSAjlVZzUjV0rMtTQFBM=; b=kRq8Zk+UDhAmeQEVeo08CRoJiUtZElnR5zbyaUZLO8splCunCJrlnUBI5UKL/N4gBL 7UPEYbDJ6atEwYhGcsQy60byIISJUoDEGBrZwl/dWHmeLh1B7EZd3LClK7S+SMssW+7U 6CpcvoORYNx9SDKnn6gvZF5FnmxQL+TL2CKj7R+sEh2KKRmd0HBogFwmLWMENWiGQnor 0M0RdqpgirXMmv1/I1dkxyWpt2Tgz59kH7idP5GiJ81l0gP+U1RAgvmNoEmI/L2Qic/y pnWfdPApaYEGE7CA3qCIpGtSS8jrqfr413htHD71534xomUYAx4m+yQjdoYt6SpVdVWH zE4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si7500166oti.243.2020.01.27.08.54.51; Mon, 27 Jan 2020 08:55:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725907AbgA0Qyt convert rfc822-to-8bit (ORCPT + 99 others); Mon, 27 Jan 2020 11:54:49 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:54434 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725893AbgA0Qyt (ORCPT ); Mon, 27 Jan 2020 11:54:49 -0500 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 56CEBCECD4; Mon, 27 Jan 2020 18:04:07 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: [Bluez PATCH] doc: Add definition for Set Kernel Debug Level From: Marcel Holtmann In-Reply-To: Date: Mon, 27 Jan 2020 17:54:46 +0100 Cc: Johan Hedberg , Alain Michaud , BlueZ Content-Transfer-Encoding: 8BIT Message-Id: <38D30EF6-1651-4EA7-A9E2-05885C5DDFB6@holtmann.org> References: <20200120202708.111383-1-alainm@chromium.org> <6E55772A-01D5-4616-B3DB-CC22B935C855@holtmann.org> To: Alain Michaud X-Mailer: Apple Mail (2.3608.40.2.2.4) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Alain, >> From a high level, this looks good for me although I agree, this is an >> order of magnitude bigger in terms of scope. Can you suggest perhaps >> an interactive way to deliver this over a period of time, perhaps >> prioritizing the BT_DEBUG kernel messages first? :) > > I am always in favor of increasing the ability to debug things, but we need to do this in a clean fashion and not some short term hacks (since they will come back and haunt us). I like to get some review on my idea first. > > What we could do is work on the BT_DBG etc infrastructure to allow switching when dynamic_debug is not available. Then you would use some debugfs toggle in /sys/kernel/debug/bluetooth since that is no stable API for us (and of course the clear understanding that this toggle is temporary). I just posted a patch to allow a short term solution. It is similar to the patch you pointed me to with the difference that it is a debugfs entry and limited to the case when dynamic debug is disabled. Is this something that would work until we get a more complete solution worked out and tested? Regards Marcel