this series make some minor change to gadget configfs and add some important trace event from configfs layer. follow suggestion from Felipe Balbi in link below, https://lore.kernel.org/linux-usb/1629777281-30188-1-git-send-email-quic_linyyuan@xxxxxxxxxxx/ v2: fix two issue Reported-by: kernel test robot <lkp@xxxxxxxxx> v3: do not move private structure to configfs.h v4: add missing new file configfs_trace.h v5: lost some change of v2, add it again v6: fix comments from Greg Kroah-Hartman v7: three minor changes according to coding rules v8: change two trace location v9: fix when config is empty v10: fix wrong api in v9 v11: split to three changes, minor change to trace event print format v12: use mutex lock gi->lock to make sure data safe for trace trace event will looks like as below, config_usb_cfg_link: g1: 0 0 0 0 0 0 0 0 0000 0510 6 0 {1 80 2 Function FS Gadget,}; - (null) gadget_dev_desc_UDC_store: g1: 0 0 0 0 0 0 0 0 0000 0510 6 0 {1 80 2 Function FS Gadget,}; - dummy_udc unregister_gadget: g1: 0 0 0 0 0 0 0 0 0000 0510 6 0 {1 80 2 Function FS Gadget,}; - dummy_udc config_usb_cfg_unlink: g1: 0 0 0 0 0 0 0 0 0000 0510 6 0 {1 80 2 }, - (null) Linyu Yuan (4): usb: gadget: configfs: add cfg_to_gadget_info() helper usb: gadget: configfs: change config attributes file operation usb: gadget: configfs: use gi->lock to protect write operation usb: gadget: add configfs trace events drivers/usb/gadget/configfs.c | 61 ++++++++++--- drivers/usb/gadget/configfs_trace.h | 168 ++++++++++++++++++++++++++++++++++++ 2 files changed, 218 insertions(+), 11 deletions(-) create mode 100644 drivers/usb/gadget/configfs_trace.h -- 2.7.4