Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3974710ybl; Tue, 21 Jan 2020 10:25:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwPjbODdT5TdKGDgMzyHDvb1mt/A8K99iu2V1BQNJQfV1iVwIT0Ox5/Cle5l25ZRyfQKNeh X-Received: by 2002:a05:6808:3b4:: with SMTP id n20mr3773586oie.123.1579631145745; Tue, 21 Jan 2020 10:25:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579631145; cv=none; d=google.com; s=arc-20160816; b=AnJu+pRoFVCozss3wCvCj0zvC/vIfLse+d/PNQRDyt35M7uzvKlIFNACPXvmIdr0vq rpk8WpeI5jXrHEsoFJxZLy9aF8dZGPVXEwHlzw3Ru6/AMjP75oNtTIkYz6mhjvfJxvHz 9SjkFAOpsI2xxyreQiN/+c88KlYPnUzMMl4+la5lubgEmVnPIAf3USg1d/Xte+fm3aqx pK7zegPBF5dW5E5L6I2pGtB9g171zv6Jbc7eeMSpVuHdpkN1zSuJBubJP+XAtNqRZ3hO u2KKL5I6glODQnejGcqfHddQyRKyri3dCt4+pcOUVMR5Nz+6yKZFyiEnlQYaBkysjSII 9XVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Wcpe7PcQQp882B3UVOoufxI0c2k9kgxMpzr5GufZDCE=; b=TVQyYPxHHCQh+nRdOj3H4VUSioxybK9DbiWnA/DRtE+r8tOXPeVoPvFoF9rE2bM0Y2 OZx77PyVqA0CdYaL9DlFwhdN3fdBxqNHaRbQ7PswfajIxwNKbdyYgtF/eYv8y16U0QCd 97IqSyyD9wFvPgLq/aI3MU4s1/QeyBAx/feLvSvKC0J0O45gHxgsoPJeu1etyE/Utwhh 9+u02v7esBw9A/mxLShCSC9NhXPPZcclpF/PXidl0bbpGWXCPWlJ0hpyusIYyw3ZrKdU 2C8465JDcbBahxYYypsjT7K6eTn+cy4XUWpnCt/WtKOVwf4PPwn5LNGiwijCuhq5kumZ YY1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=DkIvImZ1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si21773814otj.59.2020.01.21.10.25.32; Tue, 21 Jan 2020 10:25:45 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=DkIvImZ1; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728901AbgAUSZc (ORCPT + 99 others); Tue, 21 Jan 2020 13:25:32 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:35711 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728186AbgAUSZc (ORCPT ); Tue, 21 Jan 2020 13:25:32 -0500 Received: by mail-lj1-f194.google.com with SMTP id j1so3874639lja.2 for ; Tue, 21 Jan 2020 10:25:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Wcpe7PcQQp882B3UVOoufxI0c2k9kgxMpzr5GufZDCE=; b=DkIvImZ1BVrCq0pw9UvpF8Z2i68PGhdm6+c1ne6lhq4i4wHho7TlFGkJjtViMF47Wb rdOKM8xmVMwQA1jML3fKVAdPRbLcsqQwFFWC9VFJv8MlpMvTDmpqRgsI8T9LZoZvc49w jIb9bt9iDZrwJSshBq9SSkgd+W5AaCi2uELNg6jWUGWLzNWUL8Eifc2/IPLsPGUQhwDQ N+RG9JOo6kdaXlxBNZActuBg9+FXMqE5WDeIuuuXCgvVD/FcoUwpT6AIJQ2Z4QxBI291 /wiEEkjnHRNO/Jv24tTOSNJekC8VkWMgHuyL0L49xYyizvEmO56CB0MCJrsYjNwSL4PM mQlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Wcpe7PcQQp882B3UVOoufxI0c2k9kgxMpzr5GufZDCE=; b=dhAUTUGxmWAOxDPnIjOEfnQgPBN67c3jqOzszSrodk384I4kaQXHaS0iCCbAgp1ZJt 6Ps0dGAdYrldrW9NiGovqjCUfuOzm/y0k2C3KMWdJON6vBGpQzzwEExPFjfdNMECqFL/ UKV1b4RGjQ+EdpxzeUZM1VI6tts5guxWGRpiMzcXj13NVwmXvD1YwYX6EWXSGEe31YXj 4ofDmAIHOA0AK97IND1ZMjGPB53xNMtsJkQm0TpwcywYsJFwQM1JKWWsoSrMgbmyrhcj x1DWl8OJUR4gK7ehPLZ4Qe5giyg2ltVpCJlC5FVWcEsQhhsqXNhwgHCZqLCH06ooI/Ab tXdA== X-Gm-Message-State: APjAAAWq3blb8fvzj9aXcJ5a7s4aB+SWXIX5tb+mZz3aQIuTXRwanvVL fChEproeDKrecD34Ycjpro5i6xyeZW+V0Rv2xORkHc9sp3Q= X-Received: by 2002:a2e:9cd2:: with SMTP id g18mr14846191ljj.272.1579631130076; Tue, 21 Jan 2020 10:25:30 -0800 (PST) MIME-Version: 1.0 References: <20200120202708.111383-1-alainm@chromium.org> <6E55772A-01D5-4616-B3DB-CC22B935C855@holtmann.org> In-Reply-To: <6E55772A-01D5-4616-B3DB-CC22B935C855@holtmann.org> From: Alain Michaud Date: Tue, 21 Jan 2020 13:25:18 -0500 Message-ID: Subject: Re: [Bluez PATCH] doc: Add definition for Set Kernel Debug Level To: Marcel Holtmann Cc: Alain Michaud , BlueZ Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Marcel, I'm not familiar with the dynamic_debug feature. On ChromiumOS, the interface proposed here is used by the user feedback system to allow the collection of BT_DBG output when the user is trying to send us feedback. If there is a better way to do this, we can certainly use that. but may need to be pointed in the right direction. Thanks, Alain On Tue, Jan 21, 2020 at 11:20 AM Marcel Holtmann wrote: > > Hi Alain, > > > This command is used to by higher level applications to dynamically > > control the debug logging level of the kernel module. This is > > particularly useful to collect debug information from customers filing > > feedback reports for issues that are difficult to reproduce outside of a > > customer's particular environement. > > > > --- > > > > doc/mgmt-api.txt | 25 +++++++++++++++++++++++++ > > 1 file changed, 25 insertions(+) > > > > diff --git a/doc/mgmt-api.txt b/doc/mgmt-api.txt > > index 1e59acc54..f2dba64d1 100644 > > --- a/doc/mgmt-api.txt > > +++ b/doc/mgmt-api.txt > > @@ -3047,6 +3047,31 @@ Load Blocked Keys Command > > Possible errors: Invalid Parameters > > Invalid Index > > > > +Set Kernel Debug Logging Level Command > > +======================= > > + > > + Command Code: 0x0047 > > + Controller Index: > > + Command Parameters : Debug_Logging_Level (1 octet) > > + > > + This command is used to set the kernel debug logging level. This > > + can be by higher level applications to facilitate dynamically > > + controlling the logging level produced by the Bluez kernel module. > > + > > + Supported Debug_Logging_Level values: > > + 0 : No Logging > > + 1 : All debug information. > > + All other values are reserved for future use. > > + > > + When the kernel receives a value higher than the maximum supported > > + value, the kernel module shall set it's logging level to the highest > > + value it supports. > > + > > + This command generates a Command Complete event on success or > > + a Command Status event on failure. > > + > > + Possible errors: Invalid Parameters > > + Invalid Index > > I need a bit more explanation on how this is suppose to work and why the current dynamic_debug feature is not enough. > > Regards > > Marcel >