monitor: Add latency information per channel
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 23 May 2023 20:48:05 +0000 (13:48 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
commit94a55f629f39b9c7a97fc3e64e60f34d88cfbcc1
tree12c77844087edc3785d5a818266b95721360fe37
parent01e32eae36b40e261ad47f444df2dc38999bce9d
monitor: Add latency information per channel

This attempts to print latency information per channel in addition to
per connection/handle:

> HCI Event: Number of Completed Packets (0x13) plen 5
        Num handles: 1
        Handle: 256 Address: XX:XX:XX:XX:XX:XX
        Count: 1
        Latency: 15 msec (3-39 msec ~18 msec)
        Channel: 68 [PSM 25 mode Basic (0x00)] {chan 2}
        Channel Latency: 15 msec (6-35 msec ~18 msec)
monitor/l2cap.c
monitor/l2cap.h
monitor/packet.c
monitor/packet.h