mbox series

[v3,00/10] usb: gadget: reduce usb gadget trace event buffer usage

Message ID 20230912104455.7737-1-quic_linyyuan@quicinc.com (mailing list archive)
Headers show
Series usb: gadget: reduce usb gadget trace event buffer usage | expand

Message

Linyu Yuan Sept. 12, 2023, 10:44 a.m. UTC
some trace event use an interger to to save a bit field info of gadget,
also some trace save endpoint name in string forat, it all can be
chagned to other way at trace event store phase.

bit field can be replace with a union interger member which include
multiple bit fields.

ep name stringe can be replace to a interger which contaion number
and dir info.

v1: https://lore.kernel.org/linux-usb/20230911042843.2711-1-quic_linyyuan@quicinc.com/
v2: fix two compile issues that COMPILE_TEST not covered
    https://lore.kernel.org/linux-usb/20230911112446.1791-1-quic_linyyuan@quicinc.com/
v3: fix reviewer comments, allow bit fields work on both little and big endian

Linyu Yuan (10):
  usb: gadget: add anonymous definition in struct usb_gadget
  usb: gadget: add anonymous definition in struct usb_request
  usb: gadget: add anonymous definition in struct usb_ep
  usb: udc: trace: reduce buffer usage of trace event
  usb: cdns3: cdnsp: reduce buffer usage of trace event
  usb: cdns3: trace: reduce buffer usage of trace event
  usb: dwc3: trace: reduce buffer usage of trace event
  usb: cdns2: trace: reduce buffer usage of trace event
  usb: mtu3: trace: reduce buffer usage of trace event
  usb: musb: trace: reduce buffer usage of trace event

 drivers/usb/cdns3/cdns3-trace.h            |  93 ++++----
 drivers/usb/cdns3/cdnsp-trace.h            |  45 ++--
 drivers/usb/dwc3/trace.h                   |  54 ++---
 drivers/usb/gadget/udc/cdns2/cdns2-trace.h |  77 +++----
 drivers/usb/gadget/udc/trace.h             | 106 +++------
 drivers/usb/mtu3/mtu3_trace.h              |  42 ++--
 drivers/usb/musb/musb_trace.h              |  14 +-
 include/linux/usb/gadget.h                 | 245 +++++++++++++++++----
 8 files changed, 383 insertions(+), 293 deletions(-)