Skip to contentSkip to conversation

Bluetooth: Expose HCI connections through debugfs

RFC Applied Peter Hurley 1 participant 1 message Aug 24, 2011 Bluetooth drivers

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Bluetooth: Expose HCI connections through debugfs

This series adds a new debugfs file, "connections", to the "hciX" debugfs directory and exposes the state and statistics of current hci connections.

The per-connection statistics will currently reflect 0 counts while the tx scheduler is in flux. Also, I expect to add error counts to conditions that should be flagged as errors, such as clamping the ACL and LE buffer counts to their respective max values.

Lastly, track NULL ACL packets in these new per-connection statistics rather than logging them.

Peter Hurley (4):
Bluetooth: Add LE link type for debugfs output
Bluetooth: Expose hci connections through debugfs
Bluetooth: Track per-connection stats
Bluetooth: l2cap: fix NULL ACL packet handling

 include/net/bluetooth/hci_core.h |   12 +++++++
 net/bluetooth/hci_sysfs.c        |   65 ++++++++++++++++++++++++++++++++++++++
 net/bluetooth/l2cap_core.c       |    8 +++++
 3 files changed, 85 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.4.1