summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-trace.h
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2019-04-26 16:23:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-04-27 14:53:58 +0200
commit5afa0a5ed3da85f64f27613a38daa1c4f69dd8ff (patch)
tree108024a9c122f5d4071c0128ac7edf75105ba13d /drivers/usb/host/xhci-trace.h
parent90d6d5731da79a55de51552d930f9ad0b13262a2 (diff)
downloadlwn-5afa0a5ed3da85f64f27613a38daa1c4f69dd8ff.tar.gz
lwn-5afa0a5ed3da85f64f27613a38daa1c4f69dd8ff.zip
usb: xhci: add endpoint context tracing when an endpoint is added
The configure endpoint command configures all the endpoints that were flagged to be added or dropped. To know the content of each of the added endpoints we need to add tracing to the .add_endpoint() callback, just after initializing all the context values. Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/xhci-trace.h')
-rw-r--r--drivers/usb/host/xhci-trace.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-trace.h b/drivers/usb/host/xhci-trace.h
index 9b0e6419a93e..052a269d86f2 100644
--- a/drivers/usb/host/xhci-trace.h
+++ b/drivers/usb/host/xhci-trace.h
@@ -366,6 +366,11 @@ DEFINE_EVENT(xhci_log_ep_ctx, xhci_handle_cmd_config_ep,
TP_ARGS(ctx)
);
+DEFINE_EVENT(xhci_log_ep_ctx, xhci_add_endpoint,
+ TP_PROTO(struct xhci_ep_ctx *ctx),
+ TP_ARGS(ctx)
+);
+
DECLARE_EVENT_CLASS(xhci_log_slot_ctx,
TP_PROTO(struct xhci_slot_ctx *ctx),
TP_ARGS(ctx),