]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit - drivers/usb/dwc3/gadget.c
usb: dwc3: add tracepoints to aid debugging
authorFelipe Balbi <balbi@ti.com>
Wed, 30 Apr 2014 22:45:10 +0000 (17:45 -0500)
committerFelipe Balbi <balbi@ti.com>
Fri, 5 Sep 2014 14:55:51 +0000 (09:55 -0500)
commit2c4cbe6e5a9c71408b496e00a78ea9284e98af16
treec90423ae169751bf43925c9a37734762199ec803
parent3ece0ec474bf3cea9eefa7f92e3d4b6c3f9f71fd
usb: dwc3: add tracepoints to aid debugging

When we're debugging hard-to-reproduce and time-sensitive
use cases, printk() poses too much overhead. That's when
the kernel's tracing infrastructure comes into play.

This patch implements a few initial tracepoints for the
dwc3 driver. More traces can be added as necessary in order
to ease the task of debugging dwc3.

Reviewed-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/Makefile
drivers/usb/dwc3/core.h
drivers/usb/dwc3/debug.c [new file with mode: 0644]
drivers/usb/dwc3/debug.h
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/io.h
drivers/usb/dwc3/trace.c [new file with mode: 0644]
drivers/usb/dwc3/trace.h [new file with mode: 0644]