Hi Marcel, That makes sense. Adding +Archie Pusaka as well who may have input into this. Thanks, Alain On Thu, Jan 23, 2020 at 1:16 PM Marcel Holtmann <marcel@xxxxxxxxxxxx> wrote: > > 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). > > Regards > > Marcel >