]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: add xhci_cmd_completion trace event
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 6 Aug 2013 04:52:48 +0000 (07:52 +0300)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 13 Aug 2013 23:05:46 +0000 (16:05 -0700)
commit3e4bb2562819a946539879f4ff46ee0b137bb090
tree7452bc6169dbb35906bfdcd7801b69d9ccc47c86
parent165c5d141b3301f17be18709a0e3f7d7ea769830
xhci: add xhci_cmd_completion trace event

This patch creates a new event class, called xhci_log_event,
and defines the xhci_cmd_completion trace event used for
tracing the commands issued to xHC that generate a completion
event in the event ring.

This info can be used, later, to print, in a human readable
way, the completion status and flags as well as the command's
type and fields using the trace-cmd tool and the appropriate
plugin.

Also, a tracepoint is added in handle_cmd_completion().

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