Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp295589ybl; Wed, 22 Jan 2020 21:53:04 -0800 (PST) X-Google-Smtp-Source: APXvYqwP/EMdvjf4hkN9Jr4cI1e1fuv3BH/vrJ1B9ZUYLIY2d4AkCko4R6TjyaPmNSZsJ6dXDj7C X-Received: by 2002:a9d:ed5:: with SMTP id 79mr10233352otj.72.1579758784789; Wed, 22 Jan 2020 21:53:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579758784; cv=none; d=google.com; s=arc-20160816; b=Vo2UhFKGIGDJ/TqYqdZP+2WTWRSZi1XheNuMiyWnHEUISsAshM3fawL1lwz7qUeLs4 WD4rS5tZ8tzVtPAY86CLof+eJs6pg+/VfDujGJfRFqxx1IV0YmTk9xxVCf/Pr6XlH0sz sVIFAuW96mRo2qZAFFmwuxzN5SuOdRxhZCv7VML1XGrNEXFM7xI73Y2tUkXIy+hHImbV EySdCn7TEabN/BcFA4jrhjgFJ8kVqimeNc32lzYL3kMGWmQBYFsvdK2Am/pubTPRA330 Dz4gRl0JZo4zvGnQTyu4F4PQIqvX2+6IE2rovxLhwypPnAZus8s9pdsDTSbeFUn8mHlE qu3w== 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=TG9LzenrDGKpZSUBvgamNbRzKix6537oe/OHjMk/b6s=; b=Xn7UODe+9ddfqzRrigk8ATRj3UAK1q8y0slcl3EQf2x2S27h8TLAgHPml1sAI40B16 N8IhJHj/GDmY8m3+eRhGmJTeqN41mt7VQcVVidi9MGNAwfrlM0i7gcQKVNyBltEDh9Xv 2R+okEWfyIMMOx7UxPe9T258lE0A4H94AQpUk7UbUj85nTZu1VGkbDo7HD5eNiHCSTKm FQ3eqo1KXdPD/9KBqgrRUd/5ITBOjC6bTSEOYO2EuPQnikCgP1MTmRqN7njBARPVEBTW Q5hC+NOiDr/X1VN0J651l+B7KSSaIaWXC1KUPKkknOmeVd5ZOUfsaMzA69BQhlc1sK4c TwbA== 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 8si545584ota.266.2020.01.22.21.52.36; Wed, 22 Jan 2020 21:53:04 -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 S1725818AbgAWFwg convert rfc822-to-8bit (ORCPT + 99 others); Thu, 23 Jan 2020 00:52:36 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:46428 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725535AbgAWFwf (ORCPT ); Thu, 23 Jan 2020 00:52:35 -0500 Received: from marcel-macbook.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 7BCC6CECFB; Thu, 23 Jan 2020 07:01:53 +0100 (CET) Content-Type: text/plain; charset=utf-8 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: Thu, 23 Jan 2020 06:52:33 +0100 Cc: Johan Hedberg , Alain Michaud , BlueZ Content-Transfer-Encoding: 8BIT Message-Id: 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, > Thanks for your patience. After further research dynamic_debug is not > available on retail chromium os user systems for a variety of reasons, > some of which you can find in this trail: > https://bugs.chromium.org/p/chromium/issues/detail?id=188825. > > Given we need to be able to diagnose things in the field, this is not > a good option for this. > > I hope this helps explain or justify the need for this interface. the reasoning from Kees is 6 years old. Are his issues still valid? So I have been looking into pushing bt_{info,warn,err} into the btmon traces. That is why we have bt_dev_* etc. error macro and have changed a lot of code to use them. This will hopefully allow us to have errors and warnings directly in the btmon traces. For bluetoothd errors and warnings this already works btw. I don’t believe that I want to duplicate the dynamic_debug functionality and push even more info into dmesg ring buffer that then needs to be collected and aligned with btmon traces. The big advantage is if you get a btmon trace and that has the actual message right in it at the right place with the right timestamp. If we push bt_{info,warn,err} into btmon, it might be simpler to do the same for BT_DBG, but it will of course require extra work since our BT_DBG statements are meant to be compiled out if dynamic_debug is disabled. Regards Marcel