usb: core: Improve device lifecycle debuggability
Get series with b4
b4 am [email protected] change-id 20251012-usbcore-tracing-76f00c9b2b3eVersions newest first
- v2 Latest2 patches 1 replyIn review
- v12 patches 8 repliesSuperseded
Changes in v2 from the cover letter
- hub.c: Changed the inline function to a standard one.
- Makefile: Moved trace.o to the preceding line.
- trace.h: Changed the speed and state into strings.
- Link to v1: https://lore.kernel.org/r/[email protected]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | usb: core: Centralize device state update logicdrivers/ | +16 | 0 replies | |
| 2/2 | usb: core: Add tracepoints for device allocation and state changesdrivers/ drivers/ drivers/ +2 more | +75 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Alan Stern |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] usb: core: Improve device lifecycle debuggability
This series enhances USB core debuggability. The first patch refactors device state updates into a new update_usb_device_state() helper function, centralizing logic and preparing for tracing.
The second patch adds tracepoints for USB device allocation and state changes, providing better visibility into the device lifecycle.
---
Changes in v2:
- hub.c: Changed the inline function to a standard one.
- Makefile: Moved trace.o to the preceding line.
- trace.h: Changed the speed and state into strings.
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Kuen-Han Tsai (2):
usb: core: Centralize device state update logic
usb: core: Add tracepoints for device allocation and state changes
drivers/usb/core/Makefile | 5 +++- drivers/usb/core/hub.c | 30 +++++++++++++---------- drivers/usb/core/trace.c | 6 +++++ drivers/usb/core/trace.h | 61 +++++++++++++++++++++++++++++++++++++++++++++++ drivers/usb/core/usb.c | 2 ++ 5 files changed, 91 insertions(+), 13 deletions(-)
---
base-commit: 5472d60c129f75282d94ae5ad072ee6dfb7c7246
change-id: 20251012-usbcore-tracing-76f00c9b2b3e
Best regards,
Signature · 1 line
Kuen-Han Tsai <[email protected]>