2 * xHCI host controller driver
4 * Copyright (C) 2013 Xenia Ragiadakou
6 * Author: Xenia Ragiadakou
7 * Email : burzalodowa@gmail.com
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
15 #define TRACE_SYSTEM xhci-hcd
17 #if !defined(__XHCI_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
18 #define __XHCI_TRACE_H
20 #include <linux/tracepoint.h>
22 #define XHCI_MSG_MAX 500
24 DECLARE_EVENT_CLASS(xhci_log_msg,
25 TP_PROTO(struct va_format *vaf),
27 TP_STRUCT__entry(__dynamic_array(char, msg, XHCI_MSG_MAX)),
29 vsnprintf(__get_str(msg), XHCI_MSG_MAX, vaf->fmt, *vaf->va);
31 TP_printk("%s", __get_str(msg))
34 DEFINE_EVENT(xhci_log_msg, xhci_dbg_address,
35 TP_PROTO(struct va_format *vaf),
39 DEFINE_EVENT(xhci_log_msg, xhci_dbg_context_change,
40 TP_PROTO(struct va_format *vaf),
44 DEFINE_EVENT(xhci_log_msg, xhci_dbg_quirks,
45 TP_PROTO(struct va_format *vaf),
49 DEFINE_EVENT(xhci_log_msg, xhci_dbg_reset_ep,
50 TP_PROTO(struct va_format *vaf),
54 #endif /* __XHCI_TRACE_H */
56 /* this part must be outside header guard */
58 #undef TRACE_INCLUDE_PATH
59 #define TRACE_INCLUDE_PATH .
61 #undef TRACE_INCLUDE_FILE
62 #define TRACE_INCLUDE_FILE xhci-trace
64 #include <trace/define_trace.h>