Commit 15626ba9 authored by Mathias Nyman's avatar Mathias Nyman Committed by Greg Kroah-Hartman
Browse files

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: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20231019102924.2797346-3-mathias.nyman@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 99284813
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)
			      )