diff options
author | Felipe Balbi <balbi@ti.com> | 2014-05-01 02:45:10 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-09-05 18:55:51 +0400 |
commit | 2c4cbe6e5a9c71408b496e00a78ea9284e98af16 (patch) | |
tree | c90423ae169751bf43925c9a37734762199ec803 /drivers/usb/dwc3/Makefile | |
parent | 3ece0ec474bf3cea9eefa7f92e3d4b6c3f9f71fd (diff) | |
download | linux-2c4cbe6e5a9c71408b496e00a78ea9284e98af16.tar.xz |
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>
Diffstat (limited to 'drivers/usb/dwc3/Makefile')
-rw-r--r-- | drivers/usb/dwc3/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index 10ac3e72482e..7793e6c99f27 100644 --- a/drivers/usb/dwc3/Makefile +++ b/drivers/usb/dwc3/Makefile @@ -1,9 +1,12 @@ +# define_trace.h needs to know how to find our header +CFLAGS_trace.o := -I$(src) + ccflags-$(CONFIG_USB_DWC3_DEBUG) := -DDEBUG ccflags-$(CONFIG_USB_DWC3_VERBOSE) += -DVERBOSE_DEBUG obj-$(CONFIG_USB_DWC3) += dwc3.o -dwc3-y := core.o +dwc3-y := core.o debug.o trace.o ifneq ($(filter y,$(CONFIG_USB_DWC3_HOST) $(CONFIG_USB_DWC3_DUAL_ROLE)),) dwc3-y += host.o |