OSDN Git Service

usb: dwc3: gadget: Keep track of IRQ timing statistics
authorJack Pham <jackp@codeaurora.org>
Thu, 16 Oct 2014 01:23:37 +0000 (18:23 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:06:45 +0000 (11:06 -0700)
commit78c60a7bf6d61a411c2aa9a9e9ff26c23114ddfb
tree7067b5f0583233d0b303a772d2967eddebb8d3d7
parent13a30395d6e9eda8b6f96aa6b8500a95ad920be4
usb: dwc3: gadget: Keep track of IRQ timing statistics

It may be useful to debug how much time is spent in the
DWC3 hard IRQ context. Add low-overhead statistics counters
which keep a histogram of the last 10 interrupts' time of
occurence, time spent, and number of events read (which will
get processed in the bottom half handler).

Change-Id: I466144d8141f4236b9fb834dded93225b56d0422
Signed-off-by: Jack Pham <jackp@codeaurora.org>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debugfs.c
drivers/usb/dwc3/gadget.c