usb: dwc3: trace: add trace logs for core and gadget
authorFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 19:47:02 +0000 (13:47 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Jan 2015 19:56:10 +0000 (13:56 -0600)
Sometimes we want to just print a formatted
string without passing any extra data. The
following will be used for removing reliance
on dev_vdbg() from dwc3.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/trace.h

index 9fc20b33dd8e3141a28e4cf65772d19b9aaf7790..9c10669ab91f768035a518ed880843d346523a70 100644 (file)
@@ -47,6 +47,16 @@ DEFINE_EVENT(dwc3_log_msg, dwc3_writel,
        TP_ARGS(vaf)
 );
 
+DEFINE_EVENT(dwc3_log_msg, dwc3_gadget,
+       TP_PROTO(struct va_format *vaf),
+       TP_ARGS(vaf)
+);
+
+DEFINE_EVENT(dwc3_log_msg, dwc3_core,
+       TP_PROTO(struct va_format *vaf),
+       TP_ARGS(vaf)
+);
+
 DEFINE_EVENT(dwc3_log_msg, dwc3_ep0,
        TP_PROTO(struct va_format *vaf),
        TP_ARGS(vaf)