Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3861789ybl; Tue, 21 Jan 2020 08:22:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwn2Fi1h511G//iQjvT07ehNZZWAMa8dpGnbR+kGnJ1vT5f2Ai/vbrr68ReW5jSvNlPa6/R X-Received: by 2002:aca:5795:: with SMTP id l143mr3716687oib.27.1579623758178; Tue, 21 Jan 2020 08:22:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579623758; cv=none; d=google.com; s=arc-20160816; b=UYZvlXzLTJy1gtsdCkkWjNCndD+zobd12goJ59J4zNOwlWaL3Xc2e7tL0juIkRQQe/ YGXECth0Yn2s+KlirPaFXpD2bsDjdi3UfA/1S0qNNU1cx0PTg1wiMzGlcjoFfO887QU+ vtOzi3dvKE11W8b04MG41En9PuEJ9DXpTBoPChXB41X1+UkquBbiQRVSwT+k2JYRB58w cVzgoUrxGubI+oTu5Gvc3RXoZwTRRv/9RAIpVPBZo89e/XoukKvyk0b6kys/8sS5r8NB 8dsJ+Q3Jh7vduqr5uUjzCBDuElTJa3eNFRuV/sNzwtcK4lt8enXnFbj+djwXvMrYe1RM cPCA== 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=N3oiJ6T5Z+d+SRXkmaZ8R+frBpoxtICkUeYaCLpbmHk=; b=OJC3rTSaPhZYADLvHz3pmJNZoDCZ533bQLig/Mtsb5zKINOEMKrWVCdoWcJayMz30g v2yGF0h3wGOOzgv44KM48ExnbJ/Up59CNn4tS5EnJetgJcxuFBz2vxFIvAC6BplwyL/P qjndGMkvxLFP29WSMMmcTZRJHpfDIbjZhY0IflcWshwB7sWj2HIadaPvoVqzPptIuuW1 +HboouDUKHZ1ny3+YsXer2dwHDu4kfR8OcMhkqhzm6fijQQGLbq8jspCmPc6iM0fBNV5 FCFnEkyUbUTMxxu1uip245QQB+J5sD7f9u4DeLXOUODiDb2ZvHdDXLPzJ5XiGSRMq/zz RkAg== 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 n7si22349954otk.277.2020.01.21.08.22.24; Tue, 21 Jan 2020 08:22:38 -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 S1729043AbgAUQUz convert rfc822-to-8bit (ORCPT + 99 others); Tue, 21 Jan 2020 11:20:55 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:55837 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726555AbgAUQUz (ORCPT ); Tue, 21 Jan 2020 11:20:55 -0500 Received: from marcel-macpro.fritz.box (p4FEFC5A7.dip0.t-ipconnect.de [79.239.197.167]) by mail.holtmann.org (Postfix) with ESMTPSA id 98508CECE3; Tue, 21 Jan 2020 17:30:13 +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: <20200120202708.111383-1-alainm@chromium.org> Date: Tue, 21 Jan 2020 17:20:54 +0100 Cc: linux-bluetooth@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <6E55772A-01D5-4616-B3DB-CC22B935C855@holtmann.org> References: <20200120202708.111383-1-alainm@chromium.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, > 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