xhci: add xhci_address_ctx trace event
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 6 Aug 2013 04:52:47 +0000 (07:52 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Aug 2013 23:05:44 +0000 (16:05 -0700)
commit1d27fabec068a204186c6af10e05f23911c0c902
tree311bb4579cdbbc9b559aa732a3387f1a01075176
parenta0254324eeea3b00676eeb54ba80774a46cb8afb
xhci: add xhci_address_ctx trace event

This patch defines a new event class, called xhci_log_ctx,
that records in the ring buffer the context data, the
context type (input or output), the context dma and virtual
addresses, the context endpoint entries, the slot ID and
whether the xHC uses 64 byte context data structures.

This information can be used, later, to parse and display
the context data fields with the appropriate plugin using
the trace-cmd tool.

Also, this patch defines a trace event, called xhci_address_ctx,
to trace the contexts related to the Address Device command and
adds the associated tracepoints in xhci_address_device().

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-trace.h
drivers/usb/host/xhci.c