summaryrefslogtreecommitdiff
path: root/drivers/usb/host/xhci-trace.h
diff options
context:
space:
mode:
authorMathias Nyman <mathias.nyman@linux.intel.com>2023-10-19 13:29:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-21 12:38:53 +0200
commit15626ba96559ed82bba1758da0ea1f260c5c55e6 (patch)
tree267703ceb8834eee152f8be071ebfd04eb24cd8b /drivers/usb/host/xhci-trace.h
parent992848132e4a3eec9f7c8d3d4ff4bec189abddb1 (diff)
xhci: Add busnumber to port tracing
With several xhci controllers active at the same time its hard to keep track of ports without knowing bus number Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20231019102924.2797346-3-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, 4 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-trace.h b/drivers/usb/host/xhci-trace.h
index 2208eda1ff27..ac47b1c0544a 100644
--- a/drivers/usb/host/xhci-trace.h
+++ b/drivers/usb/host/xhci-trace.h
@@ -512,14 +512,17 @@ DECLARE_EVENT_CLASS(xhci_log_portsc,
TP_PROTO(struct xhci_port *port, u32 portsc),
TP_ARGS(port, portsc),
TP_STRUCT__entry(
+ __field(u32, busnum)
__field(u32, portnum)
__field(u32, portsc)
),
TP_fast_assign(
+ __entry->busnum = port->rhub->hcd->self.busnum;
__entry->portnum = port->hcd_portnum;
__entry->portsc = portsc;
),
- TP_printk("port-%d: %s",
+ TP_printk("port %d-%d: %s",
+ __entry->busnum,
__entry->portnum,
xhci_decode_portsc(__get_buf(XHCI_MSG_MAX), __entry->portsc)
)