Bluetooth: Add support for controller specific logging
Subsystems (2)
Marcel Holtmann
maintainerPATCH v3 3/3 Bluetooth: Add support for controller specific logging
To enable controller specific logging, the userspace daemon has to have the ability to log per controller. To facilitate this support, provide a dedicated logging channel. Messages in this channel will be included in the monitor queue and with that also forwarded to monitoring tools along with the actual hardware traces.
All messages from the logging channel are timestamped and with that allow an easy correlation between userspace messages and hardware events. This will increase the ability to debug problems faster.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/hci_mon.h | 1 + include/net/bluetooth/hci_sock.h | 1 + net/bluetooth/hci_sock.c | 102 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+)
include/net/bluetooth/hci_mon.h +1 -0
@@ -44,6 +44,7 @@ struct hci_mon_hdr {#define HCI_MON_INDEX_INFO 10#define HCI_MON_VENDOR_DIAG 11#define HCI_MON_SYSTEM_NOTE 12 +#define HCI_MON_USER_LOGGING 13struct hci_mon_new_index {__u8 type;
include/net/bluetooth/hci_sock.h +1 -0
@@ -45,6 +45,7 @@ struct sockaddr_hci {#define HCI_CHANNEL_USER 1#define HCI_CHANNEL_MONITOR 2#define HCI_CHANNEL_CONTROL 3 +#define HCI_CHANNEL_LOGGING 4struct hci_filter {unsigned long type_mask;
net/bluetooth/hci_sock.c +102 -0
126 lines not on this page · raw message
Signature · 1 line
2.5.0