aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/udc/trace.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2016-05-31 13:39:21 +0300
committerFelipe Balbi <felipe.balbi@linux.intel.com>2016-06-21 10:38:41 +0300
commit5e42d710a108c23c104e083900d4ba9398e418b0 (patch)
treef761787da06d5f43d297e34349957db9ece4b5fa /drivers/usb/gadget/udc/trace.c
parentusb: gadget: move gadget API functions to udc-core (diff)
downloadlinux-dev-5e42d710a108c23c104e083900d4ba9398e418b0.tar.xz
linux-dev-5e42d710a108c23c104e083900d4ba9398e418b0.zip
usb: gadget: add tracepoints to the gadget API
This new set of tracepoints will help all gadget drivers and UDC drivers when problem appears. Note that, in order to be able to add tracepoints to udc-core.c we had to rename that to core.c and statically link it with trace.c to form udc-core.o. This is to make sure that module name stays the same. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/gadget/udc/trace.c')
-rw-r--r--drivers/usb/gadget/udc/trace.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/trace.c b/drivers/usb/gadget/udc/trace.c
new file mode 100644
index 000000000000..8c551ab91ad8
--- /dev/null
+++ b/drivers/usb/gadget/udc/trace.c
@@ -0,0 +1,18 @@
+/**
+ * trace.c - USB Gadget Framework Trace Support
+ *
+ * Copyright (C) 2016 Intel Corporation
+ * Author: Felipe Balbi <felipe.balbi@linux.intel.com>
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 of
+ * the License as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#define CREATE_TRACE_POINTS
+#include "trace.h"