summaryrefslogtreecommitdiff
path: root/drivers/usb/musb/musb_trace.h
diff options
context:
space:
mode:
authorBin Liu <b-liu@ti.com>2016-06-30 12:12:25 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-07-17 08:23:57 +0900
commitcfb9a1bc6e65c6093ed5ac4f1c0cc20a9f25d597 (patch)
treea7545ead6d68ced863051ef70a95c8ad95a60b65 /drivers/usb/musb/musb_trace.h
parentc74173fdd4fba23f237af48dff95f613f011cee3 (diff)
usb: musb: add tracepoints to dump interrupt events
This adds tracepoints to dump musb interrupt events. Signed-off-by: Bin Liu <b-liu@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/musb/musb_trace.h')
-rw-r--r--drivers/usb/musb/musb_trace.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_trace.h b/drivers/usb/musb/musb_trace.h
index c974f48ee5d8..98acc1e0a7a0 100644
--- a/drivers/usb/musb/musb_trace.h
+++ b/drivers/usb/musb/musb_trace.h
@@ -128,6 +128,27 @@ DEFINE_EVENT(musb_regl, musb_writel,
TP_ARGS(caller, addr, offset, data)
);
+TRACE_EVENT(musb_isr,
+ TP_PROTO(struct musb *musb),
+ TP_ARGS(musb),
+ TP_STRUCT__entry(
+ __string(name, dev_name(musb->controller))
+ __field(u8, int_usb)
+ __field(u16, int_tx)
+ __field(u16, int_rx)
+ ),
+ TP_fast_assign(
+ __assign_str(name, dev_name(musb->controller));
+ __entry->int_usb = musb->int_usb;
+ __entry->int_tx = musb->int_tx;
+ __entry->int_rx = musb->int_rx;
+ ),
+ TP_printk("%s: usb %02x, tx %04x, rx %04x",
+ __get_str(name), __entry->int_usb,
+ __entry->int_tx, __entry->int_rx
+ )
+);
+
#endif /* __MUSB_TRACE_H */
/* this part has to be here */