英文原文:Linux USB API
协议层 包格式 USB协议层都是以包为基本单元,采用LSB(先发送低位)字节序。
Host发出SOP信号后,就会发出SYNC信号:它是一系列的、最大传输频率的脉冲,接收方使用它来同步数据。对于低速/全速设备,SYNC信号是8位数据(从做到右是00000001);对于高速设备,SYNC信号是32位数据(从左到右是00000000000000000000000000000001)。使用NRZI编码时,前面每个”0”都对应一个跳变。具体包格式见下图(来自百问网):img
USB包各部分介绍:
SOP 用来表示包起始SYNC 用来同步时钟Packet 实际有效的包数据EOP 用来表示包结束包(Packet)的具体结构:
PID 包类型地址 USB设备的逻辑地址,Host发出的包中一般都需要包含目标设备的地址帧号和数据 需要由包类型确定,具体需要查看协议文档CRC 校验码包类型(PID) USB中数据方向都是基于Host角度来看的,out表示从Host发送数据到设备,in表示从设备发送数据到Host。由于设备都是被动响应的,因此完整的传输,都是由Host发起第一个包。
包数据里的PID按照bit1-0可以分为四大类:
令牌包(Token):01B 数据包(Data):11B 握手包(Handshake):10B 特殊包(Special):00B PID低4位可以确定包类型,如下表所示:image-20220819095112885
PID决定了后续数据类型,为了降低出错的概率,额外增加4位用于取反校验。实际包中的PID由8位来表示,格式如下:image-20220819100829291
令牌包(Token) 令牌类的包作用是通知设备。
SOF(Start-of-Frame)令牌包是由主机固定频率发送的包。对于FS(full-speed)速率总线是间隔1.00 ms ±0.0005 ms,对于HS(high-speed)速率总线是间隔125 µs ±0.0625 µs。作用是通知所有设备,SOF令牌包格式如下:image-20251014095756916
IN/OUT/SETUP令牌包通知特定设备,格式如下:image-20251014094921786
数据包(Data) 数据包包含PID域、0或多字节数据域和一个CRC域,如下图所示。有四种类型的数据包:DATA0、DATA1、DATA2、MDATA。image-20251014101326036
握手包(Handshake) 握手包只包含PID域。握手包用于汇报数据传输的状态,返回一个值表示数据成功接收、命令接收或拒绝、流控制、halt状态。
有四种类型的握手包和一种特殊的握手包:
ACK,表明数据包成功接收或数据域没有CRC错误且PID域正确。 NAK,表明设备不能从host接收数据(OUT)或向host发送数据(IN)。 STALL,设备返回的响应,可以是对IN令牌包的响应、OUT的数据阶段的响应、PING传输的响应。 NYET,仅适用于HS设备。可以用于响应PING协议,或用于响应split传输时FS/HS设备未完成。 ERR,仅适用于HS设备。允许HS HUB报告总线上的错误。 数据翻转同步和重试 USB提供一种确保在数据收发者间数据序列同步的机制,通过使用DATA0和DATA1包和数据收发者的序列位翻转来实现。
初始化
控制传输使用SETUP令牌包初始化host和设备序列位,如下图所示:image-20251014191445444
成功的数据传输 在每次传输中,接收者需要比较发送者的序列位(数据包PID域编码是DATA0或DATA1)是否与接收者序列位一致。若数据可接收并且收发序列位一致,序列位需要翻转。image-20251014191858456
数据损坏或不可接收 若不能接收数据或数据已经损坏,接受者会发送NAK或STALL握手包,并且不会翻转它的序列位。image-20251014192428739
损坏的ACK握手包 当发送者没有收到正确的ACK,不会翻转序列位。当超时后会重试发送相同数据,直到接收到正确的ACK。image-20251014192458575
事务(Transaction)与传输(Transfer) USB传输最基本的单元是包(Packet),包类型是PID域表示。单一的包无法完成完整数据的传输。一个完整数据传输往往需要包含到多个包:令牌包、数据包、握手包,而这个过程被称为事务(Transaction)。单个或多个事务组合起来就是一个传输(Transfer)。
不同事务类型包含包的数量不完全相同,它取决于端点(endpoint)类型。这里有四种端点类型:批量(bulk)、控制(control)、中断(interrupt)和实时(isochronous)。
如下就是一个完整的BOT SCSI CMD传输,总共包含三个批量事务:CBW事务、SCSI DATA事务和CSW事务。而每个事务都是一个批量事务类型,都是一个三阶段的事务。image-20251017111355123
批量事务(Bulk) 批量事务类型的特点是能够通过错误检测和重试,在主机与功能之间保证数据无错误的传输。它使用三阶段的事务包括:令牌包、数据包、握手包。image-20251014195341690
常见支持批量事务的设备有:USB存储设备。
控制传输(Control) 控制传输至少有两个事务阶段:设置(Setup)和状态(Status)。控制传输可选择在设置阶段和状态阶段之间包含一个数据(Data)阶段。在设置阶段,使用 SETUP 事务将信息传送到功能的控制端点。SETUP 事务的格式类似于 OUT,但使用的是 SETUP PID 而不是 OUT PID。
下图是一个SETUP事务包含三个包:SETUP包、DATA0包、ACK包。image-20251014195855230
若存在,控制传输会包含数据阶段,由一个或多个IN或OUT事务组成,遵循与批量事务相同的协议规则。所有在数据阶段的传输事务保持相同的方向(例如全IN事务或全OUT事务)。一个SETUP总是使用DATA0的PID作为SETUP事务的数据域。
控制传输的状态阶段是序列上的最后一个事务。状态阶段事物遵循与批量事务相同的协议序列。例如,当数据阶段包含全OUT事务,状态就是一个IN事务。若控制序列没有数据阶段,则状态就是一个IN事务。image-20251014195928566
所有的USB设备必须支持的传输类型。
中断事务(Interrupt) 中断事务使用三阶段的事务包括:令牌包、数据包、握手包。image-20251017113514694
中断事务跟批量事务非常类似,不同的是Host会周期性地发送事务进行数据读写。常见支持中断事务的设备有:USB鼠标、USB键盘等。
实时事务(Isochronous) 实时事务包含一个令牌和一个数据阶段,但没有握手阶段。实时事务不支持握手阶段或重试能力。image-20251022144041260
实时事务需要Host周期性的发起,相比中断事务,不要求准确性,传输的数据量比较大。常见支持实时事务的设备有USB摄像头。
dwc3协议栈 为分析流程,需要打开动态调试,具体方法见 Linux驱动-内核调试手段
⚠️注意:以下内核以linux-6.1为模板编写,切换到6.6版本有部分地方有问题
简略流程-接入ssp固态硬盘设备 当xHCI 控制器检测到 USB 端口状态变化,这里是有ssp设备接入。硬件生成 Port Status Change Event TRB,放入 Event Ring。1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 // xhci - xhci_hc_driver irqreturn_t xhci_irq(struct usb_hcd *hcd) |-xhci_handle_event(xhci, ir) |-handle_port_status(xhci, ir, event) // work_struct机制唤醒 hcd_resume_work // usb core - usb_generic_xhci_driver void hcd_resume_work(struct work_struct *work) |-usb_remote_wakeup(udev) |-usb_autoresume_device(udev) |-pm_runtime_get_sync(&udev->dev) |-__pm_runtime_resume(dev, RPM_GET_PUT) --|-callback = RPM_GET_CALLBACK(dev, runtime_resume) --|-rpm_callback(callback, dev) // 调用 usb_runtime_resume |-rpm_resume(dev, rpmflags) int rpm_resume(struct device *dev, int rpmflags) int usb_runtime_resume(struct device *dev) |-usb_resume_interface(udev, intf, msg, udev->reset_resume) |-driver->resume(intf) // 调用 hub_resume int hub_resume(struct usb_interface *intf) |-hub_activate(hub, HUB_RESUME) |-kick_hub_wq(hub) // 触发 hub->events hub_event void hub_event(struct work_struct *work) |-port_event(hub, i) |-hub_port_connect_change(hub, port1, portstatus, portchange) |-hub_port_connect(hub, port1, portstatus, portchange) |-usb_new_device(udev) |-device_add(&udev->dev) // 注册设备,其中bus_probe_device(dev)会触发 int usb_probe_device(struct device *dev) |-usb_generic_driver_probe(udev) |-usb_set_configuration(udev, c) // 注册设备,会触发 usb_probe_interface int usb_probe_interface(struct device *dev) |-driver->probe(intf, id) // 调用驱动探测, 这里调用 uas_probe // uas int uas_probe(struct usb_interface *intf, const struct usb_device_id *id) |-INIT_WORK(&devinfo->scan_work, uas_scan_work) // 延时调用,调用uas_scan_work |-scsi_add_host(shost, &intf->dev) // 同步调用 |-scsi_add_host_with_dma(host, dev, dev) void uas_scan_work(struct work_struct *work) |-scsi_scan_host(shost) // scsi int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, struct device *dma_dev) /* scsi设备注册到内核 */ void scsi_scan_host(struct Scsi_Host *shost) |-do_scsi_scan_host(shost) |-scsi_scan_host_selected(shost, SCAN_WILD_CARD, SCAN_WILD_CARD, SCAN_WILD_CARD, 0) |-scsi_scan_channel(shost, channel, id, lun, rescan) |-__scsi_scan_target(&shost->shost_gendev, channel, id, lun, rescan) |-scsi_probe_and_add_lun(starget, 0, &bflags, NULL, rescan, NULL) |-scsi_add_lun(sdev, result, &bflags, shost->async_scan) |-scsi_sysfs_add_sdev(sdev) // 通过调用 device_add 触发 sd_probe int sd_probe(struct device *dev) |-sd_revalidate_disk(gd) /* 重新识别scsi disk基本信息 */
详细流程 中断处理流程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 // linux-6.6.64/drivers/usb/host/xhci.c // xhci hc驱动 struct hc_driver xhci_hc_driver = { .description = "xhci-hcd", .product_desc = "xHCI Host Controller", .irq = xhci_irq, .flags = HCD_MEMORY | HCD_DMA | HCD_USB3 | HCD_SHARED | HCD_BH, }; // linux-6.6.64/drivers/usb/host/xhci-ring.c irqreturn_t xhci_irq(struct usb_hcd *hcd) struct xhci_hcd *xhci = hcd_to_xhci(hcd) /* 读取状态,确保是event中断 */ status = readl(&xhci->op_regs->status) /* 清除 STS_EINT */ status |= STS_EINT; writel(status, &xhci->op_regs->status) /* 循环 更新Event Ring Dequeue Pointer */ { xhci_handle_event(xhci) xhci_update_erst_dequeue(xhci, event_ring_deq) } // linux-6.6.64/drivers/usb/host/xhci-ring.c static int xhci_handle_event(struct xhci_hcd *xhci) union xhci_trb *event event = xhci->event_ring->dequeue trb_type = TRB_FIELD_TO_TYPE(le32_to_cpu(event->event_cmd.flags)) /* 根据类型调用不同的处理函数 */ TRB_COMPLETION: handle_cmd_completion(xhci, &event->event_cmd) TRB_PORT_STATUS: handle_port_status(xhci, event) TRB_TRANSFER: handle_tx_event(xhci, &event->trans_event) TRB_DEV_NOTE: handle_device_notification(xhci, event) default: handle_vendor_event(xhci, event, trb_type) // >= TRB_VENDOR_DEFINED_LOW 为自定义TRB // linux-6.6.64/drivers/usb/host/xhci-ring.c static void handle_port_status(struct xhci_hcd *xhci, union xhci_trb *event) usb_hcd_resume_root_hub(hcd) // 打印 Port change event, xx-xx
唤醒设备流程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 static struct platform_driver dummy_hcd_driver = {.probe = dummy_hcd_probe, } dummy_hcd_probe usb_create_shared_hcd usb_create_shared_hcd __usb_create_hcd INIT_WORK(&hcd->wakeup_work, hcd_resume_work); void hcd_resume_work (struct work_struct *work) struct usb_hcd *hcd = container_of(work, struct usb_hcd, wakeup_work) struct usb_device *udev = hcd->self.root_hub usb_remote_wakeup (udev) { usb_autoresume_device(udev) usb_autosuspend_device(udev) } int usb_autoresume_device (struct usb_device *udev) pm_runtime_get_sync (&udev->dev) { pm_runtime_put_sync(&udev->dev) } int pm_runtime_get_sync (struct device *dev) __pm_runtime_resume (dev, RPM_GET_PUT) int __pm_runtime_resume (struct device *dev, int rpmflags) rpm_resume (dev, rpmflags) if (!parent && dev->parent) { rpm_resume(parent, 0 ) } callback = RPM_GET_CALLBACK(dev, runtime_resume) rpm_callback(callback, dev) static const struct dev_pm_ops usb_device_pm_ops = {... .runtime_resume = usb_runtime_resume, } int usb_runtime_resume(struct device *dev) struct usb_device *udev = to_usb_device(dev) usb_resume_both(udev, PMSG_AUTO_RESUME) usb_resume_device(udev, msg) usb_resume_interface(udev, intf, msg, udev->reset_resume) int usb_resume_device(struct usb_device *udev, pm_message_t msg) udriver = to_usb_device_driver(udev->dev.driver) usb_generic_driver_resume(udev, msg) udriver->resume(udev, msg) int usb_resume_interface(struct usb_device *udev, struct usb_interface *intf, pm_message_t msg, int reset_resume) driver = to_usb_driver(intf->dev.driver) driver->reset_resume(intf) driver->resume(intf) struct usb_driver hub_driver = { .resume = hub_resume, } int hub_resume(struct usb_interface *intf) hub_activate(hub, HUB_RESUME) report_wakeup_requests(hub) void hub_activate(struct usb_hub *hub, enum hub_activation_type type) usb_hub_port_status(hub, port1, &portstatus, &portchange) hub_port_warm_reset_required(hub, port1, portstatus) usb_clear_port_feature(hub->hdev, port1, USB_PORT_FEAT_xxx) set_bit(port1, hub->event_bits) usb_submit_urb(hub->urb, GFP_NOIO) kick_hub_wq(hub) void report_wakeup_requests(struct usb_hub *hub)int usb_hub_port_status(struct usb_hub *hub, int port1, u16 *status, u16 *change) hub_ext_port_status(hub, port1, HUB_PORT_STATUS, status, change, NULL ) get_port_status(hub->hdev, port1, &hub->status->port, type, len) usb_control_msg(hdev, usb_rcvctrlpipe(hdev, 0 ), USB_REQ_GET_STATUS, USB_DIR_IN | USB_RT_PORT, value, port1, data, length, USB_STS_TIMEOUT) int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype, __u16 value, __u16 index, void *data, __u16 size, int timeout) void usb_autosuspend_device(struct usb_device *udev) usb_mark_last_busy(udev) pm_runtime_put_sync_autosuspend(&udev->dev)
event处理流程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 int hub_probe (struct usb_interface *intf, const struct usb_device_id *id) INIT_WORK (&hub->events, hub_event) ; void hub_event (struct work_struct *work) hub = container_of(work, struct usb_hub, events); { struct usb_port *port_dev = hub->ports[i - 1 ]; port_event(hub, i); } void port_event (struct usb_hub *hub, int port1) hub_port_connect_change (hub, port1, portstatus, portchange) hub_port_connect (hub, port1, portstatus, portchange) struct usb_port *port_dev = hub->ports[port1 - 1 ] { udev = usb_alloc_dev(hdev, hdev->bus, port1) usb_set_device_state(udev, USB_STATE_POWERED) udev->speed = USB_SPEED_SUPER hub_port_init(hub, udev, port1, i, NULL ) port_dev->child = udev usb_new_device(udev) } int hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1, int retry_counter, struct usb_device_descriptor *dev_descr) int usb_new_device(struct usb_device *udev) usb_enumerate_device(udev) announce_device(udev) set_usb_port_removable(udev) device_add(&udev->dev) usb_create_ep_devs(&udev->dev, &udev->ep0, udev)
设备探测流程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 int usb_probe_device (struct device *dev) usb_autoresume_device (udev) usb_generic_driver_probe (udev) udriver->probe (udev) int usb_generic_driver_probe (struct usb_device *udev) c = usb_choose_configuration(udev) usb_set_configuration(udev, c) int usb_set_configuration (struct usb_device *dev, int configuration) usb_control_msg_send (dev, 0 , USB_REQ_SET_CONFIGURATION, 0 , configuration, 0 , NULL , 0 , USB_CTRL_SET_TIMEOUT, GFP_NOIO) usb_set_device_state (dev, USB_STATE_CONFIGURED) { struct usb_interface *intf = cp->interface[i] device_add(&intf->dev) }
interface探测流程 1 2 3 4 5 6 7 8 9 10 11 int usb_probe_interface (struct device *dev) struct usb_driver *driver = to_usb_driver(dev->driver); struct usb_interface *intf = to_usb_interface(dev); usb_match_dynamic_id(intf, driver) usb_match_id(intf, driver->id_table) driver->probe(intf, id)
uas探测流程 USB Attached SCSI驱动探测1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 int uas_probe (struct usb_interface *intf, const struct usb_device_id *id) uas_use_uas_driver (intf, id, &dev_flags) uas_switch_interface (udev, intf) struct Scsi_Host *shost shost = scsi_host_alloc(&uas_host_template, sizeof (struct uas_dev_info)) init_usb_anchor(&devinfo->cmd_urbs); init_usb_anchor(&devinfo->sense_urbs); init_usb_anchor(&devinfo->data_urbs); INIT_WORK(&devinfo->work, uas_do_work); INIT_WORK(&devinfo->scan_work, uas_scan_work); devinfo = (struct uas_dev_info *)shost->hostdata uas_configure_endpoints(devinfo) scsi_add_host(shost, &intf->dev) int scsi_add_host(struct Scsi_Host *host, struct device *dev) scsi_add_host_with_dma(host, dev, dev) int scsi_add_host_with_dma(struct Scsi_Host *shost, struct device *dev, struct device *dma_dev) scsi_init_sense_cache(shost) scsi_mq_setup_tags(shost) device_add(&shost->shost_gendev) scsi_host_set_state(shost, SHOST_RUNNING) shost->work_q = alloc_workqueue(xxx) device_add(&shost->shost_dev) scsi_sysfs_add_host(shost) scsi_proc_host_add(shost) void uas_scan_work(struct work_struct *work) struct Scsi_Host *shost = usb_get_intfdata(devinfo->intf); scsi_scan_host(shost) void scsi_scan_host (struct Scsi_Host *shost) do_scsi_scan_host (shost) scsi_scan_host_selected (shost, SCAN_WILD_CARD, SCAN_WILD_CARD, SCAN_WILD_CARD, 0 ) scsi_scan_channel (shost, channel, id, lun, rescan) __scsi_scan_target (&shost->shost_gendev, channel, id, lun, rescan) scsi_probe_and_add_lun (starget, 0 , &bflags, NULL , rescan, NULL ) scsi_device_lookup_by_target (starget, lun) scsi_probe_lun (sdev, result, result_len, &bflags) scsi_add_lun (sdev, result, &bflags, shost->async_scan) sdev->inquiry = kmemdup(inq_result, max_t (size_t , sdev->inquiry_len, 36 ), GFP_KERNEL) scsi_device_set_state(sdev, SDEV_RUNNING) transport_configure_device(&sdev->sdev_gendev) scsi_sysfs_add_sdev(sdev)
scsi协议OPCODES MESSAGES SENSE码见:linux-6.6.64/include/scsi/scsi_proto.h
sd探测流程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 int sd_probe (struct device *dev) struct scsi_disk *sdkp struct gendisk *gd sdkp = kzalloc(sizeof (*sdkp), GFP_KERNEL) gd = blk_mq_alloc_disk_for_queue(sdp->request_queue, &sd_bio_compl_lkclass) ida_alloc(&sd_index_ida, GFP_KERNEL) sd_format_disk_name("sd" , index, gd->disk_name, DISK_NAME_LEN) sdkp->max_retries = SD_MAX_RETRIES atomic_set (&sdkp->openers, 0 ) atomic_set (&sdkp->device->ioerr_cnt, 0 ) blk_queue_rq_timeout(sdp->request_queue, SD_TIMEOUT) device_initialize(&sdkp->disk_dev) device_add(&sdkp->disk_dev) sdp->sector_size = 512 ; sdkp->capacity = 0 ; sd_revalidate_disk(gd) device_add_disk(dev, gd, NULL ) int sd_revalidate_disk (struct gendisk *disk) sd_spinup_disk (sdkp) sd_read_capacity (sdkp, buffer) sd_print_capacity (sdkp, old_capacity) sd_read_write_protect_flag (sdkp, buffer) sd_read_cache_type (sdkp, buffer) sd_read_app_tag_own (sdkp, buffer) sd_read_write_same (sdkp, buffer) sd_read_security (sdkp, buffer) sd_config_protection (sdkp) sd_set_flush_flag (sdkp) sd_validate_min_xfer_size (sdkp) sd_validate_opt_xfer_size (sdkp, dev_max) set_capacity_and_notify (disk, logical_to_sectors(sdp, sdkp->capacity))
xhci驱动分析 抓取动态调试日志 开启模块调试1 2 3 4 5 6 7 8 9 10 11 12 13 # 启用usbcore所有调试信息 echo "module usbcore +p" > /sys/kernel/debug/dynamic_debug/control # 启用Hub事件日志 echo "module hub +p" > /sys/kernel/debug/dynamic_debug/control # 启用 scsi_mod 的调试(SCSI 核心层) echo 'module scsi_mod +p' > /sys/kernel/debug/dynamic_debug/control # 启用 sd_mod 的调试(SCSI 磁盘驱动) echo 'module sd_mod +p' > /sys/kernel/debug/dynamic_debug/control # 根据实际使用的控制器选择(通过lsusb -t查看) echo "module xhci_hcd +p" > /sys/kernel/debug/dynamic_debug/control # USB 3.0 # 例如调试USB存储设备 echo "module usb-storage +p" > /sys/kernel/debug/dynamic_debug/control
开启文件1 2 3 4 echo file drivers/usb/core/hub.c +p > /sys/kernel/debug/dynamic_debug/control echo file drivers/usb/core/hcd.c +p > /sys/kernel/debug/dynamic_debug/control echo file drivers/usb/dwc3/dwc3-*.c +p > /sys/kernel/debug/dynamic_debug/control echo file drivers/scsi/sd.c +p > /sys/kernel/debug/dynamic_debug/control
主控注册 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 [root@tst ]# echo host > /sys/class/usb_role/22100000.dwc3-role-switch/role [ 22.527815 ][ T67] xhci-hcd xhci-hcd.0. auto : xHCI Host Controller [ 22.538005 ][ T67] xhci-hcd xhci-hcd.0. auto : new USB bus registered, assigned bus number 1 [ 22.547638 ][ T67] xhci-hcd xhci-hcd.0. auto : [ 22.553300 ][ T67] xhci-hcd xhci-hcd.0. auto : Resetting HCD [ 22.558871 ][ T67] xhci-hcd xhci-hcd.0. auto : [ 22.564809 ][ T67] xhci-hcd xhci-hcd.0. auto : Wait for controller to be ready for doorbell rings [ 22.573592 ][ T67] xhci-hcd xhci-hcd.0. auto : Reset complete [ 22.579250 ][ T67] xhci-hcd xhci-hcd.0. auto : Enabling 64 -bit DMA addresses. [ 22.586296 ][ T67] xhci-hcd xhci-hcd.0. auto : Calling HCD init [ 22.592127 ][ T67] xhci-hcd xhci-hcd.0. auto : xhci_init [ 22.597351 ][ T67] xhci-hcd xhci-hcd.0. auto : xHCI doesn't need link TRB QUIRK [ 22.604572][ T67] xhci-hcd xhci-hcd.0.auto: Supported page size register = 0x1 [ 22.611970][ T67] xhci-hcd xhci-hcd.0.auto: Supported page size of 8K [ 22.618583][ T67] xhci-hcd xhci-hcd.0.auto: HCD page size set to 4K [ 22.625024][ T67] xhci-hcd xhci-hcd.0.auto: // xHC can handle at most 64 device slots. [ 22.633112][ T67] xhci-hcd xhci-hcd.0.auto: // Setting Max device slots reg = 0x40. [ 22.640946][ T67] xhci-hcd xhci-hcd.0.auto: // Device context base array address = 0x0x000000081224b000 (DMA), (____ptrval____) (virt) [ 22.653210][ T67] xhci-hcd xhci-hcd.0.auto: Allocated command ring at (____ptrval____) [ 22.661298][ T67] xhci-hcd xhci-hcd.0.auto: First segment DMA is 0x0x000000081224d000 [ 22.669299][ T67] xhci-hcd xhci-hcd.0.auto: // Setting command ring address to 0x000000081224d001 [ 22.678344][ T67] xhci-hcd xhci-hcd.0.auto: // Doorbell array is located at offset 0x2000 from cap regs base addr [ 22.688793][ T67] xhci-hcd xhci-hcd.0.auto: Allocating primary event ring [ 22.695767][ T67] xhci-hcd xhci-hcd.0.auto: // Write event ring dequeue pointer, preserving EHB bit [ 22.705030][ T67] xhci-hcd xhci-hcd.0.auto: Allocating 2 scratchpad buffers [ 22.712173][ T67] xhci-hcd xhci-hcd.0.auto: Ext Cap (____ptrval____), port offset = 1, count = 1, revision = 0x2 [ 22.722519][ T67] xhci-hcd xhci-hcd.0.auto: xHCI 1.0: support USB2 hardware lpm [ 22.730002][ T67] xhci-hcd xhci-hcd.0.auto: Ext Cap (____ptrval____), port offset = 2, count = 1, revision = 0x3 [ 22.740349][ T67] xhci-hcd xhci-hcd.0.auto: PSIV:4 PSIE:3 PLT:0 PFD:1 LP:0 PSIM:5 [ 22.748005][ T67] xhci-hcd xhci-hcd.0.auto: PSIV:5 PSIE:3 PLT:0 PFD:1 LP:1 PSIM:10 [ 22.755746][ T67] xhci-hcd xhci-hcd.0.auto: Found 1 USB 2.0 ports and 1 USB 3.0 ports. [ 22.763835][ T67] xhci-hcd xhci-hcd.0.auto: Finished xhci_init [ 22.769840][ T67] xhci-hcd xhci-hcd.0.auto: Called HCD init [ 22.775585][ T67] xhci-hcd xhci-hcd.0.auto: hcc params 0x0118ffcd hci version 0x120 quirks 0x0000008000000010 [ 22.785671][ T67] xhci-hcd xhci-hcd.0.auto: supports USB remote wakeup [ 22.792382][ T67] xhci-hcd xhci-hcd.0.auto: irq 18, io mem 0x22100000 [ 22.798997][ T67] xhci-hcd xhci-hcd.0.auto: xhci_run [ 22.804135][ T67] xhci-hcd xhci-hcd.0.auto: ERST deq = 64' h812c21000[ 22.810661 ][ T67] xhci-hcd xhci-hcd.0. auto : [ 22.818576 ][ T67] xhci-hcd xhci-hcd.0. auto : Finished xhci_run for main hcd [ 22.825670 ][ T67] xhci-hcd xhci-hcd.0. auto : xHCI Host Controller [ 22.831852 ][ T67] xhci-hcd xhci-hcd.0. auto : new USB bus registered, assigned bus number 2 [ 22.840204 ][ T67] xhci-hcd xhci-hcd.0. auto : Host supports USB 3.1 Enhanced SuperSpeed [ 22.848206 ][ T67] xhci-hcd xhci-hcd.0. auto : supports USB remote wakeup [ 22.854906 ][ T67] xhci-hcd xhci-hcd.0. auto : Enable interrupts [ 22.860823 ][ T67] xhci-hcd xhci-hcd.0. auto : Enable primary interrupter [ 22.867520 ][ T67] xhci-hcd xhci-hcd.0. auto : [ 22.874158 ][ T67] usb usb1: default language 0x0409 [ 22.879221 ][ T67] usb usb1: udev 1 , busnum 1 , minor = 0 [ 22.884743 ][ T67] usb usb1: usb_probe_device [ 22.889193 ][ T67] usb usb1: configuration #1 chosen from 1 choice [ 22.895462 ][ T67] xHCI xhci_add_endpoint called for root hub [ 22.901294 ][ T67] xHCI xhci_check_bandwidth called for root hub [ 22.907396 ][ T67] usb usb1: adding 1 -0 :1.0 (config #1 , interface 0 ) [ 22.913862 ][ T67] hub 1 -0 :1.0 : usb_probe_interface [ 22.918829 ][ T67] hub 1 -0 :1.0 : usb_probe_interface - got id [ 22.924576 ][ T67] hub 1 -0 :1.0 : USB hub found [ 22.929026 ][ T67] hub 1 -0 :1.0 : 1 port detected [ 22.933645 ][ T67] hub 1 -0 :1.0 : standalone hub [ 22.938176 ][ T67] hub 1 -0 :1.0 : individual port power switching [ 22.944182 ][ T67] hub 1 -0 :1.0 : individual port over-current protection [ 22.950881 ][ T67] hub 1 -0 :1.0 : Single TT [ 22.954978 ][ T67] hub 1 -0 :1.0 : TT requires at most 8 FS bit times (666 ns) [ 22.962026 ][ T67] hub 1 -0 :1.0 : power on to power good time: 20 ms [ 22.968211 ][ T67] hub 1 -0 :1.0 : local power source is good [ 22.973809 ][ T67] hub 1 -0 :1.0 : enabling power on all ports [ 22.979470 ][ T67] xhci-hcd xhci-hcd.0. auto : set port power 1 -1 ON, portsc: 0x2a0 [ 22.987101 ][ T67] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM. [ 22.995897][ T67] usb usb2: skipped 1 descriptor after endpoint [ 23.001995][ T67] usb usb2: default language 0x0409 [ 23.007055][ T67] usb usb2: udev 1, busnum 2, minor = 128 [ 23.012638][ T10] xhci-hcd xhci-hcd.0.auto: Get port status 1-1 read: 0x2a0, return 0x100 [ 23.012711][ T67] usb usb2: usb_probe_device [ 23.021006][ T69] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 23.025437][ T67] usb usb2: configuration #1 chosen from 1 choice [ 23.025440][ T67] xHCI xhci_add_endpoint called for root hub [ 23.031621][ T69] hub 1-0:1.0: hub_suspend [ 23.037882][ T67] xHCI xhci_check_bandwidth called for root hub [ 23.043717][ T69] usb usb1: bus auto-suspend, wakeup 1 [ 23.047991][ T67] usb usb2: adding 2-0:1.0 (config #1, interface 0) [ 23.054074][ T69] usb usb1: suspend raced with wakeup event [ 23.059406][ T67] hub 2-0:1.0: usb_probe_interface [ 23.065821][ T69] usb usb1: usb auto-resume [ 23.065827][ T69] hub 1-0:1.0: hub_resume [ 23.071568][ T67] hub 2-0:1.0: usb_probe_interface - got id [ 23.076529][ T69] xhci-hcd xhci-hcd.0.auto: Get port status 1-1 read: 0x2a0, return 0x100 [ 23.080888][ T67] hub 2-0:1.0: USB hub found [ 23.085066][ T69] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 23.090818][ T67] hub 2-0:1.0: 1 port detected [ 23.099156][ T69] hub 1-0:1.0: hub_suspend [ 23.103600][ T67] hub 2-0:1.0: standalone hub [ 23.109779][ T69] usb usb1: bus auto-suspend, wakeup 1 [ 23.114390][ T67] hub 2-0:1.0: individual port power switching [ 23.118659][ T69] usb usb1: suspend raced with wakeup event [ 23.123186][ T67] hub 2-0:1.0: individual port over-current protection [ 23.128495][ T69] usb usb1: usb auto-resume [ 23.134498][ T67] hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns) [ 23.140244][ T69] hub 1-0:1.0: hub_resume [ 23.146938][ T67] hub 2-0:1.0: power on to power good time: 100ms [ 23.151293][ T69] xhci-hcd xhci-hcd.0.auto: Get port status 1-1 read: 0x2a0, return 0x100 [ 23.177129][ T67] hub 2-0:1.0: local power source is good [ 23.177129][ T69] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 23.177132][ T69] hub 1-0:1.0: hub_suspend [ 23.182717][ T67] usb usb2-port1: peered to usb1-port1 [ 23.188880][ T69] usb usb1: bus auto-suspend, wakeup 1 [ 23.193148][ T67] hub 2-0:1.0: enabling power on all ports [ 23.198457][ T69] usb usb1: suspend raced with wakeup event [ 23.203767][ T67] xhci-hcd xhci-hcd.0.auto: set port power 2-1 ON, portsc: 0x2a0 [ 23.209420][ T69] usb usb1: usb auto-resume [ 23.227086][ T69] hub 1-0:1.0: hub_resume [ 23.231270][ T69] xhci-hcd xhci-hcd.0.auto: Get port status 1-1 read: 0x2a0, return 0x100 [ 23.239623][ T69] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 23.245805][ T69] hub 1-0:1.0: hub_suspend [ 23.250078][ T69] usb usb1: bus auto-suspend, wakeup 1 [ 23.255392][ T69] usb usb1: suspend raced with wakeup event [ 23.261137][ T69] usb usb1: usb auto-resume [ 23.265495][ T69] hub 1-0:1.0: hub_resume [ 23.269677][ T69] xhci-hcd xhci-hcd.0.auto: Get port status 1-1 read: 0x2a0, return 0x100 [ 23.278030][ T69] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 23.284211][ T69] hub 1-0:1.0: hub_suspend [ 23.288482][ T69] usb usb1: bus auto-suspend, wakeup 1 [ 23.293794][ T69] usb usb1: suspend raced with wakeup event [ 23.299539][ T69] usb usb1: usb auto-resume [ 23.315980][ T69] hub 1-0:1.0: hub_resume [ 23.315984][ T10] xhci-hcd xhci-hcd.0.auto: Get port status 2-1 read: 0x2a0, return 0x2a0 [ 23.328509][ T69] xhci-hcd xhci-hcd.0.auto: Get port status 1-1 read: 0x2a0, return 0x100 [ 23.328530][ T73] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 23.336865][ T69] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0000 [ 23.343046][ T73] xhci-hcd xhci-hcd.0.auto: set port remote wake mask, actual port 2-1 status = 0xe0002a0 [ 23.349219][ T69] hub 1-0:1.0: hub_suspend [ 23.359045][ T73] hub 2-0:1.0: hub_suspend [ 23.363309][ T69] usb usb1: bus auto-suspend, wakeup 1 [ 23.367580][ T73] usb usb2: bus auto-suspend, wakeup 1 [ 23.372888][ T69] xhci-hcd xhci-hcd.0.auto: xhci_hub_status_data: stopping usb1 port polling [ 23.386805][ T73] xhci-hcd xhci-hcd.0.auto: xhci_hub_status_data: stopping usb2 port polling
设备接入 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 [ 5722.347763 ][ C0] xhci-hcd xhci-hcd.0. auto : Port change event, 2 -1 , id 2 , portsc: 0xa021603 [ 5722.356288 ][ C0] xhci-hcd xhci-hcd.0. auto : resume root hub [ 5722.362033 ][ C0] xhci-hcd xhci-hcd.0. auto : handle_port_status: starting usb2 port polling. [ 5722.370566 ][ T69] usb usb2: usb wakeup-resume [ 5722.375105 ][ T69] usb usb2: usb auto -resume [ 5722.379475 ][ T69] hub 2 -0 :1.0 : hub_resume [ 5722.411484 ][ T69] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x21603 , return 0x10203 [ 5722.420195 ][ T69] usb usb2-port1: status 0203 change 0001 [ 5722.425776 ][ T69] xhci-hcd xhci-hcd.0. auto : clear port1 connect change, portsc: 0x1603 [ 5722.511471 ][ C0] xhci-hcd xhci-hcd.0. auto : xhci_hub_status_data: stopping usb2 port polling [ 5722.539486 ][ T69] hub 2 -0 :1.0 : state 7 ports 1 chg 0002 evt 0000 [ 5722.545668 ][ C0] xhci-hcd xhci-hcd.0. auto : xhci_hub_status_data: stopping usb2 port polling [ 5722.554288 ][ T69] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x1603 , return 0x203 [ 5722.562733 ][ T69] usb usb2-port1: status 0203 , change 0000 , 10.0 Gb/s [ 5722.569352 ][ T69] xhci-hcd xhci-hcd.0. auto : [ 5722.574937 ][ T69] xhci-hcd xhci-hcd.0. auto : Slot 1 output ctx = 0x0 x0000000812d0e000 (dma) [ 5722.583374 ][ T69] xhci-hcd xhci-hcd.0. auto : Slot 1 input ctx = 0x0 x0000000812d23000 (dma) [ 5722.591730 ][ T69] xhci-hcd xhci-hcd.0. auto : Set slot id 1 dcbaa entry (____ptrval____) to 0x812d0e000 [ 5722.601166 ][ T69] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x1603 , return 0x203 [ 5722.609618 ][ T69] xhci-hcd xhci-hcd.0. auto : set port reset, actual port 2 -1 status = 0x1711 [ 5722.618231 ][ C0] xhci-hcd xhci-hcd.0. auto : Port change event, 2 -1 , id 2 , portsc: 0x201603 [ 5722.626665 ][ C0] xhci-hcd xhci-hcd.0. auto : handle_port_status: starting usb2 port polling. [ 5722.699481 ][ T69] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x201603 , return 0x100203 [ 5722.708368 ][ T69] xhci-hcd xhci-hcd.0. auto : clear port1 reset change, portsc: 0x1603 [ 5722.716297 ][ T69] xhci-hcd xhci-hcd.0. auto : clear port1 warm(BH) reset change, portsc: 0x1603 [ 5722.725007 ][ T69] xhci-hcd xhci-hcd.0. auto : clear port1 link state change, portsc: 0x1603 [ 5722.733370 ][ T69] xhci-hcd xhci-hcd.0. auto : clear port1 connect change, portsc: 0x1603 [ 5722.741473 ][ T69] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x1603 , return 0x203 [ 5722.759470 ][ C0] xhci-hcd xhci-hcd.0. auto : xhci_hub_status_data: stopping usb2 port polling [ 5722.807486 ][ T69] xhci-hcd xhci-hcd.0. auto : Set root hub portnum to 2 [ 5722.814098 ][ T69] xhci-hcd xhci-hcd.0. auto : Set fake root hub portnum to 1 [ 5722.821146 ][ T69] xhci-hcd xhci-hcd.0. auto : udev->tt = 0000000000000000 [ 5722.827932 ][ T69] xhci-hcd xhci-hcd.0. auto : udev->ttport = 0x0 [ 5722.833939 ][ T69] xhci-hcd xhci-hcd.0. auto : [ 5722.839524 ][ T69] xhci-hcd xhci-hcd.0. auto : Successful setup address command [ 5722.846748 ][ T69] xhci-hcd xhci-hcd.0. auto : Op regs DCBAA ptr = 0x00000812ca1000 [ 5722.854316 ][ T69] xhci-hcd xhci-hcd.0. auto : Slot ID 1 dcbaa entry @(____ptrval____) = 0x00000812d0e000 [ 5722.863794 ][ T69] xhci-hcd xhci-hcd.0. auto : Output Context DMA address = 0x812d0e000 [ 5722.871711 ][ T69] xhci-hcd xhci-hcd.0. auto : Internal device address = 1 [ 5722.878500 ][ T69] usb 2 -1 : new SuperSpeed Plus Gen 2 x1 USB device number 4 using xhci-hcd [ 5722.903806 ][ T69] usb 2 -1 : skipped 1 descriptor after endpoint [ 5722.909813 ][ T69] usb 2 -1 : skipped 1 descriptor after endpoint [ 5722.915818 ][ T69] usb 2 -1 : skipped 2 descriptors after endpoint [ 5722.921909 ][ T69] usb 2 -1 : skipped 2 descriptors after endpoint [ 5722.928001 ][ T69] usb 2 -1 : skipped 2 descriptors after endpoint [ 5722.934092 ][ T69] usb 2 -1 : skipped 2 descriptors after endpoint [ 5722.940214 ][ C0] xhci-hcd xhci-hcd.0. auto : Waiting for status stage event [ 5722.947270 ][ T69] usb 2 -1 : default language 0x0409 [ 5722.952260 ][ C0] xhci-hcd xhci-hcd.0. auto : Waiting for status stage event [ 5722.959345 ][ C0] xhci-hcd xhci-hcd.0. auto : Waiting for status stage event [ 5722.966427 ][ C0] xhci-hcd xhci-hcd.0. auto : Waiting for status stage event [ 5722.973486 ][ T69] usb 2 -1 : udev 4 , busnum 2 , minor = 131 [ 5722.979085 ][ T69] usb 2 -1 : usb_probe_device [ 5722.983447 ][ T69] usb 2 -1 : configuration #1 chosen from 1 choice [ 5722.989645 ][ T69] xhci-hcd xhci-hcd.0. auto : add ep 0x81 , slot id 1 , new drop flags = 0x0 , new add flags = 0x8 [ 5722.999744 ][ T69] xhci-hcd xhci-hcd.0. auto : add ep 0x2 , slot id 1 , new drop flags = 0x0 , new add flags = 0x18 [ 5723.009832 ][ T69] xhci-hcd xhci-hcd.0. auto : xhci_check_bandwidth called for udev (____ptrval____) [ 5723.018885 ][ T69] xhci-hcd xhci-hcd.0. auto : [ 5723.024472 ][ T69] xhci-hcd xhci-hcd.0. auto : Successful Endpoint Configure command [ 5723.032185 ][ T69] xhci-hcd xhci-hcd.0. auto : [ 5723.037763 ][ C0] xhci-hcd xhci-hcd.0. auto : Stopped on No-op or Link TRB for slot 1 ep 2 [ 5723.046037 ][ T69] xhci-hcd xhci-hcd.0. auto : [ 5723.051634 ][ T69] xhci-hcd xhci-hcd.0. auto : [ 5723.057212 ][ C0] xhci-hcd xhci-hcd.0. auto : Stopped on No-op or Link TRB for slot 1 ep 3 [ 5723.065487 ][ T69] xhci-hcd xhci-hcd.0. auto : [ 5723.071119 ][ T69] usb 2 -1 : adding 2 -1 :1.0 (config #1 , interface 0 ) [ 5723.078010 ][ T69] usb-storage 2 -1 :1.0 : usb_probe_interface [ 5723.084267 ][ T69] usb-storage 2 -1 :1.0 : usb_probe_interface - got id [ 5723.090711 ][ T69] usb-storage 2 -1 :1.0 : USB Mass Storage device detected [ 5723.097634 ][ T69] scsi host0: usb-storage 2 -1 :1.0 [ 5723.102573 ][ T69] scsi host0: scsi_runtime_idle [ 5723.107281 ][ T69] scsi host0: scsi_runtime_suspend [ 5724.115518 ][ T69] scsi host0: scsi_runtime_resume [ 5724.121177 ][ T69] scsi 0 :0 :0 :0 : Direct-Access Seagate One Touch SSD PMAP PQ: 0 ANSI: 6 [ 5724.131109 ][ T103] sd 0 :0 :0 :0 : [sda] 976773168 512 -byte logical blocks: (500 GB/466 GiB) [ 5724.139523 ][ C0] xhci-hcd xhci-hcd.0. auto : ep 0x81 - asked for 192 bytes, 156 bytes untransferred [ 5724.148658 ][ C0] xhci-hcd xhci-hcd.0. auto : Giveback URB (____ptrval____), len = 36 , expected = 192 , status = 0 [ 5724.158962 ][ T103] sd 0 :0 :0 :0 : [sda] Write Protect is off [ 5724.164453 ][ T103] sd 0 :0 :0 :0 : [sda] Mode Sense: 23 00 00 00 [ 5724.170582 ][ C0] xhci-hcd xhci-hcd.0. auto : ep 0x81 - asked for 192 bytes, 156 bytes untransferred [ 5724.179713 ][ C0] xhci-hcd xhci-hcd.0. auto : Giveback URB (____ptrval____), len = 36 , expected = 192 , status = 0 [ 5724.190015 ][ T103] sd 0 :0 :0 :0 : [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 5724.201057][ C0] xhci-hcd xhci-hcd.0.auto: ep 0x81 - asked for 192 bytes, 156 bytes untransferred [ 5724.210187][ C0] xhci-hcd xhci-hcd.0.auto: Giveback URB (____ptrval____), len = 36, expected = 192, status = 0 [ 5724.220866][ C0] xhci-hcd xhci-hcd.0.auto: ep 0x81 - asked for 192 bytes, 156 bytes untransferred [ 5724.229994][ C0] xhci-hcd xhci-hcd.0.auto: Giveback URB (____ptrval____), len = 36, expected = 192, status = 0 [ 5724.240742][ T103] sd 0:0:0:0: [sda] Attached SCSI disk
读写数据 1 2 3 4 [root@tst ]# dd if=/dev/urandom of=/dev/sda bs=1K count=8K 8192+0 records in 8192+0 records out 8388608 bytes (8.0MB) copied, 0.381332 seconds, 21.0MB/s
移除SCSI缓存 1 2 3 4 [root@tst ]# echo 1 > /sys/class/block/sda/device/delete [ 884.515984][ T85] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 884.522985][ T31] scsi host0: scsi_runtime_idle [ 884.528762][ T31] scsi host0: scsi_runtime_suspend
安全弹出 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 [root@tst ]# echo 1 > /sys/bus/usb/devices/2-1/remove [ 961.784696 ][ T85] usb 2 -1 : unregistering interface 2 -1 :1.0 [ 961.790540 ][ T85] scsi host0: scsi_runtime_resume [ 961.828044 ][ T85] usb 2 -1 : usb_disable_device nuking non-ep0 URBs [ 961.834323 ][ T85] xhci-hcd xhci-hcd.0. auto : xhci_drop_endpoint called for udev 00000000450b f705 [ 961.843213 ][ T85] xhci-hcd xhci-hcd.0. auto : drop ep 0x81 , slot id 1 , new drop flags = 0x8 , new add flags = 0x0 [ 961.853387 ][ T85] xhci-hcd xhci-hcd.0. auto : xhci_drop_endpoint called for udev 00000000450b f705 [ 961.862268 ][ T85] xhci-hcd xhci-hcd.0. auto : drop ep 0x2 , slot id 1 , new drop flags = 0x18 , new add flags = 0x0 [ 961.872443 ][ T85] xhci-hcd xhci-hcd.0. auto : xhci_check_bandwidth called for udev 00000000450b f705 [ 961.881493 ][ T85] xhci-hcd xhci-hcd.0. auto : [ 961.887079 ][ T85] xhci-hcd xhci-hcd.0. auto : Successful Endpoint Configure command [ 961.894743 ][ T85] xhci-hcd xhci-hcd.0. auto : xhci_check_bandwidth called for udev 00000000450b f705 [ 961.903819 ][ T85] usb usb2-port1: logical disconnect [ 961.908963 ][ T85] xhci-hcd xhci-hcd.0. auto : [ 961.914540 ][ C0] xhci-hcd xhci-hcd.0. auto : Stopped on No-op or Link TRB for slot 1 ep 0 [ 961.922811 ][ T85] xhci-hcd xhci-hcd.0. auto : Set port 2 -1 link state, portsc: 0x1603 , write 0x11661 [ 961.939962 ][ T71] hub 2 -0 :1.0 : state 7 ports 1 chg 0002 evt 0000 [ 961.946148 ][ T71] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x1663 , return 0x263 [ 961.954591 ][ T71] usb usb2-port1: status 0263 , change 0000 , 10.0 Gb/s [ 961.961207 ][ T71] usb 2 -1 : USB disconnect, device number 2 [ 961.967992 ][ T71] usb 2 -1 : unregistering device [ 961.972696 ][ T71] usb 2 -1 : usb_disable_device nuking all URBs [ 961.978615 ][ T71] xhci-hcd xhci-hcd.0. auto : xhci_check_bandwidth called for udev 00000000450b f705 [ 961.987776 ][ T71] xhci-hcd xhci-hcd.0. auto : [ 961.993366 ][ T71] xhci-hcd xhci-hcd.0. auto : Set port 2 -1 link state, portsc: 0x1663 , write 0x11661 [ 962.007982 ][ T71] xhci-hcd xhci-hcd.0. auto : set port remote wake mask, actual port 2 -1 status = 0xe001663 [ 962.017814 ][ T71] hub 2 -0 :1.0 : hub_suspend [ 962.022098 ][ T71] usb usb2: bus auto -suspend, wakeup 1 [ 962.027413 ][ T71] xhci-hcd xhci-hcd.0. auto : xhci_hub_status_data: stopping usb2 port polling
设备拔出 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [ 981.667755 ][ C0] xhci-hcd xhci-hcd.0. auto : Port change event, 2 -1 , id 2 , portsc: 0xc0202a0 [ 981.676279 ][ C0] xhci-hcd xhci-hcd.0. auto : resume root hub [ 981.682023 ][ C0] xhci-hcd xhci-hcd.0. auto : handle_port_status: starting usb2 port polling. [ 981.690550 ][ T119] usb usb2: usb wakeup-resume [ 981.695086 ][ T119] usb usb2: usb auto -resume [ 981.699448 ][ T119] hub 2 -0 :1.0 : hub_resume [ 981.727974 ][ T119] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x202a0 , return 0x102a0 [ 981.736682 ][ T119] xhci-hcd xhci-hcd.0. auto : clear port1 connect change, portsc: 0x2a0 [ 981.851977 ][ T119] hub 2 -0 :1.0 : state 7 ports 1 chg 0002 evt 0000 [ 981.858160 ][ C0] xhci-hcd xhci-hcd.0. auto : xhci_hub_status_data: stopping usb2 port polling [ 981.866771 ][ T119] xhci-hcd xhci-hcd.0. auto : Get port status 2 -1 read: 0x2a0 , return 0x2a0 [ 981.875125 ][ T119] usb usb2-port1: status 02 a0, change 0000 , 10.0 Gb/s [ 981.881743 ][ T119] xhci-hcd xhci-hcd.0. auto : set port remote wake mask, actual port 2 -1 status = 0xe0002a0 [ 981.891570 ][ T119] hub 2 -0 :1.0 : hub_suspend [ 981.895842 ][ T119] usb usb2: bus auto -suspend, wakeup 1 [ 981.901153 ][ T119] xhci-hcd xhci-hcd.0. auto : xhci_hub_status_data: stopping usb2 port polling
抓取函数堆栈 通过dump_stack()函数,查看特定函数的堆栈
xhci_halt 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 // linux-6.6.64/drivers/usb/host/xhci.c int xhci_halt(struct xhci_hcd *xhci) [ 88.026117][ T67] Hardware name: BST C1200 EVB (DT) [ 88.031166][ T67] Workqueue: events_freezable __dwc3_set_mode [ 88.037092][ T67] Call trace: [ 88.040232][ T67] dump_backtrace+0xa4/0x134 [ 88.044678][ T67] show_stack+0x18/0x24 [ 88.048688][ T67] dump_stack_lvl+0x48/0x60 [ 88.053048][ T67] dump_stack+0x18/0x24 [ 88.057057][ T67] xhci_halt+0x18/0xac [ 88.060979][ T67] xhci_gen_setup+0x248/0x4e4 [ 88.065508][ T67] xhci_plat_setup+0x58/0x68 [ 88.069954][ T67] usb_add_hcd+0x278/0x634 [ 88.074222][ T67] xhci_plat_probe+0x42c/0x66c [ 88.078838][ T67] xhci_generic_plat_probe+0x7c/0xd8 [ 88.083974][ T67] platform_probe+0x68/0xd8 [ 88.088330][ T67] really_probe+0x128/0x39c [ 88.092684][ T67] __driver_probe_device+0x88/0x170 [ 88.097734][ T67] driver_probe_device+0x3c/0x108 [ 88.102610][ T67] __device_attach_driver+0xcc/0x14c [ 88.107746][ T67] bus_for_each_drv+0x74/0xbc [ 88.112273][ T67] __device_attach+0xd4/0x1b8 [ 88.116801][ T67] device_initial_probe+0x14/0x20 [ 88.121677][ T67] bus_probe_device+0xa8/0xac [ 88.126205][ T67] device_add+0x5ac/0x724 [ 88.130387][ T67] platform_device_add+0x120/0x284 [ 88.135350][ T67] dwc3_host_init+0x260/0x2fc [ 88.139880][ T67] __dwc3_set_mode+0x148/0x3d8 [ 88.144496][ T67] process_scheduled_works+0x170/0x290 [ 88.149805][ T67] worker_thread+0x164/0x310 [ 88.154246][ T67] kthread+0x118/0x124 [ 88.158169][ T67] ret_from_fork+0x10/0x20
xhci_run 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 // linux-6.6.64/drivers/usb/host/xhci.c int xhci_run(struct usb_hcd *hcd) [ 14.146200][ T70] Hardware name: BST C1200 EVB (DT) [ 14.151249][ T70] Workqueue: events_freezable __dwc3_set_mode [ 14.157177][ T70] Call trace: [ 14.160316][ T70] dump_backtrace+0xa4/0x134 [ 14.164765][ T70] show_stack+0x18/0x24 [ 14.168773][ T70] dump_stack_lvl+0x48/0x60 [ 14.173132][ T70] dump_stack+0x18/0x24 [ 14.177141][ T70] xhci_run+0x28/0x280 [ 14.181064][ T70] xhci_plat_start+0x3c/0x4c [ 14.185506][ T70] usb_add_hcd+0x3dc/0x634 [ 14.189773][ T70] xhci_plat_probe+0x42c/0x66c [ 14.194389][ T70] xhci_generic_plat_probe+0x7c/0xd8 [ 14.199526][ T70] platform_probe+0x68/0xd8 [ 14.203882][ T70] really_probe+0x128/0x39c [ 14.208237][ T70] __driver_probe_device+0x88/0x170 [ 14.213286][ T70] driver_probe_device+0x3c/0x108 [ 14.218163][ T70] __device_attach_driver+0xcc/0x14c [ 14.223299][ T70] bus_for_each_drv+0x74/0xbc [ 14.227826][ T70] __device_attach+0xd4/0x1b8 [ 14.232353][ T70] device_initial_probe+0x14/0x20 [ 14.237229][ T70] bus_probe_device+0xa8/0xac [ 14.241756][ T70] device_add+0x5ac/0x724 [ 14.245939][ T70] platform_device_add+0x120/0x284 [ 14.250902][ T70] dwc3_host_init+0x260/0x2fc [ 14.255431][ T70] __dwc3_set_mode+0x148/0x3d8 [ 14.260047][ T70] process_scheduled_works+0x170/0x290 [ 14.265357][ T70] worker_thread+0x164/0x310 [ 14.269798][ T70] kthread+0x118/0x124 [ 14.273721][ T70] ret_from_fork+0x10/0x20
usb_get_langid 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 // linux-6.6.64/drivers/usb/core/message.c static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf) [ 20.517956][ T69] Hardware name: BST C1200 EVB (DT) [ 20.523005][ T69] Workqueue: events_freezable __dwc3_set_mode [ 20.528932][ T69] Call trace: [ 20.532070][ T69] dump_backtrace+0xa4/0x134 [ 20.536518][ T69] show_stack+0x18/0x24 [ 20.540526][ T69] dump_stack_lvl+0x48/0x60 [ 20.544885][ T69] dump_stack+0x18/0x24 [ 20.548894][ T69] usb_string+0x74/0x20c [ 20.552989][ T69] usb_cache_string+0x58/0xe8 [ 20.557518][ T69] usb_new_device+0x84/0x428 [ 20.561959][ T69] register_root_hub+0xd4/0x228 [ 20.566661][ T69] usb_add_hcd+0x50c/0x634 [ 20.570928][ T69] xhci_plat_probe+0x490/0x66c [ 20.575544][ T69] xhci_generic_plat_probe+0x7c/0xd8 [ 20.580679][ T69] platform_probe+0x68/0xd8 [ 20.585036][ T69] really_probe+0x128/0x39c [ 20.589391][ T69] __driver_probe_device+0x88/0x170 [ 20.594440][ T69] driver_probe_device+0x3c/0x108 [ 20.599316][ T69] __device_attach_driver+0xcc/0x14c [ 20.604451][ T69] bus_for_each_drv+0x74/0xbc [ 20.608979][ T69] __device_attach+0xd4/0x1b8 [ 20.613507][ T69] device_initial_probe+0x14/0x20 [ 20.618383][ T69] bus_probe_device+0xa8/0xac [ 20.622910][ T69] device_add+0x5ac/0x724 [ 20.627093][ T69] platform_device_add+0x120/0x284 [ 20.632056][ T69] dwc3_host_init+0x260/0x2fc [ 20.636586][ T69] __dwc3_set_mode+0x148/0x3d8 [ 20.641203][ T69] process_scheduled_works+0x170/0x290 [ 20.646513][ T69] worker_thread+0x164/0x310 [ 20.650955][ T69] kthread+0x118/0x124 [ 20.654869][ T69] ret_from_fork+0x10/0x20
usb_probe_device 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 // linux-6.6.64/drivers/usb/core/driver.c static int usb_probe_device(struct device *dev) [ 21.187959][ T69] CPU: 2 PID: 69 Comm: kworker/2:1 Not tainted 6.6.64 #13 [ 21.194918][ T69] Hardware name: BST C1200 EVB (DT) [ 21.199967][ T69] Workqueue: events_freezable __dwc3_set_mode [ 21.205894][ T69] Call trace: [ 21.209033][ T69] dump_backtrace+0xa4/0x134 [ 21.213478][ T69] show_stack+0x18/0x24 [ 21.217487][ T69] dump_stack_lvl+0x48/0x60 [ 21.221845][ T69] dump_stack+0x18/0x24 [ 21.225854][ T69] usb_probe_device+0x24/0x10c [ 21.230471][ T69] really_probe+0x128/0x39c [ 21.234827][ T69] __driver_probe_device+0x88/0x170 [ 21.239876][ T69] driver_probe_device+0x3c/0x108 [ 21.244751][ T69] __device_attach_driver+0xcc/0x14c [ 21.249888][ T69] bus_for_each_drv+0x74/0xbc [ 21.254416][ T69] __device_attach+0xd4/0x1b8 [ 21.258943][ T69] device_initial_probe+0x14/0x20 [ 21.263819][ T69] bus_probe_device+0xa8/0xac [ 21.268348][ T69] device_add+0x5ac/0x724 [ 21.272530][ T69] usb_new_device+0x1a4/0x428 [ 21.277058][ T69] register_root_hub+0xd4/0x228 [ 21.281760][ T69] usb_add_hcd+0x50c/0x634 [ 21.286028][ T69] xhci_plat_probe+0x490/0x66c [ 21.290644][ T69] xhci_generic_plat_probe+0x7c/0xd8 [ 21.295779][ T69] platform_probe+0x68/0xd8 [ 21.300134][ T69] really_probe+0x128/0x39c [ 21.304489][ T69] __driver_probe_device+0x88/0x170 [ 21.309538][ T69] driver_probe_device+0x3c/0x108 [ 21.314412][ T69] __device_attach_driver+0xcc/0x14c [ 21.319548][ T69] bus_for_each_drv+0x74/0xbc [ 21.324076][ T69] __device_attach+0xd4/0x1b8 [ 21.328605][ T69] device_initial_probe+0x14/0x20 [ 21.333481][ T69] bus_probe_device+0xa8/0xac [ 21.338009][ T69] device_add+0x5ac/0x724 [ 21.342191][ T69] platform_device_add+0x120/0x284 [ 21.347154][ T69] dwc3_host_init+0x260/0x2fc [ 21.351684][ T69] __dwc3_set_mode+0x148/0x3d8 [ 21.356299][ T69] process_scheduled_works+0x170/0x290 [ 21.361609][ T69] worker_thread+0x164/0x310 [ 21.366049][ T69] kthread+0x118/0x124 [ 21.369972][ T69] ret_from_fork+0x10/0x20
xhci_add_endpoint 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 // linux-6.6.64/drivers/usb/host/xhci.c int xhci_add_endpoint(struct usb_hcd *hcd, struct usb_device *udev, struct usb_host_endpoint *ep) [ 14.971340][ T67] CPU: 0 PID: 67 Comm: kworker/0:2 Not tainted 6.6.64 #14 [ 14.978300][ T67] Hardware name: BST C1200 EVB (DT) [ 14.983348][ T67] Workqueue: events_freezable __dwc3_set_mode [ 14.989273][ T67] Call trace: [ 14.992411][ T67] dump_backtrace+0xa4/0x134 [ 14.996856][ T67] show_stack+0x18/0x24 [ 15.000866][ T67] dump_stack_lvl+0x48/0x60 [ 15.005223][ T67] dump_stack+0x18/0x24 [ 15.009232][ T67] xhci_add_endpoint+0x30/0x2e8 [ 15.013935][ T67] usb_hcd_alloc_bandwidth+0x134/0x358 [ 15.019245][ T67] usb_set_configuration+0x104/0x91c [ 15.024381][ T67] usb_generic_driver_probe+0x60/0x88 [ 15.029605][ T67] usb_probe_device+0x48/0x104 [ 15.034221][ T67] really_probe+0x128/0x39c [ 15.038576][ T67] __driver_probe_device+0x88/0x170 [ 15.043625][ T67] driver_probe_device+0x3c/0x108 [ 15.048501][ T67] __device_attach_driver+0xcc/0x14c [ 15.053636][ T67] bus_for_each_drv+0x74/0xbc [ 15.058163][ T67] __device_attach+0xd4/0x1b8 [ 15.062691][ T67] device_initial_probe+0x14/0x20 [ 15.067568][ T67] bus_probe_device+0xa8/0xac [ 15.072096][ T67] device_add+0x5ac/0x724 [ 15.076280][ T67] usb_new_device+0x1a4/0x428 [ 15.080808][ T67] register_root_hub+0xd4/0x228 [ 15.085508][ T67] usb_add_hcd+0x50c/0x634 [ 15.089776][ T67] xhci_plat_probe+0x490/0x66c [ 15.094393][ T67] xhci_generic_plat_probe+0x7c/0xd8 [ 15.099529][ T67] platform_probe+0x68/0xd8 [ 15.103883][ T67] really_probe+0x128/0x39c [ 15.108238][ T67] __driver_probe_device+0x88/0x170 [ 15.113287][ T67] driver_probe_device+0x3c/0x108 [ 15.118162][ T67] __device_attach_driver+0xcc/0x14c [ 15.123298][ T67] bus_for_each_drv+0x74/0xbc [ 15.127826][ T67] __device_attach+0xd4/0x1b8 [ 15.132354][ T67] device_initial_probe+0x14/0x20 [ 15.137228][ T67] bus_probe_device+0xa8/0xac [ 15.141756][ T67] device_add+0x5ac/0x724 [ 15.145939][ T67] platform_device_add+0x120/0x284 [ 15.150901][ T67] dwc3_host_init+0x260/0x2fc [ 15.155429][ T67] __dwc3_set_mode+0x148/0x3d8 [ 15.160045][ T67] process_scheduled_works+0x170/0x290 [ 15.165355][ T67] worker_thread+0x164/0x310 [ 15.169795][ T67] kthread+0x118/0x124 [ 15.173717][ T67] ret_from_fork+0x10/0x20
xhci_check_bandwidth 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 // linux-6.6.64/drivers/usb/host/xhci.c int xhci_check_bandwidth(struct usb_hcd *hcd, struct usb_device *udev) [ 15.183822][ T67] CPU: 0 PID: 67 Comm: kworker/0:2 Not tainted 6.6.64 #14 [ 15.190780][ T67] Hardware name: BST C1200 EVB (DT) [ 15.195827][ T67] Workqueue: events_freezable __dwc3_set_mode [ 15.201746][ T67] Call trace: [ 15.204884][ T67] dump_backtrace+0xa4/0x134 [ 15.209326][ T67] show_stack+0x18/0x24 [ 15.213335][ T67] dump_stack_lvl+0x48/0x60 [ 15.217691][ T67] dump_stack+0x18/0x24 [ 15.221700][ T67] xhci_check_bandwidth+0x28/0x2f0 [ 15.226663][ T67] usb_hcd_alloc_bandwidth+0x234/0x358 [ 15.231973][ T67] usb_set_configuration+0x104/0x91c [ 15.237110][ T67] usb_generic_driver_probe+0x60/0x88 [ 15.242332][ T67] usb_probe_device+0x48/0x104 [ 15.246948][ T67] really_probe+0x128/0x39c [ 15.251302][ T67] __driver_probe_device+0x88/0x170 [ 15.256351][ T67] driver_probe_device+0x3c/0x108 [ 15.261226][ T67] __device_attach_driver+0xcc/0x14c [ 15.266362][ T67] bus_for_each_drv+0x74/0xbc [ 15.270889][ T67] __device_attach+0xd4/0x1b8 [ 15.275417][ T67] device_initial_probe+0x14/0x20 [ 15.280292][ T67] bus_probe_device+0xa8/0xac [ 15.284819][ T67] device_add+0x5ac/0x724 [ 15.289002][ T67] usb_new_device+0x1a4/0x428 [ 15.293529][ T67] register_root_hub+0xd4/0x228 [ 15.298231][ T67] usb_add_hcd+0x50c/0x634 [ 15.302499][ T67] xhci_plat_probe+0x490/0x66c [ 15.307115][ T67] xhci_generic_plat_probe+0x7c/0xd8 [ 15.312250][ T67] platform_probe+0x68/0xd8 [ 15.316604][ T67] really_probe+0x128/0x39c [ 15.320959][ T67] __driver_probe_device+0x88/0x170 [ 15.326009][ T67] driver_probe_device+0x3c/0x108 [ 15.330884][ T67] __device_attach_driver+0xcc/0x14c [ 15.336020][ T67] bus_for_each_drv+0x74/0xbc [ 15.340547][ T67] __device_attach+0xd4/0x1b8 [ 15.345074][ T67] device_initial_probe+0x14/0x20 [ 15.349948][ T67] bus_probe_device+0xa8/0xac [ 15.354476][ T67] device_add+0x5ac/0x724 [ 15.358659][ T67] platform_device_add+0x120/0x284 [ 15.363621][ T67] dwc3_host_init+0x260/0x2fc [ 15.368149][ T67] __dwc3_set_mode+0x148/0x3d8 [ 15.372765][ T67] process_scheduled_works+0x170/0x290 [ 15.378073][ T67] worker_thread+0x164/0x310 [ 15.382515][ T67] kthread+0x118/0x124 [ 15.386436][ T67] ret_from_fork+0x10/0x20
xhci_set_port_power 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 // linux-6.6.64/drivers/usb/host/xhci-hub.c static void xhci_set_port_power(struct xhci_hcd *xhci, struct xhci_port *port, bool on, unsigned long *flags) [ 11.736368][ T67] CPU: 0 PID: 67 Comm: kworker/0:2 Not tainted 6.6.64 #15 [ 11.743326][ T67] Hardware name: BST C1200 EVB (DT) [ 11.748375][ T67] Workqueue: events_freezable __dwc3_set_mode [ 11.754302][ T67] Call trace: [ 11.757441][ T67] dump_backtrace+0xa4/0x134 [ 11.761888][ T67] show_stack+0x18/0x24 [ 11.765897][ T67] dump_stack_lvl+0x48/0x60 [ 11.770255][ T67] dump_stack+0x18/0x24 [ 11.774265][ T67] xhci_set_port_power+0x30/0x164 [ 11.779142][ T67] xhci_hub_control+0xc00/0x2458 [ 11.783930][ T67] usb_hcd_submit_urb+0x22c/0xa38 [ 11.788806][ T67] usb_submit_urb+0x340/0x5dc [ 11.793334][ T67] usb_start_wait_urb+0x58/0x134 [ 11.798122][ T67] usb_control_msg+0xb0/0x110 [ 11.802651][ T67] set_port_feature+0x40/0x50 [ 11.807181][ T67] hub_power_on+0x60/0x128 [ 11.811451][ T67] hub_activate+0x694/0x800 [ 11.815806][ T67] hub_probe+0x830/0xd3c [ 11.819899][ T67] usb_probe_interface+0x10c/0x2ec [ 11.824863][ T67] really_probe+0x128/0x39c [ 11.829219][ T67] __driver_probe_device+0x88/0x170 [ 11.834268][ T67] driver_probe_device+0x3c/0x108 [ 11.839143][ T67] __device_attach_driver+0xcc/0x14c [ 11.844278][ T67] bus_for_each_drv+0x74/0xbc [ 11.848805][ T67] __device_attach+0xd4/0x1b8 [ 11.853332][ T67] device_initial_probe+0x14/0x20 [ 11.858208][ T67] bus_probe_device+0xa8/0xac [ 11.862735][ T67] device_add+0x5ac/0x724 [ 11.866918][ T67] usb_set_configuration+0x4b4/0x91c [ 11.872054][ T67] usb_generic_driver_probe+0x60/0x88 [ 11.877276][ T67] usb_probe_device+0x48/0x104 [ 11.881893][ T67] really_probe+0x128/0x39c [ 11.886248][ T67] __driver_probe_device+0x88/0x170 [ 11.891296][ T67] driver_probe_device+0x3c/0x108 [ 11.896171][ T67] __device_attach_driver+0xcc/0x14c [ 11.901308][ T67] bus_for_each_drv+0x74/0xbc [ 11.905836][ T67] __device_attach+0xd4/0x1b8 [ 11.910363][ T67] device_initial_probe+0x14/0x20 [ 11.915239][ T67] bus_probe_device+0xa8/0xac [ 11.919766][ T67] device_add+0x5ac/0x724 [ 11.923947][ T67] usb_new_device+0x1a4/0x428 [ 11.928475][ T67] register_root_hub+0xd4/0x228 [ 11.933177][ T67] usb_add_hcd+0x50c/0x634 [ 11.937444][ T67] xhci_plat_probe+0x490/0x66c [ 11.942060][ T67] xhci_generic_plat_probe+0x7c/0xd8 [ 11.947197][ T67] platform_probe+0x68/0xd8 [ 11.951552][ T67] really_probe+0x128/0x39c [ 11.955906][ T67] __driver_probe_device+0x88/0x170 [ 11.960954][ T67] driver_probe_device+0x3c/0x108 [ 11.965829][ T67] __device_attach_driver+0xcc/0x14c [ 11.970964][ T67] bus_for_each_drv+0x74/0xbc [ 11.975491][ T67] __device_attach+0xd4/0x1b8 [ 11.980019][ T67] device_initial_probe+0x14/0x20 [ 11.984894][ T67] bus_probe_device+0xa8/0xac [ 11.989421][ T67] device_add+0x5ac/0x724 [ 11.993603][ T67] platform_device_add+0x120/0x284 [ 11.998565][ T67] dwc3_host_init+0x260/0x2fc [ 12.003094][ T67] __dwc3_set_mode+0x148/0x3d8 [ 12.007709][ T67] process_scheduled_works+0x170/0x290 [ 12.013019][ T67] worker_thread+0x164/0x310 [ 12.017460][ T67] kthread+0x118/0x124 [ 12.021382][ T67] ret_from_fork+0x10/0x20
usb_device_supports_lpm 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 // linux-6.6.64/drivers/usb/core/hub.c int usb_device_supports_lpm(struct usb_device *udev) [ 9.994854][ T69] CPU: 2 PID: 69 Comm: kworker/2:1 Not tainted 6.6.64 #16 [ 10.001814][ T69] Hardware name: BST C1200 EVB (DT) [ 10.006862][ T69] Workqueue: events_freezable __dwc3_set_mode [ 10.012788][ T69] Call trace: [ 10.015927][ T69] dump_backtrace+0xa4/0x134 [ 10.020373][ T69] show_stack+0x18/0x24 [ 10.024382][ T69] dump_stack_lvl+0x48/0x60 [ 10.028740][ T69] dump_stack+0x18/0x24 [ 10.032749][ T69] usb_device_supports_lpm+0x18/0xf4 [ 10.037887][ T69] register_root_hub+0x1c8/0x228 [ 10.042677][ T69] usb_add_hcd+0x40c/0x634 [ 10.046944][ T69] xhci_plat_probe+0x490/0x66c [ 10.051560][ T69] xhci_generic_plat_probe+0x7c/0xd8 [ 10.056696][ T69] platform_probe+0x68/0xd8 [ 10.061052][ T69] really_probe+0x128/0x39c [ 10.065406][ T69] __driver_probe_device+0x88/0x170 [ 10.070455][ T69] driver_probe_device+0x3c/0x108 [ 10.075330][ T69] __device_attach_driver+0xcc/0x14c [ 10.080466][ T69] bus_for_each_drv+0x74/0xbc [ 10.084993][ T69] __device_attach+0xd4/0x1b8 [ 10.089520][ T69] device_initial_probe+0x14/0x20 [ 10.094396][ T69] bus_probe_device+0xa8/0xac [ 10.098925][ T69] device_add+0x5ac/0x724 [ 10.103099][ T69] platform_device_add+0x120/0x284 [ 10.108061][ T69] dwc3_host_init+0x260/0x2fc [ 10.112591][ T69] __dwc3_set_mode+0x148/0x3d8 [ 10.117207][ T69] process_scheduled_works+0x170/0x290 [ 10.122516][ T69] worker_thread+0x164/0x310 [ 10.126957][ T69] kthread+0x118/0x124 [ 10.130879][ T69] ret_from_fork+0x10/0x20
抓取ftrace函数调用 配置ftrace1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 cd /sys/kernel/debug/tracing echo function_graph > current_tracer echo __dwc3_set_mode > set_graph_function echo uas_probe >> set_graph_function echo scsi_add_host >> set_graph_function echo sd_probe >> set_graph_function echo hcd_resume_work >> set_graph_function echo submit_bio >> set_graph_function # echo usb_hcd_irq >> set_graph_function # 查看寄存器 echo xhci_* > set_ftrace_filter echo usb_* >> set_ftrace_filter echo *dwc3* >> set_ftrace_filter echo hcd_* >> set_ftrace_filter echo uas_* >> set_ftrace_filter echo scsi_* >> set_ftrace_filter echo sd_* >> set_ftrace_filter echo _dev_info > set_ftrace_notrace echo mutex* >> set_ftrace_notrace echo _raw_spin* >> set_ftrace_notrace echo __pm_runtime* >> set_ftrace_notrace echo xhci_dbg_trace >> set_ftrace_notrace echo nosleep-time > trace_options echo nograph-time > trace_options echo noirq-info > trace_options echo noannotate > trace_options echo 20 > max_graph_depth cd -
抓取ftrace1 2 3 4 5 6 7 8 9 echo device > /sys/class/usb_role/22100000.dwc3-role-switch/role sleep 3 echo > /sys/kernel/debug/tracing/trace echo 1 > /sys/kernel/debug/tracing/tracing_on echo host > /sys/class/usb_role/22100000.dwc3-role-switch/role sleep 3 echo 0 > /sys/kernel/debug/tracing/tracing_on cat /sys/kernel/debug/tracing/trace > /tmp/trace.log
主控注册 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 echo device > /sys/class/usb_role/22100000.dwc3-role-switch/role cd /sys/kernel/debug/tracing echo 0 > tracing_on echo > trace echo function_graph > current_tracer echo __dwc3_set_mode > set_graph_function echo xhci_* > set_ftrace_filter echo usb_* >> set_ftrace_filter echo hub_* >> set_ftrace_filter echo *dwc3* >> set_ftrace_filter echo hcd_* >> set_ftrace_filter echo uas_* >> set_ftrace_filter echo scsi_* >> set_ftrace_filter echo sd_* >> set_ftrace_filter echo _dev_info > set_ftrace_notrace echo mutex* >> set_ftrace_notrace echo _raw_spin* >> set_ftrace_notrace echo __pm_runtime* >> set_ftrace_notrace echo xhci_dbg_trace >> set_ftrace_notrace echo nosleep-time > trace_options echo nograph-time > trace_options echo noirq-info > trace_options echo noannotate > trace_options echo 20 > max_graph_depth sleep 3 && echo 1 > tracing_on && echo host > /sys/class/usb_role/22100000.dwc3-role-switch/role && sleep 3 && echo 0 > tracing_on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 7) | __dwc3_set_mode() { 7) | dwc3_gadget_exit() { 7) 2.175 us | dwc3_enable_susphy(); 7) | usb_del_gadget() { 7) 0.885 us | usb_udc_uevent(); 7) | usb_gadget_disconnect_locked() { 7) | dwc3_gadget_pullup() { 7) | dwc3_gadget_soft_disconnect() { 7) | dwc3_stop_active_transfers() { 7) | dwc3_remove_requests() { 7) 0.520 us | dwc3_stop_active_transfer(); 7) 1.320 us | } 7) | dwc3_remove_requests() { 7) 0.475 us | dwc3_stop_active_transfer(); 7) 1.020 us | } 7) | dwc3_remove_requests() { 7) 0.360 us | dwc3_stop_active_transfer(); 7) 1.130 us | } 7) | dwc3_remove_requests() { 7) 0.530 us | dwc3_stop_active_transfer(); 7) 1.250 us | } 7) | dwc3_remove_requests() { 7) 0.460 us | dwc3_stop_active_transfer(); 7) 1.005 us | } 7) | dwc3_remove_requests() { 7) 0.525 us | dwc3_stop_active_transfer(); 7) 1.075 us | } 7) | dwc3_remove_requests() { 7) 0.475 us | dwc3_stop_active_transfer(); 7) 1.020 us | } 7) | dwc3_remove_requests() { 7) 0.470 us | dwc3_stop_active_transfer(); 7) 1.215 us | } 7) | dwc3_remove_requests() { 7) 0.515 us | dwc3_stop_active_transfer(); 7) 1.070 us | } 7) | dwc3_remove_requests() { 7) 0.480 us | dwc3_stop_active_transfer(); 7) 1.030 us | } 7) | dwc3_remove_requests() { 7) 0.285 us | dwc3_stop_active_transfer(); 7) 0.840 us | } 7) | dwc3_remove_requests() { 7) 0.300 us | dwc3_stop_active_transfer(); 7) 0.845 us | } 7) | dwc3_remove_requests() { 7) 0.290 us | dwc3_stop_active_transfer(); 7) 0.835 us | } 7) | dwc3_remove_requests() { 7) 0.295 us | dwc3_stop_active_transfer(); 7) 0.855 us | } 7) + 18.730 us | } 7) 4.430 us | dwc3_gadget_run_stop(); 7) | __dwc3_gadget_ep_disable() { 7) | dwc3_remove_requests() { 7) 0.425 us | dwc3_stop_active_transfer(); 7) 1.500 us | } 7) 3.015 us | } 7) | __dwc3_gadget_ep_disable() { 7) | dwc3_remove_requests() { 7) 0.290 us | dwc3_stop_active_transfer(); 7) 1.380 us | } 7) 2.410 us | } 7) + 30.160 us | } 7) + 35.045 us | } 7) | usb_gadget_vbus_draw() { 7) 0.475 us | dwc3_gadget_vbus_draw(); 7) 1.095 us | } 7) + 38.470 us | } 7) 0.330 us | dwc3_gadget_async_callbacks(); 7) | usb_remove_function() { 7) | usb_ep_free_request() { 7) 0.545 us | dwc3_gadget_ep_free_request(); 7) 1.605 us | } 7) | usb_ep_free_request() { 7) 0.320 us | dwc3_gadget_ep_free_request(); 7) 0.915 us | } 7) | usb_ep_free_request() { 7) 0.605 us | dwc3_gadget_ep_free_request(); 7) 1.175 us | } 7) | usb_ep_free_request() { 7) 0.350 us | dwc3_gadget_ep_free_request(); 7) 1.045 us | } 7) | usb_ep_free_request() { 7) 1.645 us | dwc3_gadget_ep_free_request(); 7) 2.385 us | } 7) | usb_ep_free_request() { 7) 0.350 us | dwc3_gadget_ep_free_request(); 7) 0.915 us | } 7) | usb_ep_free_request() { 7) 0.345 us | dwc3_gadget_ep_free_request(); 7) 0.920 us | } 7) | usb_ep_free_request() { 7) 0.335 us | dwc3_gadget_ep_free_request(); 7) 0.900 us | } 7) | usb_ep_free_request() { 7) 0.335 us | dwc3_gadget_ep_free_request(); 7) 0.895 us | } 7) | usb_ep_free_request() { 7) 0.375 us | dwc3_gadget_ep_free_request(); 7) 1.100 us | } 7) | usb_ep_free_request() { 7) 0.345 us | dwc3_gadget_ep_free_request(); 7) 0.910 us | } 7) | usb_ep_free_request() { 7) 0.325 us | dwc3_gadget_ep_free_request(); 7) 0.895 us | } 7) | usb_ep_free_request() { 7) 0.325 us | dwc3_gadget_ep_free_request(); 7) 0.890 us | } 7) | usb_ep_free_request() { 7) 0.325 us | dwc3_gadget_ep_free_request(); 7) 0.935 us | } 7) | usb_ep_free_request() { 7) 0.330 us | dwc3_gadget_ep_free_request(); 7) 0.885 us | } 7) | usb_ep_free_request() { 7) 0.325 us | dwc3_gadget_ep_free_request(); 7) 0.890 us | } 7) | usb_ep_free_request() { 7) 0.325 us | dwc3_gadget_ep_free_request(); 7) 0.875 us | } 7) | usb_ep_free_request() { 7) 0.330 us | dwc3_gadget_ep_free_request(); 7) 0.890 us | } 7) | usb_ep_free_request() { 7) 0.335 us | dwc3_gadget_ep_free_request(); 7) 0.910 us | } 7) | usb_ep_free_request() { 7) 0.335 us | dwc3_gadget_ep_free_request(); 7) 0.890 us | } 7) 1.000 us | usb_free_all_descriptors(); 7) + 82.310 us | } 7) 0.850 us | usb_put_function(); 7) 8.170 us | usb_put_function_instance(); 7) | usb_ep_free_request() { 7) 0.360 us | dwc3_gadget_ep_free_request(); 7) 0.975 us | } 7) + 11.960 us | dwc3_gadget_stop(); 7) 0.470 us | usb_udc_uevent(); 7) 0.565 us | usb_udc_uevent(); 7) 0.530 us | usb_udc_release(); 7) ! 232.195 us | } 7) | dwc3_gadget_free_endpoints() { 7) + 33.170 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 25.910 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 21.360 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 23.245 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 22.090 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 22.515 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 24.755 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 22.910 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 22.180 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 22.840 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 24.145 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 22.180 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 20.720 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 21.370 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 20.220 us | dwc3_debugfs_remove_endpoint_dir(); 7) + 21.275 us | dwc3_debugfs_remove_endpoint_dir(); 7) ! 405.400 us | } 7) ! 645.525 us | } 7) 2.850 us | dwc3_event_buffers_cleanup(); 7) 0.695 us | dwc3_set_prtcap(); 7) | dwc3_host_init() { 7) 0.455 us | dwc3_host_fill_xhci_irq_res(); 7) | xhci_generic_plat_probe() { 7) | xhci_plat_probe() { 7) 0.545 us | usb_disabled(); 7) 0.385 us | usb_hcd_is_primary_hcd(); 7) 0.495 us | usb_hcd_is_primary_hcd(); 7) | usb_add_hcd() { 7) 0.950 us | usb_phy_roothub_alloc(); 7) 0.310 us | usb_phy_roothub_init(); 7) 0.475 us | usb_phy_roothub_set_mode(); 7) 0.475 us | usb_phy_roothub_power_on(); 7) 3.795 us | hcd_buffer_create(); 7) 1.170 us | usb_notify_add_bus(); 7) | usb_alloc_dev() { 7) 0.535 us | usb_get_hcd(); 7) 0.460 us | usb_enable_endpoint(); 7) 6.155 us | } 7) | xhci_plat_setup() { 7) 0.505 us | usb_hcd_is_primary_hcd(); 7) | xhci_gen_setup() { 7) 0.405 us | usb_hcd_is_primary_hcd(); 7) 0.515 us | usb_hcd_is_primary_hcd(); 7) 0.515 us | xhci_plat_quirks(); 7) | xhci_halt() { 7) 1.265 us | xhci_quiesce(); 7) 0.950 us | xhci_handshake(); 7) 4.925 us | } 7) 0.795 us | xhci_zero_64b_regs(); 7) | xhci_reset() { 7) ! 192.000 us | xhci_handshake(); 7) 0.975 us | xhci_handshake(); 7) ! 195.145 us | } 7) | xhci_init() { 7) 0.515 us | usb_hcd_is_primary_hcd(); 7) | xhci_mem_init() { 7) | xhci_ring_alloc() { 7) | xhci_alloc_segments_for_ring() { 7) 3.310 us | xhci_segment_alloc(); 7) 0.870 us | xhci_link_segments.part.16(); 7) 6.125 us | } 7) 7.425 us | } 7) | xhci_ring_alloc() { 7) | xhci_alloc_segments_for_ring() { 7) 2.925 us | xhci_segment_alloc(); 7) 4.040 us | } 7) 4.835 us | } 7) 1.825 us | xhci_alloc_erst(); 7) 0.790 us | xhci_trb_virt_to_dma(); 7) 0.475 us | xhci_create_rhub_port_array(); 7) 0.550 us | xhci_create_rhub_port_array(); 7) + 48.770 us | } 7) + 51.560 us | } 7) 0.400 us | usb_hcd_is_primary_hcd(); 7) * 10352.55 us | } 7) * 10354.68 us | } 7) 0.395 us | usb_phy_roothub_calibrate(); 7) | xhci_plat_start() { 7) 0.510 us | usb_hcd_is_primary_hcd(); 7) | dwc3_xhci_plat_start() { 7) 0.510 us | usb_hcd_is_primary_hcd(); 7) 1.675 us | dwc3_enable_susphy(); 7) 4.805 us | } 7) | xhci_run() { 7) 0.400 us | usb_hcd_is_primary_hcd(); 7) 0.400 us | usb_hcd_is_primary_hcd(); 7) 2.330 us | xhci_create_dbc_dev(); 7) | xhci_debugfs_init() { 7) 4.105 us | xhci_debugfs_regset(); 7) 2.430 us | xhci_debugfs_regset(); 7) 2.780 us | xhci_debugfs_regset(); 7) | xhci_debugfs_extcap_regset() { 7) 3.060 us | xhci_debugfs_regset(); 7) 6.310 us | } 7) | xhci_debugfs_extcap_regset() { 7) 2.815 us | xhci_debugfs_regset(); 7) 2.375 us | xhci_debugfs_regset(); 7) + 10.250 us | } 7) 2.420 us | xhci_debugfs_extcap_regset(); 7) + 20.340 us | xhci_debugfs_create_ring_dir.isra.15(); 7) 9.700 us | xhci_debugfs_create_ring_dir.isra.15(); 7) + 82.340 us | } 7) + 89.015 us | } 7) + 96.165 us | } 7) * 31651.31 us | } 7) | usb_add_hcd() { 7) 1.555 us | hcd_buffer_create(); 7) 0.505 us | usb_notify_add_bus(); 7) | usb_alloc_dev() { 7) 0.425 us | usb_get_hcd(); 7) 0.505 us | usb_enable_endpoint(); 7) 3.505 us | } 7) | xhci_plat_setup() { 7) 0.515 us | usb_hcd_is_primary_hcd(); 7) | xhci_gen_setup() { 7) 0.500 us | usb_hcd_is_primary_hcd(); 7) 0.410 us | usb_hcd_is_primary_hcd(); 7) # 8005.515 us | xhci_hcd_init_usb3_data(); 7) # 8008.440 us | } 7) # 8010.420 us | } 7) 0.370 us | usb_phy_roothub_calibrate(); 7) | xhci_plat_start() { 7) 0.480 us | usb_hcd_is_primary_hcd(); 7) | dwc3_xhci_plat_start() { 7) 0.510 us | usb_hcd_is_primary_hcd(); 7) 1.320 us | } 7) | xhci_run() { 7) 0.400 us | usb_hcd_is_primary_hcd(); 7) 0.410 us | usb_hcd_is_primary_hcd(); 7) | xhci_run_finished() { 7) | xhci_start() { 7) 1.250 us | xhci_handshake(); 7) 2.865 us | } 7) 5.185 us | } 7) 7.595 us | } 7) + 11.115 us | } 7) 0.855 us | usb_set_device_state(); 7) | usb_get_device_descriptor() { 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.455 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.505 us | usb_get_urb.part.12(); 7) 1.475 us | } 7) 0.605 us | usb_hcd_link_urb_to_ep(); 7) 0.685 us | usb_hcd_unlink_urb_from_ep(); 7) 4.620 us | usb_hcd_giveback_urb(); 7) + 11.955 us | } 7) + 13.185 us | } 7) 0.645 us | usb_free_urb(); 7) + 15.270 us | } 7) + 17.745 us | } 7) + 18.865 us | } 7) + 19.865 us | } 7) | usb_new_device() { 7) 0.565 us | usb_disable_autosuspend(); 7) | usb_get_configuration() { 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.345 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.495 us | usb_get_urb.part.12(); 7) 1.210 us | } 7) 0.370 us | usb_hcd_link_urb_to_ep(); 7) 0.315 us | usb_hcd_unlink_urb_from_ep(); 7) 1.275 us | usb_hcd_giveback_urb(); 7) 5.555 us | } 7) 6.340 us | } 7) 0.340 us | usb_free_urb(); 7) 7.570 us | } 7) 8.820 us | } 7) 9.440 us | } 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.335 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 0.865 us | } 7) 0.370 us | usb_hcd_link_urb_to_ep(); 7) 0.305 us | usb_hcd_unlink_urb_from_ep(); 7) 0.875 us | usb_hcd_giveback_urb(); 7) 4.345 us | } 7) 4.940 us | } 7) 0.335 us | usb_free_urb(); 7) 6.160 us | } 7) 7.370 us | } 7) 7.980 us | } 7) + 21.555 us | } 7) | usb_cache_string() { 7) | usb_string() { 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.340 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 0.890 us | } 7) 0.320 us | usb_hcd_link_urb_to_ep(); 7) 0.310 us | usb_hcd_unlink_urb_from_ep(); 7) 0.810 us | usb_hcd_giveback_urb(); 7) 4.400 us | } 7) 5.010 us | } 7) 0.340 us | usb_free_urb(); 7) 6.230 us | } 7) 7.445 us | } 7) 8.080 us | } 7) 8.680 us | } 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.335 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.460 us | usb_get_urb.part.12(); 7) 1.030 us | } 7) 0.310 us | usb_hcd_link_urb_to_ep(); 7) 0.310 us | usb_hcd_unlink_urb_from_ep(); 7) 0.765 us | usb_hcd_giveback_urb(); 7) 4.665 us | } 7) 5.235 us | } 7) 0.340 us | usb_free_urb(); 7) 6.450 us | } 7) 7.660 us | } 7) 8.720 us | } 7) 9.315 us | } 7) + 19.495 us | } 7) + 20.580 us | } 7) | usb_cache_string() { 7) | usb_string() { 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.325 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.305 us | usb_get_urb.part.12(); 7) 0.880 us | } 7) 0.325 us | usb_hcd_link_urb_to_ep(); 7) 0.310 us | usb_hcd_unlink_urb_from_ep(); 7) 0.785 us | usb_hcd_giveback_urb(); 7) 4.805 us | } 7) 5.510 us | } 7) 0.345 us | usb_free_urb(); 7) 6.735 us | } 7) 7.930 us | } 7) 8.490 us | } 7) 9.085 us | } 7) 9.845 us | } 7) + 10.490 us | } 7) | usb_cache_string() { 7) | usb_string() { 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.350 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 0.870 us | } 7) 0.320 us | usb_hcd_link_urb_to_ep(); 7) 0.315 us | usb_hcd_unlink_urb_from_ep(); 7) 0.745 us | usb_hcd_giveback_urb(); 7) 4.290 us | } 7) 4.865 us | } 7) 0.330 us | usb_free_urb(); 7) 6.075 us | } 7) 7.350 us | } 7) 7.905 us | } 7) 8.455 us | } 7) 9.145 us | } 7) 9.795 us | } 7) | usb_detect_interface_quirks() { 7) | usb_detect_static_quirks() { 7) 0.305 us | usb_match_device(); 7) 1.355 us | } 7) 2.125 us | } 7) 1.225 us | usb_devnode(); 7) | usb_bus_notify() { 7) 5.365 us | usb_create_sysfs_dev_files(); 7) 6.245 us | } 7) 1.035 us | usb_devnode(); 7) 1.135 us | usb_uevent(); 7) 0.530 us | usb_dev_uevent(); 7) 0.515 us | usb_device_match(); 7) 0.315 us | usb_device_match(); 7) | usb_device_match() { 7) | usb_driver_applicable() { 7) 1.355 us | usb_generic_driver_match(); 7) 2.170 us | } 7) 3.380 us | } 7) 0.320 us | usb_bus_notify(); 7) | usb_probe_device() { 7) | usb_generic_driver_probe() { 7) | usb_choose_configuration() { 7) 0.330 us | usb_device_is_owned(); 7) 1.370 us | } 7) | usb_set_configuration() { 7) 0.335 us | usb_autoresume_device(); 7) | usb_hcd_alloc_bandwidth() { 7) 0.350 us | usb_find_alt_setting(); 7) | xhci_add_endpoint() { 7) 0.470 us | xhci_check_args(); 7) 2.110 us | } 7) | xhci_check_bandwidth() { 7) 0.305 us | xhci_check_args(); 7) 1.265 us | } 7) 5.525 us | } 7) 0.335 us | usb_altnum_to_altsetting(); 7) | usb_enable_interface() { 7) | usb_enable_endpoint() { 7) | usb_hcd_reset_endpoint() { 7) | xhci_endpoint_reset() { 7) 0.305 us | usb_hcd_is_primary_hcd(); 7) 0.895 us | } 7) 1.895 us | } 7) 2.695 us | } 7) 3.420 us | } 7) 0.355 us | usb_of_has_combined_node(); 7) 0.345 us | usb_get_dev(); 7) | usb_control_msg_send() { 7) | usb_control_msg() { 7) 0.350 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.335 us | usb_get_urb.part.12(); 7) 0.895 us | } 7) 0.345 us | usb_hcd_link_urb_to_ep(); 7) 0.325 us | usb_hcd_unlink_urb_from_ep(); 7) 1.705 us | usb_hcd_giveback_urb(); 7) 5.540 us | } 7) 6.235 us | } 7) 0.525 us | usb_free_urb(); 7) 7.800 us | } 7) 9.020 us | } 7) 9.650 us | } 7) 0.345 us | usb_set_device_state(); 7) 0.335 us | usb_cache_string(); 7) | usb_unlocked_enable_lpm() { 7) 0.325 us | usb_enable_lpm(); 7) 1.330 us | } 7) 0.310 us | usb_enable_ltm(); 7) | usb_bus_notify() { 7) | usb_create_sysfs_intf_files() { 7) 0.370 us | usb_cache_string(); 7) 1.035 us | } 7) 1.680 us | } 7) 0.875 us | usb_uevent(); 7) 1.625 us | usb_if_uevent(); 7) | usb_device_match() { 7) 0.365 us | usb_match_dynamic_id(); 7) 1.250 us | } 7) | usb_device_match() { 7) | usb_match_id.part.16() { 7) | usb_match_one_id() { 7) 0.345 us | usb_match_device(); 7) 0.950 us | } 7) | usb_match_one_id() { 7) 0.320 us | usb_match_device(); 7) 0.895 us | } 7) | usb_match_one_id() { 7) 0.310 us | usb_match_device(); 7) 0.900 us | } 7) | usb_match_one_id() { 7) 0.315 us | usb_match_device(); 7) 1.080 us | } 7) | usb_match_one_id() { 7) 0.310 us | usb_match_device(); 7) 0.885 us | } 7) | usb_match_one_id() { 7) 0.335 us | usb_match_device(); 7) 0.905 us | } 7) | usb_match_one_id() { 7) 0.320 us | usb_match_device(); 7) 0.890 us | } 7) | usb_match_one_id() { 7) 0.340 us | usb_match_device(); 7) 0.910 us | } 7) | usb_match_one_id() { 7) 1.020 us | usb_match_device(); 7) 0.365 us | usb_match_one_id_intf(); 7) 2.310 us | } 7) + 13.220 us | } 7) + 14.020 us | } 7) 0.330 us | usb_bus_notify(); 7) | usb_probe_interface() { 7) 0.340 us | usb_device_is_owned(); 7) 0.345 us | usb_match_dynamic_id(); 7) | usb_match_id.part.16() { 7) | usb_match_one_id() { 7) 0.325 us | usb_match_device(); 7) 0.905 us | } 7) | usb_match_one_id() { 7) 0.315 us | usb_match_device(); 7) 0.895 us | } 7) | usb_match_one_id() { 7) 0.300 us | usb_match_device(); 7) 0.890 us | } 7) | usb_match_one_id() { 7) 0.295 us | usb_match_device(); 7) 0.850 us | } 7) | usb_match_one_id() { 7) 0.300 us | usb_match_device(); 7) 0.885 us | } 7) | usb_match_one_id() { 7) 0.300 us | usb_match_device(); 7) 0.890 us | } 7) | usb_match_one_id() { 7) 0.320 us | usb_match_device(); 7) 0.895 us | } 7) | usb_match_one_id() { 7) 0.295 us | usb_match_device(); 7) 0.865 us | } 7) | usb_match_one_id() { 7) 0.330 us | usb_match_device(); 7) 0.300 us | usb_match_one_id_intf(); 7) 1.470 us | } 7) + 11.355 us | } 7) 0.340 us | usb_autoresume_device(); 7) | hub_probe() { 7) 0.590 us | usb_enable_autosuspend(); 7) 1.125 us | usb_get_intf(); 7) 1.365 us | usb_get_dev(); 7) | usb_control_msg() { 7) 1.365 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 1.340 us | usb_get_urb.part.12(); 7) 3.780 us | } 7) 1.665 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 1.400 us | usb_hcd_is_primary_hcd(); 7) 1.365 us | usb_hcd_is_primary_hcd(); 7) 7.515 us | } 7) 1.350 us | usb_hub_adjust_deviceremovable(); 7) 1.720 us | usb_hcd_unlink_urb_from_ep(); 7) 3.700 us | usb_hcd_giveback_urb(); 7) + 29.660 us | } 7) + 30.995 us | } 7) 0.385 us | usb_free_urb(); 7) + 33.320 us | } 7) + 37.100 us | } 7) | usb_get_status() { 7) | usb_control_msg() { 7) 0.355 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 1.025 us | } 7) 0.320 us | usb_hcd_link_urb_to_ep(); 7) 0.315 us | usb_hcd_unlink_urb_from_ep(); 7) 1.575 us | usb_hcd_giveback_urb(); 7) 6.010 us | } 7) 6.635 us | } 7) 0.335 us | usb_free_urb(); 7) 7.880 us | } 7) 9.115 us | } 7) 9.815 us | } 7) | hub_hub_status() { 7) | usb_control_msg() { 7) 0.325 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.305 us | usb_get_urb.part.12(); 7) 0.860 us | } 7) 0.310 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 0.295 us | usb_hcd_is_primary_hcd(); 7) 0.295 us | usb_hcd_is_primary_hcd(); 7) 1.480 us | } 7) 0.320 us | usb_hcd_unlink_urb_from_ep(); 7) 0.850 us | usb_hcd_giveback_urb(); 7) 6.110 us | } 7) 6.730 us | } 7) 0.335 us | usb_free_urb(); 7) 8.105 us | } 7) 9.465 us | } 7) + 10.090 us | } 7) 0.335 us | usb_alloc_urb(); 7) | usb_hub_create_port_device() { 7) 0.520 us | usb_hub_to_struct_hub(); 7) + 20.835 us | } 7) | xhci_update_hub_device() { 7) 0.305 us | usb_hcd_is_primary_hcd(); 7) 1.150 us | } 7) 0.560 us | usb_hub_adjust_deviceremovable(); 7) | hub_activate() { 7) | hub_power_on() { 7) | usb_control_msg() { 7) 0.355 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.315 us | usb_get_urb.part.12(); 7) 0.900 us | } 7) 0.310 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 0.295 us | usb_hcd_is_primary_hcd(); 7) 0.300 us | usb_hcd_is_primary_hcd(); 7) 1.575 us | xhci_set_port_power(); 7) 4.255 us | } 7) 0.315 us | usb_hcd_unlink_urb_from_ep(); 7) 0.960 us | usb_hcd_giveback_urb(); 7) 9.185 us | } 7) 9.805 us | } 7) 0.340 us | usb_free_urb(); 7) + 11.040 us | } 7) + 12.300 us | } 7) + 13.540 us | } 7) 0.350 us | usb_autopm_get_interface_no_resume(); 7) + 16.430 us | } 7) # 9193.660 us | } 7) # 9208.910 us | } 7) 0.330 us | usb_bus_notify(); 7) 0.865 us | usb_uevent(); 7) 1.260 us | usb_if_uevent(); 7) + 12.040 us | usb_create_ep_devs(); 7) 0.415 us | usb_autosuspend_device(); 7) # 9313.915 us | } 7) 0.370 us | usb_notify_add_device(); 7) # 9317.115 us | } 7) # 9318.250 us | } 7) 0.725 us | usb_bus_notify(); 7) 1.410 us | usb_devnode(); 7) 0.780 us | usb_uevent(); 7) 0.515 us | usb_dev_uevent(); 7) 8.740 us | usb_create_ep_devs(); 7) # 9496.440 us | } 7) 0.380 us | usb_set_device_state(); 7) | usb_get_device_descriptor() { 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.380 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.355 us | usb_get_urb.part.12(); 7) 0.950 us | } 7) 0.315 us | usb_hcd_link_urb_to_ep(); 7) 0.305 us | usb_hcd_unlink_urb_from_ep(); 7) 1.815 us | usb_hcd_giveback_urb(); 7) 5.595 us | } 7) 6.250 us | } 7) 0.330 us | usb_free_urb(); 7) 7.485 us | } 7) 8.745 us | } 7) 9.435 us | } 7) + 10.140 us | } 7) | usb_get_bos_descriptor() { 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.370 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.325 us | usb_get_urb.part.12(); 7) 0.895 us | } 7) 0.325 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 0.325 us | usb_hcd_is_primary_hcd(); 7) 0.295 us | usb_hcd_is_primary_hcd(); 7) 1.850 us | } 7) 0.335 us | usb_hcd_unlink_urb_from_ep(); 7) 0.850 us | usb_hcd_giveback_urb(); 7) 6.615 us | } 7) 7.270 us | } 7) 0.335 us | usb_free_urb(); 7) 8.645 us | } 7) 9.910 us | } 7) + 10.550 us | } 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.330 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.375 us | usb_get_urb.part.12(); 7) 0.965 us | } 7) 0.315 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 0.315 us | usb_hcd_is_primary_hcd(); 7) 0.300 us | usb_hcd_is_primary_hcd(); 7) 2.720 us | } 7) 0.315 us | usb_hcd_unlink_urb_from_ep(); 7) 0.830 us | usb_hcd_giveback_urb(); 7) 7.330 us | } 7) 7.960 us | } 7) 0.360 us | usb_free_urb(); 7) 9.265 us | } 7) + 10.520 us | } 7) + 11.145 us | } 7) + 23.105 us | } 7) | usb_device_supports_lpm() { 7) # 8806.390 us | usb_device_supports_lpm.part.47(); 7) # 8807.375 us | } 7) | usb_new_device() { 7) 0.380 us | usb_disable_autosuspend(); 7) | usb_get_configuration() { 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.365 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.325 us | usb_get_urb.part.12(); 7) 0.895 us | } 7) 0.320 us | usb_hcd_link_urb_to_ep(); 7) 0.310 us | usb_hcd_unlink_urb_from_ep(); 7) 0.945 us | usb_hcd_giveback_urb(); 7) 5.010 us | } 7) 5.730 us | } 7) 0.340 us | usb_free_urb(); 7) 6.985 us | } 7) 8.280 us | } 7) 8.950 us | } 7) | usb_get_descriptor() { 7) | usb_control_msg() { 7) 0.340 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 0.880 us | } 7) 0.320 us | usb_hcd_link_urb_to_ep(); 7) 0.310 us | usb_hcd_unlink_urb_from_ep(); 7) 0.805 us | usb_hcd_giveback_urb(); 7) 4.305 us | } 7) 4.940 us | } 7) 0.330 us | usb_free_urb(); 7) 6.195 us | } 7) 7.440 us | } 7) 8.110 us | } 7) + 19.880 us | } 7) | usb_cache_string() { 7) | usb_string() { 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.350 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.315 us | usb_get_urb.part.12(); 7) 0.895 us | } 7) 0.335 us | usb_hcd_link_urb_to_ep(); 7) 0.335 us | usb_hcd_unlink_urb_from_ep(); 7) 0.825 us | usb_hcd_giveback_urb(); 7) 4.460 us | } 7) 5.065 us | } 7) 0.335 us | usb_free_urb(); 7) 6.315 us | } 7) 7.565 us | } 7) 8.325 us | } 7) 8.930 us | } 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.330 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.300 us | usb_get_urb.part.12(); 7) 0.860 us | } 7) 0.320 us | usb_hcd_link_urb_to_ep(); 7) 0.335 us | usb_hcd_unlink_urb_from_ep(); 7) 0.770 us | usb_hcd_giveback_urb(); 7) 4.600 us | } 7) 5.210 us | } 7) 0.335 us | usb_free_urb(); 7) 6.555 us | } 7) 7.780 us | } 7) 8.345 us | } 7) 8.925 us | } 7) + 19.185 us | } 7) + 20.145 us | } 7) | usb_cache_string() { 7) | usb_string() { 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.345 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 0.870 us | } 7) 0.315 us | usb_hcd_link_urb_to_ep(); 7) 0.325 us | usb_hcd_unlink_urb_from_ep(); 7) 0.800 us | usb_hcd_giveback_urb(); 7) 4.705 us | } 7) 5.330 us | } 7) 0.365 us | usb_free_urb(); 7) 6.570 us | } 7) 7.830 us | } 7) 8.380 us | } 7) 9.120 us | } 7) 9.835 us | } 7) + 10.895 us | } 7) | usb_cache_string() { 7) | usb_string() { 7) | usb_string_sub() { 7) | usb_get_string() { 7) | usb_control_msg() { 7) 0.355 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.315 us | usb_get_urb.part.12(); 7) 0.875 us | } 7) 0.335 us | usb_hcd_link_urb_to_ep(); 7) 0.330 us | usb_hcd_unlink_urb_from_ep(); 7) 0.775 us | usb_hcd_giveback_urb(); 7) 4.340 us | } 7) 4.975 us | } 7) 0.345 us | usb_free_urb(); 7) 6.225 us | } 7) 7.500 us | } 7) 8.060 us | } 7) 8.630 us | } 7) 9.310 us | } 7) + 10.005 us | } 7) | usb_detect_interface_quirks() { 7) | usb_detect_static_quirks() { 7) 0.325 us | usb_match_device(); 7) 1.145 us | } 7) 1.735 us | } 7) 0.900 us | usb_devnode(); 7) | usb_bus_notify() { 7) 4.495 us | usb_create_sysfs_dev_files(); 7) 5.290 us | } 7) 0.740 us | usb_devnode(); 7) 0.860 us | usb_uevent(); 7) 0.500 us | usb_dev_uevent(); 7) 0.330 us | usb_device_match(); 7) 0.320 us | usb_device_match(); 7) | usb_device_match() { 7) | usb_driver_applicable() { 7) 0.780 us | usb_generic_driver_match(); 7) 1.445 us | } 7) 2.105 us | } 7) 0.300 us | usb_bus_notify(); 7) | usb_probe_device() { 7) | usb_generic_driver_probe() { 7) | usb_choose_configuration() { 7) 0.315 us | usb_device_is_owned(); 7) 0.940 us | } 7) | usb_set_configuration() { 7) 0.335 us | usb_autoresume_device(); 7) | usb_hcd_alloc_bandwidth() { 7) 0.350 us | usb_find_alt_setting(); 7) | xhci_add_endpoint() { 7) 0.300 us | xhci_check_args(); 7) 0.890 us | } 7) | xhci_check_bandwidth() { 7) 0.315 us | xhci_check_args(); 7) 0.925 us | } 7) 3.960 us | } 7) 0.320 us | usb_altnum_to_altsetting(); 7) | usb_enable_interface() { 7) | usb_enable_endpoint() { 7) | usb_hcd_reset_endpoint() { 7) | xhci_endpoint_reset() { 7) 0.310 us | usb_hcd_is_primary_hcd(); 7) 0.900 us | } 7) 1.660 us | } 7) 2.275 us | } 7) 3.000 us | } 7) 0.330 us | usb_of_has_combined_node(); 7) 0.310 us | usb_get_dev(); 7) | usb_control_msg_send() { 7) | usb_control_msg() { 7) 0.340 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 0.875 us | } 7) 0.310 us | usb_hcd_link_urb_to_ep(); 7) 0.325 us | usb_hcd_unlink_urb_from_ep(); 7) 1.795 us | usb_hcd_giveback_urb(); 7) 5.900 us | } 7) 6.515 us | } 7) 0.445 us | usb_free_urb(); 7) 7.850 us | } 7) 9.120 us | } 7) 9.730 us | } 7) 0.395 us | usb_set_device_state(); 7) 0.345 us | usb_cache_string(); 7) | usb_unlocked_enable_lpm() { 7) 0.305 us | usb_enable_lpm(); 7) 0.910 us | } 7) | usb_enable_ltm() { 7) | usb_control_msg() { 7) 0.335 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.500 us | usb_get_urb.part.12(); 7) 1.055 us | } 7) 0.330 us | usb_hcd_link_urb_to_ep(); 7) 0.340 us | usb_hcd_unlink_urb_from_ep(); 7) 0.820 us | usb_hcd_giveback_urb(); 7) 4.660 us | } 7) 5.415 us | } 7) 0.365 us | usb_free_urb(); 7) 6.685 us | } 7) 7.955 us | } 7) 8.605 us | } 7) | usb_bus_notify() { 7) | usb_create_sysfs_intf_files() { 7) 0.335 us | usb_cache_string(); 7) 0.935 us | } 7) 1.570 us | } 7) 0.725 us | usb_uevent(); 7) 1.380 us | usb_if_uevent(); 7) | usb_device_match() { 7) 0.340 us | usb_match_dynamic_id(); 7) 0.995 us | } 7) | usb_device_match() { 7) | usb_match_id.part.16() { 7) | usb_match_one_id() { 7) 0.315 us | usb_match_device(); 7) 1.075 us | } 7) | usb_match_one_id() { 7) 0.320 us | usb_match_device(); 7) 0.880 us | } 7) | usb_match_one_id() { 7) 0.310 us | usb_match_device(); 7) 0.875 us | } 7) | usb_match_one_id() { 7) 0.310 us | usb_match_device(); 7) 0.880 us | } 7) | usb_match_one_id() { 7) 0.300 us | usb_match_device(); 7) 1.600 us | } 7) | usb_match_one_id() { 7) 0.300 us | usb_match_device(); 7) 0.900 us | } 7) | usb_match_one_id() { 7) 0.320 us | usb_match_device(); 7) 0.910 us | } 7) | usb_match_one_id() { 7) 0.300 us | usb_match_device(); 7) 0.870 us | } 7) | usb_match_one_id() { 7) 0.360 us | usb_match_device(); 7) 0.305 us | usb_match_one_id_intf(); 7) 1.570 us | } 7) + 12.535 us | } 7) + 13.160 us | } 7) 0.320 us | usb_bus_notify(); 7) | usb_probe_interface() { 7) 0.315 us | usb_device_is_owned(); 7) 0.620 us | usb_match_dynamic_id(); 7) | usb_match_id.part.16() { 7) | usb_match_one_id() { 7) 0.495 us | usb_match_device(); 7) 1.105 us | } 7) | usb_match_one_id() { 7) 0.320 us | usb_match_device(); 7) 0.890 us | } 7) | usb_match_one_id() { 7) 0.315 us | usb_match_device(); 7) 0.900 us | } 7) | usb_match_one_id() { 7) 0.330 us | usb_match_device(); 7) 0.925 us | } 7) | usb_match_one_id() { 7) 0.325 us | usb_match_device(); 7) 0.900 us | } 7) | usb_match_one_id() { 7) 0.320 us | usb_match_device(); 7) 0.920 us | } 7) | usb_match_one_id() { 7) 0.295 us | usb_match_device(); 7) 0.875 us | } 7) | usb_match_one_id() { 7) 0.305 us | usb_match_device(); 7) 0.870 us | } 7) | usb_match_one_id() { 7) 0.315 us | usb_match_device(); 7) 0.305 us | usb_match_one_id_intf(); 7) 1.670 us | } 7) + 12.190 us | } 7) 0.350 us | usb_autoresume_device(); 7) | hub_probe() { 7) 0.390 us | usb_enable_autosuspend(); 7) 0.635 us | usb_get_intf(); 7) 0.705 us | usb_get_dev(); 7) | usb_control_msg() { 7) 0.550 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.515 us | usb_get_urb.part.12(); 7) 1.555 us | } 7) 0.520 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 0.505 us | usb_hcd_is_primary_hcd(); 7) 0.500 us | usb_hcd_is_primary_hcd(); 7) 3.345 us | } 7) 0.500 us | usb_hub_adjust_deviceremovable(); 7) 0.560 us | usb_hcd_unlink_urb_from_ep(); 7) 1.945 us | usb_hcd_giveback_urb(); 7) + 13.275 us | } 7) + 14.115 us | } 7) 0.350 us | usb_free_urb(); 7) + 15.495 us | } 7) + 17.295 us | } 7) | usb_get_status() { 7) | usb_control_msg() { 7) 0.370 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.310 us | usb_get_urb.part.12(); 7) 0.880 us | } 7) 0.315 us | usb_hcd_link_urb_to_ep(); 7) 0.315 us | usb_hcd_unlink_urb_from_ep(); 7) 1.560 us | usb_hcd_giveback_urb(); 7) 5.180 us | } 7) 5.775 us | } 7) 0.340 us | usb_free_urb(); 7) 7.035 us | } 7) 8.330 us | } 7) 9.055 us | } 7) | hub_hub_status() { 7) | usb_control_msg() { 7) 0.340 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.460 us | usb_get_urb.part.12(); 7) 1.035 us | } 7) 0.315 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 0.300 us | usb_hcd_is_primary_hcd(); 7) 0.290 us | usb_hcd_is_primary_hcd(); 7) 1.475 us | } 7) 0.310 us | usb_hcd_unlink_urb_from_ep(); 7) 0.810 us | usb_hcd_giveback_urb(); 7) 6.255 us | } 7) 6.845 us | } 7) 0.335 us | usb_free_urb(); 7) 8.180 us | } 7) 9.550 us | } 7) + 10.355 us | } 7) 0.340 us | usb_alloc_urb(); 7) | usb_hub_create_port_device() { 7) 0.420 us | usb_hub_to_struct_hub(); 7) + 18.710 us | } 7) | xhci_update_hub_device() { 7) 0.305 us | usb_hcd_is_primary_hcd(); 7) 0.970 us | } 7) 0.420 us | usb_hub_adjust_deviceremovable(); 7) | hub_activate() { 7) | hub_power_on() { 7) | usb_control_msg() { 7) 0.360 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) | usb_submit_urb() { 7) | usb_hcd_submit_urb() { 7) | usb_get_urb() { 7) 0.325 us | usb_get_urb.part.12(); 7) 0.920 us | } 7) 0.325 us | usb_hcd_link_urb_to_ep(); 7) | xhci_hub_control() { 7) 0.315 us | usb_hcd_is_primary_hcd(); 7) 0.300 us | usb_hcd_is_primary_hcd(); 7) 1.580 us | xhci_set_port_power(); 7) 4.270 us | } 7) 0.320 us | usb_hcd_unlink_urb_from_ep(); 7) 0.950 us | usb_hcd_giveback_urb(); 7) 9.295 us | } 7) 9.925 us | } 7) 0.340 us | usb_free_urb(); 7) + 11.300 us | } 7) + 12.585 us | } 7) + 13.295 us | } 7) 0.365 us | usb_autopm_get_interface_no_resume(); 7) + 15.385 us | } 7) # 9147.800 us | } 7) # 9163.670 us | } 7) 0.330 us | usb_bus_notify(); 7) 0.705 us | usb_uevent(); 7) 1.185 us | usb_if_uevent(); 7) 9.840 us | usb_create_ep_devs(); 7) 0.375 us | usb_autosuspend_device(); 7) # 9264.390 us | } 7) 0.415 us | usb_notify_add_device(); 7) # 9267.030 us | } 7) # 9267.690 us | } 7) 0.320 us | usb_bus_notify(); 7) 0.725 us | usb_devnode(); 7) 0.685 us | usb_uevent(); 7) 0.495 us | usb_dev_uevent(); 7) 9.895 us | usb_create_ep_devs(); 7) # 9428.855 us | } 7) * 50353.38 us | } 7) * 82050.31 us | } 7) * 82051.90 us | } 7) * 82170.12 us | } 7) * 82828.60 us | }
设备接入 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 cd /sys/kernel/debug/tracing echo 0 > tracing_on echo > trace echo function_graph > current_tracer echo __dwc3_set_mode > set_graph_function echo uas_probe >> set_graph_function echo scsi_add_host >> set_graph_function echo sd_probe >> set_graph_function echo hcd_resume_work >> set_graph_function echo hub_event >> set_graph_function echo submit_bio >> set_graph_function #echo usb_hcd_irq >> set_graph_function # 默认不要打开,否则中断调用比较多 echo xhci_* > set_ftrace_filter echo usb_* >> set_ftrace_filter echo hub_* >> set_ftrace_filter echo *dwc3* >> set_ftrace_filter echo hcd_* >> set_ftrace_filter echo uas_* >> set_ftrace_filter echo scsi_* >> set_ftrace_filter echo sd_* >> set_ftrace_filter echo _dev_info > set_ftrace_notrace echo mutex* >> set_ftrace_notrace echo _raw_spin* >> set_ftrace_notrace echo __pm_runtime* >> set_ftrace_notrace echo xhci_dbg_trace >> set_ftrace_notrace echo nosleep-time > trace_options echo nograph-time > trace_options echo noirq-info > trace_options echo noannotate > trace_options echo 20 > max_graph_depth # echo 1 > tracing_on && sleep 10 && echo 插入设备 && echo 0 > tracing_on
屏蔽usb_hcd_irq函数的数据1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 0) | hcd_resume_work() { 0) | usb_remote_wakeup() { 0) | usb_autoresume_device() { 0) | usb_runtime_resume() { 0) | usb_resume_both() { 0) | usb_generic_driver_resume() { 0) | hcd_bus_resume() { 0) | xhci_bus_resume() { 0) 0.575 us | usb_hcd_is_primary_hcd(); 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 7.880 us | } 0) 0.310 us | usb_phy_roothub_calibrate(); 0) 0.460 us | usb_set_device_state(); 0) 0.390 us | usb_hub_find_child(); 0) 0.315 us | usb_hub_find_child(); 0) # 4368.280 us | } 0) # 4369.485 us | } 0) | usb_resume_interface.isra.13() { 0) | hub_resume() { 0) | hub_activate() { 0) | hub_ext_port_status() { 0) | usb_control_msg() { 0) 0.425 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.350 us | usb_get_urb.part.12(); 0) 1.015 us | } 0) 0.500 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.315 us | usb_hcd_is_primary_hcd(); 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_get_port_status.isra.17() { 0) 0.290 us | usb_hcd_is_primary_hcd(); 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 1.570 us | } 0) # 8703.435 us | } 0) 0.315 us | usb_hcd_unlink_urb_from_ep(); 0) 2.040 us | usb_hcd_giveback_urb(); 0) # 8710.875 us | } 0) # 8711.840 us | } 0) 0.380 us | usb_free_urb(); 0) # 8713.275 us | } 0) # 8715.220 us | } 0) # 8716.370 us | } 0) 0.540 us | hub_port_warm_reset_required(); 0) | usb_clear_port_feature() { 0) | usb_control_msg() { 0) 0.380 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.470 us | usb_get_urb.part.12(); 0) 1.155 us | } 0) 0.320 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) # 8092.335 us | } 0) 0.465 us | usb_hcd_unlink_urb_from_ep(); 0) 1.130 us | usb_hcd_giveback_urb(); 0) # 8097.990 us | } 0) # 8098.745 us | } 0) 0.500 us | usb_free_urb(); 0) # 8100.150 us | } 0) # 8101.515 us | } 0) # 8102.225 us | } 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.355 us | usb_get_urb.part.12(); 0) 0.985 us | } 0) 0.310 us | usb_hcd_link_urb_to_ep(); 0) 2.970 us | } 0) 3.730 us | } 0) 0.375 us | usb_autopm_get_interface_no_resume(); 0) * 22405.71 us | } 0) | xhci_get_resuming_ports() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 1.025 us | } 0) * 26591.95 us | } 0) * 26592.78 us | } 0) * 30963.48 us | } 0) * 30964.18 us | } 0) * 30966.35 us | } 0) | usb_autosuspend_device() { 0) 0.455 us | usb_runtime_suspend(); 0) 1.735 us | } 0) * 35505.47 us | } 0) * 35510.29 us | } 0) | hub_event() { 0) | usb_hcd_poll_rh_status() { 0) | xhci_hub_status_data() { 0) 0.325 us | usb_hcd_is_primary_hcd(); 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 3.465 us | } 0) 4.215 us | } 0) 0.845 us | usb_autopm_get_interface(); 0) | hub_ext_port_status() { 0) | usb_control_msg() { 0) 0.355 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.465 us | usb_get_urb.part.12(); 0) 1.165 us | } 0) 0.305 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) | xhci_get_port_status.isra.17() { 0) 0.285 us | usb_hcd_is_primary_hcd(); 0) 0.285 us | usb_hcd_is_primary_hcd(); 0) 1.430 us | } 0) # 8439.305 us | } 0) 0.310 us | usb_hcd_unlink_urb_from_ep(); 0) 1.135 us | usb_hcd_giveback_urb(); 0) # 8445.020 us | } 0) # 8445.650 us | } 0) 0.375 us | usb_free_urb(); 0) # 8446.925 us | } 0) # 8448.525 us | } 0) # 8449.160 us | } 0) 0.310 us | hub_port_warm_reset_required(); 0) | usb_alloc_dev() { 0) 0.335 us | usb_get_hcd(); 0) | xhci_alloc_dev() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.430 us | xhci_alloc_command(); 0) | xhci_queue_slot_control() { 0) 0.720 us | xhci_mod_cmd_timer(); 0) 2.670 us | } 0) | xhci_ring_cmd_db() { 0) # 5570.740 us | xhci_ring_cmd_db.part.52(); 0) # 5571.330 us | } 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.315 us | usb_hcd_is_primary_hcd(); 0) 1.200 us | xhci_update_erst_dequeue.isra.49(); 0) 6.300 us | } 0) 6.885 us | } 0) 0.385 us | xhci_free_command(); 0) | xhci_alloc_virt_device() { 0) 1.075 us | xhci_alloc_container_ctx(); 0) 0.870 us | xhci_alloc_container_ctx(); 0) | xhci_ring_alloc() { 0) | xhci_alloc_segments_for_ring() { 0) 1.030 us | xhci_segment_alloc(); 0) 0.940 us | xhci_segment_alloc(); 0) 0.620 us | xhci_link_segments.part.16(); 0) 0.660 us | xhci_link_segments.part.16(); 0) 5.790 us | } 0) 6.960 us | } 0) * 26187.72 us | } 0) 1.195 us | xhci_get_slot_ctx(); 0) | xhci_debugfs_create_slot() { 0) 9.420 us | xhci_debugfs_create_ring_dir.isra.15(); 0) + 21.690 us | } 0) * 31798.71 us | } 0) 0.385 us | usb_enable_endpoint(); 0) | usb_hcd_find_raw_port_number() { 0) | xhci_find_raw_port_number() { 0) | xhci_get_rhub() { 0) 0.315 us | usb_hcd_is_primary_hcd(); 0) 0.900 us | } 0) 1.670 us | } 0) 2.470 us | } 0) 0.995 us | usb_of_get_device_node(); 0) * 31808.61 us | } 0) 1.660 us | usb_set_device_state(); 0) | hub_port_init() { 0) | hub_port_reset() { 0) | hub_ext_port_status() { 0) | usb_control_msg() { 0) 0.350 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.310 us | usb_get_urb.part.12(); 0) 0.880 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.445 us | usb_hcd_is_primary_hcd(); 0) | xhci_get_port_status.isra.17() { 0) 0.285 us | usb_hcd_is_primary_hcd(); 0) 0.290 us | usb_hcd_is_primary_hcd(); 0) 1.405 us | } 0) # 8439.935 us | } 0) 0.315 us | usb_hcd_unlink_urb_from_ep(); 0) 1.365 us | usb_hcd_giveback_urb(); 0) # 8445.420 us | } 0) # 8446.080 us | } 0) 0.345 us | usb_free_urb(); 0) # 8447.425 us | } 0) # 8448.695 us | } 0) # 8449.310 us | } 0) 0.315 us | hub_port_warm_reset_required(); 0) | usb_control_msg() { 0) 0.350 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.315 us | usb_get_urb.part.12(); 0) 0.865 us | } 0) 0.310 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.290 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_poll_rh_status() { 0) | xhci_hub_status_data() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 1.905 us | } 0) 2.755 us | } 0) 1.190 us | xhci_update_erst_dequeue.isra.49(); 0) * 16962.56 us | } 0) * 16963.19 us | } 0) * 25578.49 us | } 0) 0.415 us | usb_hcd_unlink_urb_from_ep(); 0) 1.055 us | usb_hcd_giveback_urb(); 0) * 25583.91 us | } 0) * 25584.54 us | } 0) 0.325 us | usb_free_urb(); 0) * 25585.78 us | } 0) * 25587.19 us | } 0) | hub_ext_port_status() { 0) | usb_control_msg() { 0) 1.120 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.590 us | usb_get_urb.part.12(); 0) 1.160 us | } 0) 0.310 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_get_port_status.isra.17() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 1.465 us | } 0) # 8874.310 us | } 0) 0.340 us | usb_hcd_unlink_urb_from_ep(); 0) 1.010 us | usb_hcd_giveback_urb(); 0) # 8879.645 us | } 0) # 8880.270 us | } 0) 0.335 us | usb_free_urb(); 0) # 8881.510 us | } 0) # 8883.830 us | } 0) # 8884.500 us | } 0) 0.305 us | hub_port_warm_reset_required(); 0) | usb_clear_port_feature() { 0) | usb_control_msg() { 0) 0.340 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.315 us | usb_get_urb.part.12(); 0) 0.880 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) # 7918.110 us | } 0) 0.310 us | usb_hcd_unlink_urb_from_ep(); 0) 1.030 us | usb_hcd_giveback_urb(); 0) # 7923.100 us | } 0) # 7923.715 us | } 0) 0.340 us | usb_free_urb(); 0) # 7925.155 us | } 0) # 7926.455 us | } 0) # 7927.055 us | } 0) | usb_clear_port_feature() { 0) | usb_control_msg() { 0) 0.330 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.315 us | usb_get_urb.part.12(); 0) 0.870 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.290 us | usb_hcd_is_primary_hcd(); 0) # 8697.840 us | } 0) 0.320 us | usb_hcd_unlink_urb_from_ep(); 0) 1.010 us | usb_hcd_giveback_urb(); 0) # 8702.690 us | } 0) # 8703.305 us | } 0) 0.330 us | usb_free_urb(); 0) # 8704.530 us | } 0) # 8705.805 us | } 0) # 8706.390 us | } 0) | usb_clear_port_feature() { 0) | usb_control_msg() { 0) 0.335 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.305 us | usb_get_urb.part.12(); 0) 0.995 us | } 0) 0.325 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) # 8350.870 us | } 0) 0.305 us | usb_hcd_unlink_urb_from_ep(); 0) 0.940 us | usb_hcd_giveback_urb(); 0) # 8356.545 us | } 0) # 8357.355 us | } 0) 0.330 us | usb_free_urb(); 0) # 8358.590 us | } 0) # 8360.145 us | } 0) # 8360.730 us | } 0) | usb_clear_port_feature() { 0) | usb_control_msg() { 0) 0.335 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.305 us | usb_get_urb.part.12(); 0) 0.870 us | } 0) 0.310 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) # 8090.860 us | } 0) 0.315 us | usb_hcd_unlink_urb_from_ep(); 0) 0.940 us | usb_hcd_giveback_urb(); 0) # 8095.730 us | } 0) # 8096.335 us | } 0) 0.330 us | usb_free_urb(); 0) # 8097.555 us | } 0) # 8098.810 us | } 0) # 8099.400 us | } 0) | hub_ext_port_status() { 0) | usb_control_msg() { 0) 0.340 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.300 us | usb_get_urb.part.12(); 0) 0.865 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) | xhci_hub_control() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.285 us | usb_hcd_is_primary_hcd(); 0) | xhci_get_port_status.isra.17() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.290 us | usb_hcd_is_primary_hcd(); 0) 1.490 us | } 0) # 8439.505 us | } 0) 0.310 us | usb_hcd_unlink_urb_from_ep(); 0) 0.925 us | usb_hcd_giveback_urb(); 0) # 8444.280 us | } 0) # 8444.890 us | } 0) 0.330 us | usb_free_urb(); 0) # 8446.155 us | } 0) # 8447.440 us | } 0) # 8448.095 us | } 0) 0.295 us | hub_port_warm_reset_required(); 0) | xhci_discover_or_reset_device() { 0) | xhci_check_args() { 0) 0.335 us | usb_hcd_is_primary_hcd(); 0) 1.155 us | } 0) 0.290 us | usb_hcd_is_primary_hcd(); 0) 0.295 us | xhci_get_slot_ctx(); 0) 3.220 us | } 0) 0.645 us | usb_set_device_state(); 0) * 84476.62 us | } 0) 0.530 us | usb_speed_string(); 0) | xhci_address_device() { 0) | xhci_setup_device() { 0) 0.290 us | usb_hcd_is_primary_hcd(); 0) 0.880 us | xhci_get_slot_ctx(); 0) 0.480 us | xhci_alloc_command(); 0) 0.315 us | xhci_get_slot_ctx(); 0) 0.300 us | xhci_get_input_control_ctx(); 0) | xhci_setup_addressable_virt_dev() { 0) | xhci_find_raw_port_number() { 0) | xhci_get_rhub() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.865 us | } 0) 1.495 us | } 0) * 26453.05 us | } 0) | xhci_queue_address_device() { 0) 0.540 us | xhci_mod_cmd_timer(); 0) 1.985 us | } 0) | xhci_ring_cmd_db() { 0) # 5569.510 us | xhci_ring_cmd_db.part.52(); 0) # 5570.080 us | } 0) 0.485 us | xhci_get_slot_ctx(); 0) * 70998.68 us | } 0) * 70999.70 us | } 0) 0.595 us | usb_set_device_state(); 0) | usb_ep0_reinit() { 0) | usb_disable_endpoint() { 0) 0.335 us | usb_hcd_flush_endpoint(); 0) | usb_hcd_disable_endpoint() { 0) | xhci_endpoint_disable() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 1.085 us | } 0) 1.865 us | } 0) 3.420 us | } 0) | usb_disable_endpoint() { 0) 0.320 us | usb_hcd_flush_endpoint(); 0) | usb_hcd_disable_endpoint() { 0) | xhci_endpoint_disable() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.865 us | } 0) 1.435 us | } 0) 2.625 us | } 0) | usb_enable_endpoint() { 0) | usb_hcd_reset_endpoint() { 0) | xhci_endpoint_reset() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.995 us | } 0) 1.620 us | } 0) 2.200 us | } 0) 9.585 us | } 0) | usb_control_msg() { 0) 0.395 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.300 us | usb_get_urb.part.12(); 0) 0.880 us | } 0) | xhci_map_urb_for_dma() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 2.225 us | usb_hcd_map_urb_for_dma(); 0) 3.480 us | } 0) | xhci_urb_enqueue() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) 1.020 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.290 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.305 us | xhci_virt_ep_to_ring(); 0) 1.440 us | } 0) 0.300 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 1.410 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) 0.330 us | xhci_td_remainder(); 0) 1.260 us | xhci_ring_ep_doorbell(); 0) + 10.160 us | } 0) + 12.975 us | } 0) + 18.915 us | } 0) + 20.220 us | } 0) 0.365 us | usb_free_urb(); 0) + 22.735 us | } 0) + 24.210 us | } 0) | usb_set_isoch_delay() { 0) | usb_control_msg_send() { 0) | usb_control_msg() { 0) 0.385 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.305 us | usb_get_urb.part.12(); 0) 0.885 us | } 0) | xhci_map_urb_for_dma() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) 0.925 us | } 0) | xhci_urb_enqueue() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.865 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.285 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.285 us | xhci_virt_ep_to_ring(); 0) 1.415 us | } 0) 0.290 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.310 us | xhci_get_virt_ep(); 0) 0.285 us | xhci_virt_ep_to_ring(); 0) 1.405 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) 1.235 us | xhci_ring_ep_doorbell(); 0) 8.685 us | } 0) + 11.125 us | } 0) + 14.150 us | } 0) + 14.730 us | } 0) 0.370 us | usb_free_urb(); 0) + 16.975 us | } 0) + 18.315 us | } 0) + 18.915 us | } 0) + 19.590 us | } 0) | usb_get_device_descriptor() { 0) | usb_get_descriptor() { 0) | usb_control_msg() { 0) 0.340 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.310 us | usb_get_urb.part.12(); 0) 0.870 us | } 0) | xhci_map_urb_for_dma() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.765 us | usb_hcd_map_urb_for_dma(); 0) 1.905 us | } 0) | xhci_urb_enqueue() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 1.035 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.295 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.515 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 1.645 us | } 0) 0.290 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.305 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 1.410 us | } 0) 0.310 us | usb_hcd_link_urb_to_ep(); 0) 0.315 us | xhci_td_remainder(); 0) 1.230 us | xhci_ring_ep_doorbell(); 0) 9.825 us | } 0) + 13.075 us | } 0) + 17.105 us | } 0) + 17.695 us | } 0) 0.350 us | usb_free_urb(); 0) + 19.770 us | } 0) + 21.195 us | } 0) + 22.030 us | } 0) + 22.815 us | } 0) | usb_detect_quirks() { 0) | usb_detect_static_quirks() { 0) 0.300 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.310 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.310 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.315 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.315 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.310 us | usb_match_device(); 0) 0.310 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.310 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.430 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.330 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.310 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.320 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.905 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.325 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) 0.310 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.300 us | usb_match_device(); 0) 0.305 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.295 us | usb_match_device(); 0) 0.290 us | usb_match_device(); 0) + 71.395 us | } 0) + 72.460 us | } 0) | usb_get_bos_descriptor() { 0) | usb_get_descriptor() { 0) | usb_control_msg() { 0) 0.340 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.310 us | usb_get_urb.part.12(); 0) 0.885 us | } 0) | xhci_map_urb_for_dma() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.640 us | usb_hcd_map_urb_for_dma(); 0) 1.770 us | } 0) | xhci_urb_enqueue() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.865 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.290 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 1.420 us | } 0) 0.290 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.320 us | xhci_virt_ep_to_ring(); 0) 1.430 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) 0.295 us | xhci_td_remainder(); 0) 1.230 us | xhci_ring_ep_doorbell(); 0) 9.590 us | } 0) + 11.940 us | } 0) + 15.715 us | } 0) + 16.305 us | } 0) 0.350 us | usb_free_urb(); 0) + 18.325 us | } 0) + 19.575 us | } 0) + 20.375 us | } 0) | usb_get_descriptor() { 0) | usb_control_msg() { 0) 0.335 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.890 us | usb_get_urb.part.12(); 0) 1.460 us | } 0) | xhci_map_urb_for_dma() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.650 us | usb_hcd_map_urb_for_dma(); 0) 1.780 us | } 0) | xhci_urb_enqueue() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.850 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.290 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.295 us | xhci_get_virt_ep(); 0) 0.280 us | xhci_virt_ep_to_ring(); 0) 1.405 us | } 0) 0.295 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.300 us | xhci_virt_ep_to_ring(); 0) 1.415 us | } 0) 0.310 us | usb_hcd_link_urb_to_ep(); 0) 0.300 us | xhci_td_remainder(); 0) 1.230 us | xhci_ring_ep_doorbell(); 0) 9.630 us | } 0) + 11.925 us | } 0) + 16.300 us | } 0) + 16.890 us | } 0) 0.375 us | usb_free_urb(); 0) + 18.925 us | } 0) + 20.185 us | } 0) + 20.990 us | } 0) + 42.640 us | } 0) 0.315 us | usb_device_supports_lpm.part.47(); 0) | xhci_update_device() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.895 us | } 0) @ 164027.3 us | } 0) | usb_new_device() { 0) 0.610 us | usb_disable_autosuspend(); 0) | usb_get_configuration() { 0) | usb_get_descriptor() { 0) | usb_control_msg() { 0) 0.335 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.325 us | usb_get_urb.part.12(); 0) 0.890 us | } 0) | xhci_map_urb_for_dma() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.635 us | usb_hcd_map_urb_for_dma(); 0) 1.785 us | } 0) | xhci_urb_enqueue() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.285 us | usb_hcd_is_primary_hcd(); 0) 0.850 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.295 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.295 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 1.390 us | } 0) 0.285 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.300 us | xhci_virt_ep_to_ring(); 0) 1.405 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) 0.280 us | xhci_td_remainder(); 0) 1.220 us | xhci_ring_ep_doorbell(); 0) 9.445 us | } 0) + 12.485 us | } 0) + 16.250 us | } 0) + 16.810 us | } 0) 0.345 us | usb_free_urb(); 0) + 18.860 us | } 0) + 20.100 us | } 0) + 20.885 us | } 0) | usb_get_descriptor() { 0) | usb_control_msg() { 0) 0.330 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.310 us | usb_get_urb.part.12(); 0) 1.000 us | } 0) | xhci_map_urb_for_dma() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.640 us | usb_hcd_map_urb_for_dma(); 0) 1.785 us | } 0) | xhci_urb_enqueue() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.850 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.315 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 1.400 us | } 0) 0.295 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.295 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_virt_ep_to_ring(); 0) 1.425 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) 0.290 us | xhci_td_remainder(); 0) 1.215 us | xhci_ring_ep_doorbell(); 0) 9.665 us | } 0) + 12.000 us | } 0) + 15.905 us | } 0) + 16.480 us | } 0) 0.340 us | usb_free_urb(); 0) + 18.530 us | } 0) + 19.795 us | } 0) + 20.615 us | } 0) * 36425.95 us | } 0) | usb_cache_string() { 0) | usb_string() { 0) | usb_string_sub() { 0) | usb_get_string() { 0) | usb_control_msg() { 0) 0.335 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.310 us | usb_get_urb.part.12(); 0) 0.875 us | } 0) | xhci_map_urb_for_dma() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.720 us | usb_hcd_map_urb_for_dma(); 0) 1.870 us | } 0) | xhci_urb_enqueue() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.865 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.290 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.310 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_virt_ep_to_ring(); 0) 1.415 us | } 0) 0.285 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 2.095 us | } 0) 0.345 us | usb_hcd_link_urb_to_ep(); 0) 0.290 us | xhci_td_remainder(); 0) 1.235 us | xhci_ring_ep_doorbell(); 0) + 10.405 us | } 0) + 12.780 us | } 0) + 16.665 us | } 0) + 17.270 us | } 0) 0.375 us | usb_free_urb(); 0) + 19.705 us | } 0) + 21.055 us | } 0) + 21.845 us | } 0) + 22.505 us | } 0) | usb_string_sub() { 0) | usb_get_string() { 0) | usb_control_msg() { 0) 0.355 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.465 us | usb_get_urb.part.12(); 0) 1.025 us | } 0) | xhci_map_urb_for_dma() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.630 us | usb_hcd_map_urb_for_dma(); 0) 1.915 us | } 0) | xhci_urb_enqueue() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.855 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.290 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_virt_ep_to_ring(); 0) 1.425 us | } 0) 0.285 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.305 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_virt_ep_to_ring(); 0) 1.405 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) 0.300 us | xhci_td_remainder(); 0) 1.230 us | xhci_ring_ep_doorbell(); 0) 9.535 us | } 0) + 11.900 us | } 0) + 16.105 us | } 0) + 16.855 us | } 0) 0.395 us | usb_free_urb(); 0) + 19.190 us | } 0) + 20.490 us | } 0) + 21.250 us | } 0) + 21.855 us | } 0) # 5009.665 us | } 0) # 5010.560 us | } 0) | usb_cache_string() { 0) | usb_string() { 0) | usb_string_sub() { 0) | usb_get_string() { 0) | usb_control_msg() { 0) 0.335 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.315 us | usb_get_urb.part.12(); 0) 0.885 us | } 0) | xhci_map_urb_for_dma() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.680 us | usb_hcd_map_urb_for_dma(); 0) 1.820 us | } 0) | xhci_urb_enqueue() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.855 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.290 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.280 us | xhci_virt_ep_to_ring(); 0) 1.430 us | } 0) 0.300 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.300 us | xhci_get_virt_ep(); 0) 0.285 us | xhci_virt_ep_to_ring(); 0) 1.400 us | } 0) 0.310 us | usb_hcd_link_urb_to_ep(); 0) 0.295 us | xhci_td_remainder(); 0) 1.230 us | xhci_ring_ep_doorbell(); 0) + 10.300 us | } 0) + 12.630 us | } 0) + 16.665 us | } 0) + 17.255 us | } 0) 0.365 us | usb_free_urb(); 0) + 19.730 us | } 0) + 21.125 us | } 0) + 21.915 us | } 0) + 22.530 us | } 0) + 23.240 us | } 0) + 23.945 us | } 0) | usb_cache_string() { 0) | usb_string() { 0) | usb_string_sub() { 0) | usb_get_string() { 0) | usb_control_msg() { 0) 0.330 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.310 us | usb_get_urb.part.12(); 0) 0.875 us | } 0) | xhci_map_urb_for_dma() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.680 us | usb_hcd_map_urb_for_dma(); 0) 1.820 us | } 0) | xhci_urb_enqueue() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.860 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.290 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.310 us | xhci_get_virt_ep(); 0) 0.290 us | xhci_virt_ep_to_ring(); 0) 1.425 us | } 0) 0.295 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.305 us | xhci_get_virt_ep(); 0) 0.280 us | xhci_virt_ep_to_ring(); 0) 1.405 us | } 0) 0.305 us | usb_hcd_link_urb_to_ep(); 0) 0.295 us | xhci_td_remainder(); 0) 1.220 us | xhci_ring_ep_doorbell(); 0) 9.490 us | } 0) + 11.805 us | } 0) + 15.615 us | } 0) + 16.195 us | } 0) 0.375 us | usb_free_urb(); 0) + 18.380 us | } 0) + 19.635 us | } 0) + 20.430 us | } 0) + 21.020 us | } 0) + 21.750 us | } 0) + 22.485 us | } 0) | usb_detect_interface_quirks() { 0) | usb_detect_static_quirks() { 0) 0.300 us | usb_match_device(); 0) 0.890 us | } 0) 1.515 us | } 0) 1.145 us | usb_devnode(); 0) | usb_bus_notify() { 0) 4.780 us | usb_create_sysfs_dev_files(); 0) 6.410 us | } 0) 0.705 us | usb_devnode(); 0) 1.010 us | usb_uevent(); 0) 0.525 us | usb_dev_uevent(); 0) 0.310 us | usb_device_match(); 0) 0.305 us | usb_device_match(); 0) | usb_device_match() { 0) | usb_driver_applicable() { 0) 1.545 us | usb_generic_driver_match(); 0) 2.350 us | } 0) 3.115 us | } 0) 0.325 us | usb_bus_notify(); 0) | usb_probe_device() { 0) | usb_generic_driver_probe() { 0) | usb_choose_configuration() { 0) 0.400 us | usb_device_is_owned(); 0) # 6179.885 us | } 0) | usb_set_configuration() { 0) 0.365 us | usb_autoresume_device(); 0) | usb_hcd_alloc_bandwidth() { 0) 0.320 us | usb_find_alt_setting(); 0) | xhci_add_endpoint() { 0) | xhci_check_args() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.890 us | } 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) | xhci_get_endpoint_flag() { 0) 0.300 us | xhci_get_endpoint_index.part.25(); 0) 0.930 us | } 0) 0.320 us | xhci_get_input_control_ctx(); 0) 0.305 us | xhci_get_endpoint_index.part.25(); 0) | xhci_endpoint_init() { 0) | xhci_get_endpoint_index() { 0) 0.310 us | xhci_get_endpoint_index.part.25(); 0) 0.895 us | } 0) | xhci_ring_alloc() { 0) | xhci_alloc_segments_for_ring() { 0) 1.515 us | xhci_segment_alloc(); 0) 1.495 us | xhci_segment_alloc(); 0) 0.660 us | xhci_link_segments.part.16(); 0) 0.660 us | xhci_link_segments.part.16(); 0) 6.115 us | } 0) 6.995 us | } 0) 9.120 us | } 0) 0.350 us | xhci_get_ep_ctx(); 0) * 10100.61 us | } 0) | xhci_add_endpoint() { 0) | xhci_check_args() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.870 us | } 0) 0.440 us | usb_hcd_is_primary_hcd(); 0) | xhci_get_endpoint_flag() { 0) 0.295 us | xhci_get_endpoint_index.part.25(); 0) 0.875 us | } 0) 0.295 us | xhci_get_input_control_ctx(); 0) 0.300 us | xhci_get_endpoint_index.part.25(); 0) | xhci_endpoint_init() { 0) | xhci_get_endpoint_index() { 0) 0.290 us | xhci_get_endpoint_index.part.25(); 0) 0.865 us | } 0) | xhci_ring_alloc() { 0) | xhci_alloc_segments_for_ring() { 0) 1.090 us | xhci_segment_alloc(); 0) 1.115 us | xhci_segment_alloc(); 0) 0.665 us | xhci_link_segments.part.16(); 0) 0.665 us | xhci_link_segments.part.16(); 0) 5.455 us | } 0) 6.250 us | } 0) 8.090 us | } 0) 0.355 us | xhci_get_ep_ctx(); 0) * 10098.76 us | } 0) | xhci_check_bandwidth() { 0) | xhci_check_args() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 1.335 us | } 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.440 us | xhci_alloc_command(); 0) 0.300 us | xhci_get_input_control_ctx(); 0) 0.370 us | xhci_get_slot_ctx(); 0) | xhci_configure_endpoint() { 0) 0.480 us | xhci_get_input_control_ctx(); 0) 0.290 us | xhci_get_slot_ctx(); 0) | xhci_queue_configure_endpoint() { 0) 0.680 us | xhci_mod_cmd_timer(); 0) 2.570 us | } 0) | xhci_ring_cmd_db() { 0) # 5569.120 us | xhci_ring_cmd_db.part.52(); 0) # 5569.690 us | } 0) * 13234.08 us | } 0) | xhci_zero_in_ctx.isra.52() { 0) 0.305 us | xhci_get_input_control_ctx(); 0) 0.360 us | xhci_get_slot_ctx(); 0) 0.480 us | xhci_get_ep_ctx(); 0) 0.365 us | xhci_get_ep_ctx(); 0) 0.345 us | xhci_get_ep_ctx(); 0) 0.345 us | xhci_get_ep_ctx(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 0.345 us | xhci_get_ep_ctx(); 0) 0.360 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.360 us | xhci_get_ep_ctx(); 0) 0.345 us | xhci_get_ep_ctx(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.360 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.345 us | xhci_get_ep_ctx(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 0.340 us | xhci_get_ep_ctx(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.365 us | xhci_get_ep_ctx(); 0) 0.380 us | xhci_get_ep_ctx(); 0) 0.360 us | xhci_get_ep_ctx(); 0) 0.345 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 0.340 us | xhci_get_ep_ctx(); 0) + 22.305 us | } 0) | xhci_debugfs_create_endpoint() { 0) + 10.520 us | xhci_debugfs_create_ring_dir.isra.15(); 0) + 11.440 us | } 0) | xhci_debugfs_create_endpoint() { 0) 7.035 us | xhci_debugfs_create_ring_dir.isra.15(); 0) 7.925 us | } 0) * 22328.79 us | } 0) * 42530.67 us | } 0) 0.320 us | usb_altnum_to_altsetting(); 0) | usb_enable_interface() { 0) | usb_enable_endpoint() { 0) | usb_hcd_reset_endpoint() { 0) | xhci_endpoint_reset() { 0) 0.335 us | usb_hcd_is_primary_hcd(); 0) 0.305 us | xhci_get_endpoint_index.part.25(); 0) | xhci_get_endpoint_flag() { 0) 0.300 us | xhci_get_endpoint_index.part.25(); 0) 0.870 us | } 0) 0.395 us | xhci_alloc_command(); 0) | xhci_alloc_command_with_ctx() { 0) 0.510 us | xhci_alloc_command(); 0) 1.035 us | xhci_alloc_container_ctx(); 0) 2.560 us | } 0) | xhci_queue_stop_endpoint() { 0) 0.490 us | xhci_mod_cmd_timer(); 0) 1.845 us | } 0) | xhci_ring_cmd_db() { 0) # 5570.580 us | xhci_ring_cmd_db.part.52(); 0) # 5571.160 us | } 0) 0.350 us | xhci_get_input_control_ctx(); 0) 0.545 us | xhci_slot_copy(); 0) 0.540 us | xhci_endpoint_copy(); 0) | xhci_queue_configure_endpoint() { 0) 0.435 us | xhci_mod_cmd_timer(); 0) 1.790 us | } 0) | xhci_ring_cmd_db() { 0) # 5569.710 us | xhci_ring_cmd_db.part.52(); 0) # 5570.275 us | } 0) | xhci_free_command() { 0) 0.415 us | xhci_free_container_ctx.part.36(); 0) 1.300 us | } 0) 0.360 us | xhci_free_command(); 0) * 11163.98 us | } 0) * 11164.59 us | } 0) * 11165.19 us | } 0) | usb_enable_endpoint() { 0) | usb_hcd_reset_endpoint() { 0) | xhci_endpoint_reset() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 0.295 us | xhci_get_endpoint_index.part.25(); 0) | xhci_get_endpoint_flag() { 0) 0.295 us | xhci_get_endpoint_index.part.25(); 0) 0.870 us | } 0) 0.445 us | xhci_alloc_command(); 0) | xhci_alloc_command_with_ctx() { 0) 0.375 us | xhci_alloc_command(); 0) 0.820 us | xhci_alloc_container_ctx(); 0) 2.375 us | } 0) | xhci_queue_stop_endpoint() { 0) 0.445 us | xhci_mod_cmd_timer(); 0) 1.925 us | } 0) | xhci_ring_cmd_db() { 0) # 5569.855 us | xhci_ring_cmd_db.part.52(); 0) # 5570.440 us | } 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.285 us | usb_hcd_is_primary_hcd(); 0) 0.310 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_dma_to_transfer_ring(); 0) 0.300 us | xhci_get_ep_ctx(); 0) 1.230 us | xhci_update_erst_dequeue.isra.49(); 0) # 8267.135 us | } 0) # 8267.755 us | } 0) 0.320 us | xhci_get_input_control_ctx(); 0) 0.545 us | xhci_slot_copy(); 0) 0.535 us | xhci_endpoint_copy(); 0) | xhci_queue_configure_endpoint() { 0) 0.465 us | xhci_mod_cmd_timer(); 0) 1.790 us | } 0) | xhci_ring_cmd_db() { 0) # 5569.955 us | xhci_ring_cmd_db.part.52(); 0) # 5570.570 us | } 0) | xhci_free_command() { 0) 0.390 us | xhci_free_container_ctx.part.36(); 0) 1.060 us | } 0) 0.360 us | xhci_free_command(); 0) * 19435.82 us | } 0) * 19437.30 us | } 0) * 19437.90 us | } 0) * 30604.01 us | } 0) 0.300 us | usb_of_has_combined_node(); 0) 0.705 us | usb_of_get_interface_node(); 0) 0.330 us | usb_get_dev(); 0) | usb_control_msg_send() { 0) | usb_control_msg() { 0) 0.360 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) | usb_hcd_submit_urb() { 0) | usb_get_urb() { 0) 0.315 us | usb_get_urb.part.12(); 0) 0.925 us | } 0) | xhci_map_urb_for_dma() { 0) 0.295 us | usb_hcd_is_primary_hcd(); 0) 1.080 us | } 0) | xhci_urb_enqueue() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | xhci_check_args() { 0) 0.440 us | usb_hcd_is_primary_hcd(); 0) 1.015 us | } 0) | xhci_queue_ctrl_tx() { 0) 0.300 us | xhci_get_endpoint_index(); 0) | xhci_triad_to_transfer_ring() { 0) 0.295 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_virt_ep_to_ring(); 0) 1.410 us | } 0) 0.290 us | xhci_get_ep_ctx(); 0) | xhci_triad_to_transfer_ring() { 0) 0.295 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_virt_ep_to_ring(); 0) 1.420 us | } 0) 0.315 us | usb_hcd_link_urb_to_ep(); 0) 1.250 us | xhci_ring_ep_doorbell(); 0) 8.520 us | } 0) + 11.085 us | } 0) + 14.585 us | } 0) + 15.180 us | } 0) 0.560 us | usb_free_urb(); 0) + 17.835 us | } 0) + 19.220 us | } 0) + 19.925 us | } 0) 1.695 us | usb_set_device_state(); 0) 0.310 us | usb_cache_string(); 0) | usb_unlocked_enable_lpm() { 0) 0.320 us | usb_enable_lpm(); 0) 1.070 us | } 0) 0.425 us | usb_enable_ltm(); 0) | usb_bus_notify() { 0) | usb_create_sysfs_intf_files() { 0) 0.325 us | usb_cache_string(); 0) 0.920 us | } 0) 1.630 us | } 0) 0.955 us | usb_uevent(); 0) 1.495 us | usb_if_uevent(); 0) | usb_device_match() { 0) 0.335 us | usb_match_dynamic_id(); 0) 0.960 us | } 0) | usb_device_match() { 0) | usb_match_id.part.16() { 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.915 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.290 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.895 us | } 0) | usb_match_one_id() { 0) 0.315 us | usb_match_device(); 0) 0.320 us | usb_match_one_id_intf(); 0) 1.490 us | } 0) + 13.540 us | } 0) 0.330 us | usb_match_dynamic_id(); 0) + 14.745 us | } 0) 0.315 us | usb_device_match(); 0) | usb_device_match() { 0) | usb_match_id.part.16() { 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.890 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.850 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.290 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 1.535 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.290 us | usb_match_device(); 0) 0.850 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.320 us | usb_match_device(); 0) 0.895 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.320 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.850 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.320 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.850 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 1.400 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 1.060 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.870 us | usb_match_device(); 0) 1.425 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.910 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.290 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.845 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.850 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.290 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.325 us | usb_match_device(); 0) 0.900 us | } 0) | usb_match_one_id() { 0) 0.320 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.320 us | usb_match_device(); 0) 0.895 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 1.620 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.290 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.290 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.895 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.850 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.850 us | usb_match_device(); 0) 1.415 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.885 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.310 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.870 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.855 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.295 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.865 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.860 us | } 0) | usb_match_one_id() { 0) 0.300 us | usb_match_device(); 0) 0.880 us | } 0) | usb_match_one_id() { 0) 0.305 us | usb_match_device(); 0) 0.875 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.565 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.325 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 2.020 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.470 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 1.550 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.390 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.565 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.565 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.540 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.430 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.535 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.515 us | } 0) | usb_match_one_id() { 0) 0.490 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.145 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.540 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.420 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.460 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.565 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.140 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 2.255 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.560 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.575 us | } 0) | usb_match_one_id() { 0) 0.530 us | usb_match_device(); 0) 1.560 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.365 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.420 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.535 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.560 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.435 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.560 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.550 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.390 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.560 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 1.180 us | usb_match_device(); 0) 2.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.550 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.425 us | } 0) | usb_match_one_id() { 0) 0.535 us | usb_match_device(); 0) 0.540 us | usb_match_one_id_intf(); 0) 2.590 us | } 0) | usb_match_one_id() { 0) 0.530 us | usb_match_device(); 0) 0.500 us | usb_match_one_id_intf(); 0) 2.385 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 0.515 us | usb_match_one_id_intf(); 0) 2.470 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 0.495 us | usb_match_one_id_intf(); 0) 2.375 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 0.515 us | usb_match_one_id_intf(); 0) 2.480 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 0.405 us | usb_match_one_id_intf(); 0) 2.185 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 0.415 us | usb_match_one_id_intf(); 0) 2.365 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 0.410 us | usb_match_one_id_intf(); 0) 2.375 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 0.515 us | usb_match_one_id_intf(); 0) 2.480 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 0.525 us | usb_match_one_id_intf(); 0) 2.585 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 0.510 us | usb_match_one_id_intf(); 0) 2.400 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 0.410 us | usb_match_one_id_intf(); 0) 2.495 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 0.510 us | usb_match_one_id_intf(); 0) 2.395 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 0.395 us | usb_match_one_id_intf(); 0) 2.285 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 0.525 us | usb_match_one_id_intf(); 0) 3.055 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 0.505 us | usb_match_one_id_intf(); 0) 2.180 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 0.515 us | usb_match_one_id_intf(); 0) 2.095 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 0.535 us | usb_match_one_id_intf(); 0) 2.485 us | } 0) ! 484.495 us | } 0) ! 485.420 us | } 0) 0.430 us | usb_bus_notify(); 0) | usb_probe_interface() { 0) 0.570 us | usb_device_is_owned(); 0) 0.600 us | usb_match_dynamic_id(); 0) | usb_match_id.part.16() { 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.430 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.435 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.365 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.470 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.550 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.990 us | usb_match_device(); 0) 2.020 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.365 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.365 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.460 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.460 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.470 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.335 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.740 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.260 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.370 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.320 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.155 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.470 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.435 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.470 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.135 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.265 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.435 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.850 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.140 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.470 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 1.470 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.490 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.145 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.985 us | usb_match_device(); 0) 1.935 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.370 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.435 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.150 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.725 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.365 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.460 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.535 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.480 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.140 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.425 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.320 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.235 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.430 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.145 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.335 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.230 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.540 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.930 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.460 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.520 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.550 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.150 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 1.555 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.460 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.140 us | } 0) | usb_match_one_id() { 0) 0.985 us | usb_match_device(); 0) 1.720 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.260 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.335 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.460 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.140 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.435 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.245 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.720 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.530 us | usb_match_device(); 0) 1.545 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.390 us | usb_match_device(); 0) 1.225 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.145 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.465 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.145 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 1.435 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.145 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.255 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.145 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.240 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.440 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.340 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 1.540 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.455 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.150 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.445 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.495 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 1.250 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.450 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.345 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 1.850 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 1.140 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.350 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.360 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 1.355 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 0.410 us | usb_match_one_id_intf(); 0) 2.295 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 0.505 us | usb_match_one_id_intf(); 0) 2.280 us | } 0) | usb_match_one_id() { 0) 0.525 us | usb_match_device(); 0) 0.510 us | usb_match_one_id_intf(); 0) 2.295 us | } 0) | usb_match_one_id() { 0) 0.530 us | usb_match_device(); 0) 0.515 us | usb_match_one_id_intf(); 0) 2.595 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 0.510 us | usb_match_one_id_intf(); 0) 2.595 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 0.400 us | usb_match_one_id_intf(); 0) 1.980 us | } 0) | usb_match_one_id() { 0) 0.410 us | usb_match_device(); 0) 0.405 us | usb_match_one_id_intf(); 0) 2.075 us | } 0) | usb_match_one_id() { 0) 0.500 us | usb_match_device(); 0) 0.505 us | usb_match_one_id_intf(); 0) 2.185 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 0.510 us | usb_match_one_id_intf(); 0) 2.080 us | } 0) | usb_match_one_id() { 0) 0.515 us | usb_match_device(); 0) 0.510 us | usb_match_one_id_intf(); 0) 2.295 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 0.405 us | usb_match_one_id_intf(); 0) 1.990 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 0.515 us | usb_match_one_id_intf(); 0) 2.290 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 0.405 us | usb_match_one_id_intf(); 0) 2.185 us | } 0) | usb_match_one_id() { 0) 0.405 us | usb_match_device(); 0) 0.525 us | usb_match_one_id_intf(); 0) 2.280 us | } 0) | usb_match_one_id() { 0) 0.395 us | usb_match_device(); 0) 0.405 us | usb_match_one_id_intf(); 0) 1.975 us | } 0) | usb_match_one_id() { 0) 0.510 us | usb_match_device(); 0) 0.505 us | usb_match_one_id_intf(); 0) 2.395 us | } 0) | usb_match_one_id() { 0) 0.505 us | usb_match_device(); 0) 0.415 us | usb_match_one_id_intf(); 0) 2.205 us | } 0) | usb_match_one_id() { 0) 0.400 us | usb_match_device(); 0) 0.520 us | usb_match_one_id_intf(); 0) 2.380 us | } 0) ! 593.625 us | } 0) 0.650 us | usb_autoresume_device(); 0) 0.490 us | usb_usual_ignore_device(); 0) | usb_stor_probe1() { 0) | scsi_host_alloc() { 0) 0.715 us | scsi_enable_async_suspend(); 0) + 44.945 us | } 0) | usb_alloc_coherent() { 0) 1.245 us | hcd_buffer_alloc(); 0) 1.930 us | } 0) 0.515 us | usb_stor_adjust_quirks(); 0) # 6836.555 us | } 0) | usb_stor_probe2() { 0) 0.815 us | usb_find_common_endpoints(); 0) 0.400 us | usb_find_common_endpoints(); 0) 0.340 us | usb_alloc_urb(); 0) 0.655 us | usb_autopm_get_interface_no_resume(); 0) | scsi_add_host_with_dma() { 0) 0.535 us | scsi_init_sense_cache(); 0) | scsi_mq_setup_tags() { 0) 1.935 us | scsi_map_queues(); 0) 1.310 us | scsi_mq_init_request(); 0) + 12.885 us | } 0) 0.350 us | scsi_bus_uevent(); 0) 0.320 us | scsi_bus_match(); 0) 1.500 us | scsi_sysfs_add_host(); 0) | scsi_autopm_put_host() { 0) | scsi_runtime_idle() { 0) 0.370 us | scsi_is_sdev_device(); 0) # 4706.805 us | } 0) | scsi_runtime_suspend() { 0) 0.320 us | scsi_is_sdev_device(); 0) # 4966.270 us | } 0) # 9676.240 us | } 0) * 14614.52 us | } 0) * 14624.29 us | } 0) * 34162.08 us | } 0) 0.350 us | usb_bus_notify(); 0) 1.165 us | usb_uevent(); 0) 1.400 us | usb_if_uevent(); 0) + 12.805 us | usb_create_ep_devs(); 0) 8.915 us | usb_create_ep_devs(); 0) 0.430 us | usb_autosuspend_device(); 0) @ 114260.9 us | } 0) 0.605 us | usb_notify_add_device(); 0) @ 120443.3 us | } 0) @ 124803.9 us | } 0) 0.315 us | usb_bus_notify(); 0) 1.015 us | usb_devnode(); 0) 0.710 us | usb_uevent(); 0) 0.490 us | usb_dev_uevent(); 0) 8.835 us | usb_create_ep_devs(); 0) @ 171887.1 us | } 0) 0.730 us | usb_autopm_put_interface_no_suspend(); 0) 0.905 us | usb_autopm_put_interface(); 0) @ 397588.7 us | } 3) | sd_probe() { 3) 0.575 us | scsi_autopm_get_device(); 3) 0.535 us | sd_major(); 3) | sd_revalidate_disk() { 3) | scsi_execute_cmd() { 3) 2.175 us | scsi_alloc_request(); 3) 1.310 us | scsi_mq_get_budget(); 3) 0.300 us | scsi_mq_set_rq_budget_token(); 3) | scsi_queue_rq() { 3) 0.325 us | scsi_init_command(); 3) 4.050 us | } 7) 3.820 us | scsi_normalize_sense(); 7) + 24.055 us | } /* scsi_execute_cmd */ 7) | scsi_execute_cmd() { 7) 5.360 us | scsi_alloc_request(); 7) 1.545 us | scsi_mq_get_budget(); 7) 0.305 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.740 us | scsi_init_command(); 7) 0.860 us | scsi_alloc_sgtables(); 7) 4.720 us | } 7) 0.340 us | scsi_normalize_sense(); 7) + 20.710 us | } 7) | scsi_execute_cmd() { 7) 0.805 us | scsi_alloc_request(); 7) 0.390 us | scsi_mq_get_budget(); 7) 0.295 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.320 us | scsi_init_command(); 7) 0.440 us | scsi_alloc_sgtables(); 7) 2.735 us | } 7) 8.280 us | } 7) 0.605 us | scsi_log_reserve_buffer(); 7) | scsi_mode_sense() { 7) | scsi_execute_cmd() { 7) 0.835 us | scsi_alloc_request(); 7) 0.485 us | scsi_mq_get_budget(); 7) 0.335 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.335 us | scsi_init_command(); 7) 0.460 us | scsi_alloc_sgtables(); 7) 2.700 us | } 7) 0.385 us | scsi_normalize_sense(); 7) 9.905 us | } 7) + 11.075 us | } 7) 0.405 us | scsi_log_reserve_buffer(); 7) 0.425 us | scsi_log_reserve_buffer(); 7) | scsi_mode_sense() { 7) | scsi_execute_cmd() { 7) 0.730 us | scsi_alloc_request(); 7) 0.435 us | scsi_mq_get_budget(); 7) 0.300 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.320 us | scsi_init_command(); 7) 0.420 us | scsi_alloc_sgtables(); 7) 2.845 us | } 7) 0.345 us | scsi_normalize_sense(); 7) 9.050 us | } 7) 9.725 us | } 7) 0.355 us | scsi_log_reserve_buffer(); 7) 0.375 us | scsi_report_opcode(); 7) 0.345 us | scsi_report_opcode(); 7) 0.310 us | scsi_report_opcode(); 7) 0.645 us | sd_dif_config_host(); 7) 0.515 us | sd_set_flush_flag(); 7) 0.450 us | sd_config_write_same(); 7) * 29270.32 us | } /* sd_revalidate_disk */ 7) 1.170 us | scsi_mq_init_request(); 7) 0.350 us | scsi_mq_init_request(); 7) | sd_open() { 7) 0.575 us | scsi_device_get(); 7) 0.505 us | scsi_block_when_processing_errors(); 7) | sd_revalidate_disk() { 7) | scsi_execute_cmd() { 7) 1.285 us | scsi_alloc_request(); 7) 0.410 us | scsi_mq_get_budget(); 7) 0.330 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 1.345 us | scsi_init_command(); 7) 3.475 us | } 7) 0.420 us | scsi_normalize_sense(); 7) + 12.145 us | } 7) | scsi_execute_cmd() { 7) 0.565 us | scsi_alloc_request(); 7) 0.405 us | scsi_mq_get_budget(); 7) 0.310 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.320 us | scsi_init_command(); 7) 0.555 us | scsi_alloc_sgtables(); 7) 2.810 us | } 7) 0.415 us | scsi_normalize_sense(); 7) 9.985 us | } 7) | scsi_execute_cmd() { 7) 0.560 us | scsi_alloc_request(); 7) 0.400 us | scsi_mq_get_budget(); 7) 0.290 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.315 us | scsi_init_command(); 7) 0.370 us | scsi_alloc_sgtables(); 7) 2.545 us | } 7) 7.695 us | } 7) | scsi_mode_sense() { 7) | scsi_execute_cmd() { 7) 0.525 us | scsi_alloc_request(); 7) 0.405 us | scsi_mq_get_budget(); 7) 0.290 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.325 us | scsi_init_command(); 7) 0.385 us | scsi_alloc_sgtables(); 7) 2.525 us | } 7) 0.350 us | scsi_normalize_sense(); 7) 8.500 us | } 7) 9.355 us | } 7) | scsi_mode_sense() { 7) | scsi_execute_cmd() { 7) 0.530 us | scsi_alloc_request(); 7) 0.440 us | scsi_mq_get_budget(); 7) 0.320 us | scsi_mq_set_rq_budget_token(); 7) | scsi_queue_rq() { 7) 0.315 us | scsi_init_command(); 7) 0.355 us | scsi_alloc_sgtables(); 7) 2.540 us | } 7) 0.360 us | scsi_normalize_sense(); 7) 8.650 us | } 7) 9.280 us | } 7) 0.490 us | scsi_report_opcode(); 7) 0.325 us | scsi_report_opcode(); 7) 0.425 us | scsi_report_opcode(); 7) 0.520 us | sd_dif_config_host(); 7) 0.340 us | sd_set_flush_flag(); 7) 0.345 us | sd_config_write_same(); 7) + 57.640 us | } 7) + 61.760 us | } 7) | sd_release() { 7) 0.475 us | scsi_device_put(); 7) 1.560 us | } 7) 0.375 us | scsi_log_reserve_buffer(); 7) 0.950 us | scsi_autopm_put_device(); 7) * 35083.09 us | } /* sd_probe */
usb_hcd_irqh函数调用情况1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.505 us | usb_hcd_is_primary_hcd(); 0) 3.275 us | usb_hcd_resume_root_hub(); 0) | usb_hcd_poll_rh_status() { 0) | xhci_hub_status_data() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) 0.320 us | usb_hcd_is_primary_hcd(); 0) 2.655 us | } 0) 4.250 us | } 0) 1.225 us | xhci_update_erst_dequeue.isra.49(); 0) + 16.345 us | } 0) + 20.665 us | } 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) 0.315 us | xhci_get_virt_ep(); 0) 0.300 us | xhci_dma_to_transfer_ring(); 0) 0.310 us | xhci_get_ep_ctx(); 0) 0.310 us | xhci_get_ep_ctx(); 0) 0.310 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.370 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) | xhci_giveback_urb_in_irq.isra.39() { 0) 0.410 us | xhci_urb_free_priv(); 0) 0.320 us | usb_hcd_unlink_urb_from_ep(); 0) 0.350 us | usb_hcd_giveback_urb(); 0) 2.300 us | } 0) 3.715 us | } 0) 1.200 us | xhci_update_erst_dequeue.isra.49(); 0) + 15.620 us | } 0) + 16.405 us | } 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) 0.310 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_dma_to_transfer_ring(); 0) 0.290 us | xhci_get_ep_ctx(); 0) 0.295 us | xhci_get_ep_ctx(); 0) 0.295 us | xhci_get_virt_ep(); 0) 0.295 us | xhci_dma_to_transfer_ring(); 0) 0.300 us | xhci_get_ep_ctx(); 0) 0.295 us | xhci_get_ep_ctx(); 0) 0.300 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.295 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) | xhci_giveback_urb_in_irq.isra.39() { 0) 0.340 us | xhci_urb_free_priv(); 0) 0.315 us | usb_hcd_unlink_urb_from_ep(); 0) 0.335 us | usb_hcd_giveback_urb(); 0) 2.090 us | } 0) 3.225 us | } 0) 1.225 us | xhci_update_erst_dequeue.isra.49(); 0) + 16.115 us | } 0) + 16.700 us | }
读写数据 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 cd /sys/kernel/debug/tracing echo nop > current_tracer echo > trace echo > set_ftrace_filter echo > set_graph_function echo > set_ftrace_notrace echo function_graph > current_tracer cat <<EOF > set_ftrace_filter xhci_* usb_* *dwc3* hcd_* scsi_* sd_* submit_bio blk_mq_submit_bio EOF cat <<EOF > set_ftrace_notrace _dev_info mutex* _raw_spin* __pm_runtime* xhci_dbg_trace EOF echo 4 > max_graph_depth echo 1 > tracing_on && sleep 1 && dd if=/dev/urandom of=/dev/sda bs=4K count=4 && sleep 1 && echo 0 > tracing_on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 0) | sd_open() { 0) 1.215 us | scsi_device_get(); 0) 0.925 us | scsi_block_when_processing_errors(); 0) 6.820 us | } 0) | submit_bio() { 0) 8.205 us | blk_mq_submit_bio(); 0) + 10.880 us | } 0) | submit_bio() { 0) 2.520 us | blk_mq_submit_bio(); 0) 3.300 us | } 0) | submit_bio() { 0) 0.545 us | blk_mq_submit_bio(); 0) 1.240 us | } 0) | submit_bio() { 0) 0.500 us | blk_mq_submit_bio(); 0) 1.215 us | } 0) 0.935 us | scsi_mq_get_budget(); 0) 0.310 us | scsi_mq_set_rq_budget_token(); 0) | scsi_queue_rq() { 0) 0.760 us | scsi_init_command(); 0) | sd_init_command() { 0) 2.815 us | scsi_alloc_sgtables(); 0) 4.420 us | } 0) + 11.705 us | } 1) | usb_stor_transparent_scsi_command() { 1) | usb_stor_invoke_transport() { 1) | usb_stor_Bulk_transport() { 1) | usb_stor_bulk_transfer_buf() { 1) + 16.820 us | usb_stor_msg_common(); ------------------------------------------ 0) dd-388 => <idle>-0 ------------------------------------------ 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.515 us | usb_hcd_is_primary_hcd(); 0) 0.360 us | xhci_get_virt_ep(); 0) 0.465 us | xhci_dma_to_transfer_ring(); 0) 0.310 us | xhci_get_ep_ctx(); 0) 0.305 us | xhci_get_slot_ctx(); 0) 0.315 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.315 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) | xhci_giveback_urb_in_irq.isra.39() { 0) 0.615 us | xhci_urb_free_priv(); 0) 0.380 us | usb_hcd_unlink_urb_from_ep(); 0) 0.730 us | usb_hcd_giveback_urb(); 0) 3.215 us | } 0) 4.675 us | } 0) 1.235 us | xhci_update_erst_dequeue.isra.49(); 0) + 18.110 us | } 0) + 19.190 us | } 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.315 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.325 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 1.130 us | } 0) 2.310 us | } 0) 0.350 us | usb_anchor_suspend_wakeups(); 0) 0.325 us | usb_unanchor_urb(); 0) 1.190 us | usb_stor_blocking_completion(); 0) 0.320 us | usb_anchor_resume_wakeups(); 0) 0.350 us | usb_free_urb(); 0) 7.755 us | } 1) + 18.030 us | } 1) | usb_stor_bulk_srb() { 1) + 15.695 us | usb_stor_bulk_transfer_sglist(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.305 us | usb_hcd_is_primary_hcd(); 0) 0.330 us | xhci_get_virt_ep(); 0) 0.310 us | xhci_dma_to_transfer_ring(); 0) 0.345 us | xhci_get_ep_ctx(); 0) 0.310 us | xhci_get_slot_ctx(); 0) 0.320 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.305 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) | xhci_giveback_urb_in_irq.isra.39() { 0) 0.390 us | xhci_urb_free_priv(); 0) 0.375 us | usb_hcd_unlink_urb_from_ep(); 0) 0.365 us | usb_hcd_giveback_urb(); 0) 2.235 us | } 0) 4.570 us | } 0) 1.200 us | xhci_update_erst_dequeue.isra.49(); 0) + 14.295 us | } 0) + 14.855 us | } 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.315 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.335 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 1.775 us | } 0) 2.970 us | } 0) 0.310 us | usb_anchor_suspend_wakeups(); 0) 0.330 us | usb_unanchor_urb(); 0) 0.310 us | usb_anchor_resume_wakeups(); 0) 0.320 us | usb_free_urb(); 0) 6.965 us | } 1) + 16.385 us | } 1) | usb_stor_bulk_transfer_buf() { 1) 7.535 us | usb_stor_msg_common(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) 0.335 us | xhci_get_virt_ep(); 0) 0.350 us | xhci_dma_to_transfer_ring(); 0) 0.290 us | xhci_get_ep_ctx(); 0) 0.305 us | xhci_get_slot_ctx(); 0) 0.300 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.310 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) | xhci_giveback_urb_in_irq.isra.39() { 0) 0.390 us | xhci_urb_free_priv(); 0) 0.385 us | usb_hcd_unlink_urb_from_ep(); 0) 0.365 us | usb_hcd_giveback_urb(); 0) 2.255 us | } 0) 3.440 us | } 0) 1.205 us | xhci_update_erst_dequeue.isra.49(); 0) + 12.905 us | } 0) + 13.475 us | } 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.300 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.310 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 0.905 us | } 0) 2.050 us | } 0) 0.315 us | usb_anchor_suspend_wakeups(); 0) 0.325 us | usb_unanchor_urb(); 0) 0.900 us | usb_stor_blocking_completion(); 0) 0.310 us | usb_anchor_resume_wakeups(); 0) 0.320 us | usb_free_urb(); 0) 6.245 us | } 1) 8.200 us | } 1) + 45.385 us | } 1) + 47.035 us | } 1) + 49.105 us | } 1) | scsi_done_direct() { 1) | scsi_done_internal() { 1) | scsi_complete() { 1) | scsi_decide_disposition() { 1) 0.590 us | scsi_handle_queue_ramp_up(); 1) 1.695 us | } 1) | scsi_finish_command() { 1) 0.690 us | scsi_device_unbusy(); 1) 0.385 us | sd_done(); 1) + 17.585 us | scsi_io_completion(); 1) + 20.340 us | } 1) + 23.320 us | } 1) + 24.155 us | } 1) + 24.980 us | } ------------------------------------------ 0) <idle>-0 => dd-388 ------------------------------------------ 0) | sd_release() { 0) 0.400 us | scsi_device_put(); 0) 1.070 us | }
移除SCSI缓存 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 cd /sys/kernel/debug/tracing echo nop > current_tracer echo > trace echo > set_ftrace_filter echo > set_graph_function echo > set_ftrace_notrace echo function_graph > current_tracer cat <<EOF > set_ftrace_filter xhci_* usb_* *dwc3* hcd_* scsi_* sd_* submit_bio blk_mq_submit_bio EOF cat <<EOF > set_ftrace_notrace _dev_info mutex* _raw_spin* __pm_runtime* xhci_dbg_trace EOF echo 4 > max_graph_depth echo 1 > tracing_on && sleep 1 && echo 1 > /sys/class/block/sda/device/delete && sleep 2 && echo 0 > tracing_on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 7) 3.915 us | scsi_device_get(); 7) | scsi_remove_device() { 7) 0.375 us | scsi_device_set_state(); 7) 0.605 us | scsi_device_cls_release(); 7) | sd_remove() { 7) 0.395 us | scsi_autopm_get_device(); 7) 2.090 us | scsi_mq_exit_request(); 7) 0.740 us | scsi_mq_exit_request(); 7) | sd_shutdown() { 7) 0.480 us | scsi_log_reserve_buffer(); 7) + 17.455 us | sd_sync_cache(); 5) | usb_stor_transparent_scsi_command() { 5) | usb_stor_invoke_transport() { 5) | usb_stor_Bulk_transport() { 5) + 17.935 us | usb_stor_bulk_transfer_buf(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.490 us | usb_hcd_is_primary_hcd(); 0) 0.470 us | xhci_get_virt_ep(); 0) 0.635 us | xhci_dma_to_transfer_ring(); 0) 0.510 us | xhci_get_ep_ctx(); 0) 0.370 us | xhci_get_slot_ctx(); 0) 0.370 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.370 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) 2.180 us | xhci_giveback_urb_in_irq.isra.39(); 0) 4.140 us | } 0) 1.285 us | xhci_update_erst_dequeue.isra.49(); 0) + 18.805 us | } 0) + 22.445 us | } 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.380 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.320 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 1.270 us | } 0) 2.760 us | } 0) 0.320 us | usb_anchor_suspend_wakeups(); 0) 0.335 us | usb_unanchor_urb(); 0) 2.190 us | usb_stor_blocking_completion(); 0) 0.515 us | usb_anchor_resume_wakeups(); 0) 0.360 us | usb_free_urb(); 0) 9.945 us | } 5) 8.350 us | usb_stor_bulk_transfer_buf(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) 0.325 us | xhci_get_virt_ep(); 0) 0.450 us | xhci_dma_to_transfer_ring(); 0) 0.310 us | xhci_get_ep_ctx(); 0) 0.375 us | xhci_get_slot_ctx(); 0) 0.365 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.310 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) 1.230 us | xhci_giveback_urb_in_irq.isra.39(); 0) 2.510 us | } 0) 1.205 us | xhci_update_erst_dequeue.isra.49(); 0) + 12.520 us | } 0) + 13.125 us | } 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.310 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.325 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 1.015 us | } 0) 2.175 us | } 0) 0.460 us | usb_anchor_suspend_wakeups(); 0) 0.340 us | usb_unanchor_urb(); 0) 1.450 us | usb_stor_blocking_completion(); 0) 0.315 us | usb_anchor_resume_wakeups(); 0) 0.335 us | usb_free_urb(); 0) 7.260 us | } 5) + 28.960 us | } 5) + 30.405 us | } 5) + 33.860 us | } 5) | scsi_done_direct() { 5) | scsi_done_internal() { 5) | scsi_complete() { 5) 1.255 us | scsi_decide_disposition(); 5) 5.880 us | scsi_finish_command(); 5) 8.215 us | } 5) 9.020 us | } 5) 9.825 us | } 7) # 5867.955 us | } 7) | scsi_disk_free_disk() { 7) 1.295 us | scsi_disk_release(); 7) 2.825 us | } 7) # 6257.110 us | } 7) 0.840 us | scsi_bus_uevent(); 7) 0.525 us | scsi_bus_uevent(); 7) 0.360 us | scsi_device_set_state(); 7) 0.570 us | scsi_mq_exit_request(); 7) | scsi_target_reap() { 7) 0.355 us | scsi_bus_uevent(); 7) | scsi_target_destroy() { 7) 0.325 us | scsi_is_host_device(); 7) 1.350 us | } 7) + 20.695 us | } 7) # 6424.300 us | } 7) | scsi_device_put() { 7) | scsi_device_dev_release() { 7) 0.565 us | scsi_target_dev_release(); 7) 4.260 us | } 7) 5.275 us | } ------------------------------------------ 7) sh-87 => kworker-483 ------------------------------------------ 7) | scsi_runtime_idle() { 7) 0.480 us | scsi_is_sdev_device(); 7) 2.115 us | } 7) | scsi_runtime_suspend() { 7) 0.455 us | scsi_is_sdev_device(); 7) 1.480 us | }
安全弹出 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 cd /sys/kernel/debug/tracing echo nop > current_tracer echo > trace echo > set_ftrace_filter echo > set_graph_function echo > set_ftrace_notrace echo function_graph > current_tracer cat <<EOF > set_ftrace_filter xhci_* usb_* *dwc3* hcd_* scsi_* sd_* submit_bio blk_mq_submit_bio EOF cat <<EOF > set_ftrace_notrace _dev_info mutex* _raw_spin* __pm_runtime* xhci_dbg_trace EOF echo 4 > max_graph_depth echo 1 > tracing_on && sleep 1 && echo 1 > /sys/bus/usb/devices/2-1/remove && sleep 2 && echo 0 > tracing_on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 7) | usb_set_configuration() { 7) 1.125 us | usb_autoresume_device(); 7) | usb_disable_device() { 7) + 32.590 us | usb_remove_ep_devs(); 7) + 11.585 us | usb_remove_ep_devs(); 7) | usb_bus_notify() { 7) 1.725 us | usb_remove_sysfs_intf_files(); 7) 2.560 us | } 7) 0.385 us | usb_bus_notify(); 7) | usb_unbind_interface() { 7) 0.360 us | usb_autoresume_device(); 7) ! 117.190 us | usb_stor_disconnect(); 7) 0.850 us | usb_enable_interface(); 7) ! 122.040 us | } 7) 0.550 us | usb_bus_notify(); 7) 1.740 us | usb_uevent(); 7) 2.060 us | usb_if_uevent(); 7) 0.395 us | usb_bus_notify(); 7) 0.915 us | usb_uevent(); 7) 1.405 us | usb_if_uevent(); 7) | usb_release_interface() { 7) 0.355 us | usb_put_dev(); 7) 1.500 us | } 7) 0.335 us | usb_disable_usb2_hardware_lpm(); 7) | usb_unlocked_disable_lpm() { 7) 0.345 us | usb_disable_lpm(); 7) 1.215 us | } 7) 1.180 us | usb_disable_ltm(); 7) 5.390 us | usb_set_device_state(); 7) | usb_disable_device_endpoints() { 7) 0.365 us | usb_disable_endpoint(); 7) 0.745 us | usb_disable_endpoint(); 7) 0.510 us | usb_disable_endpoint(); 7) 0.430 us | usb_disable_endpoint(); 7) 0.345 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.335 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.330 us | usb_disable_endpoint(); 7) 0.360 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) + 63.110 us | usb_hcd_alloc_bandwidth(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.540 us | usb_hcd_is_primary_hcd(); 0) 1.275 us | xhci_update_erst_dequeue.isra.49(); 0) + 10.790 us | } 0) + 13.745 us | } 7) 0.345 us | usb_disable_endpoint(); 7) 1.590 us | usb_disable_endpoint(); 7) 1.070 us | usb_disable_endpoint(); 7) 0.330 us | usb_disable_endpoint(); 7) 0.335 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.325 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.320 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) 0.315 us | usb_disable_endpoint(); 7) ! 104.795 us | } 7) ! 334.605 us | } 7) | usb_hcd_alloc_bandwidth() { 7) | xhci_check_bandwidth() { 7) 0.440 us | xhci_check_args(); 7) 0.305 us | usb_hcd_is_primary_hcd(); 7) 0.440 us | xhci_alloc_command(); 7) 0.330 us | xhci_get_input_control_ctx(); 7) 3.215 us | } 7) 3.895 us | } 7) | usb_control_msg_send() { 7) | usb_control_msg() { 7) 0.380 us | usb_alloc_urb(); 7) + 12.350 us | usb_start_wait_urb(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.350 us | usb_hcd_is_primary_hcd(); 0) 0.370 us | xhci_get_virt_ep(); 0) 0.545 us | xhci_dma_to_transfer_ring(); 0) 0.375 us | xhci_get_ep_ctx(); 0) 0.355 us | xhci_get_ep_ctx(); 0) 0.360 us | xhci_get_ep_ctx(); 0) | xhci_td_cleanup() { 0) 0.480 us | xhci_unmap_td_bounce_buffer.isra.38(); 0) 2.130 us | xhci_giveback_urb_in_irq.isra.39(); 0) 4.045 us | } 0) 1.265 us | xhci_update_erst_dequeue.isra.49(); 0) + 18.445 us | } 0) + 19.115 us | } 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.360 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.370 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 1.395 us | } 0) 2.980 us | } 0) 0.365 us | usb_anchor_suspend_wakeups(); 0) 0.375 us | usb_unanchor_urb(); 0) 1.585 us | usb_api_blocking_completion(); 0) 0.465 us | usb_anchor_resume_wakeups(); 0) 0.385 us | usb_free_urb(); 0) 9.690 us | } 7) + 14.000 us | } 7) + 15.150 us | } 7) 1.735 us | usb_set_device_state(); 7) 0.460 us | usb_autosuspend_device(); 7) ! 363.760 us | } 7) | usb_remove_device() { 7) 1.175 us | usb_autopm_get_interface(); 7) | usb_control_msg() { 7) 0.350 us | usb_alloc_urb(); 7) | usb_start_wait_urb() { 7) + 17.530 us | usb_submit_urb(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.360 us | usb_hcd_is_primary_hcd(); 0) 0.365 us | xhci_get_virt_ep(); 0) 0.350 us | xhci_dma_to_transfer_ring(); 0) 0.350 us | xhci_get_ep_ctx(); 0) 1.245 us | xhci_update_erst_dequeue.isra.49(); 0) + 12.315 us | } 0) + 13.015 us | } ------------------------------------------ 7) sh-87 => ksoftir-51 ------------------------------------------ 7) | usb_giveback_urb_bh() { 7) | xhci_unmap_urb_for_dma() { 7) 0.335 us | usb_hcd_is_primary_hcd(); 7) | usb_hcd_unmap_urb_for_dma() { 7) 0.315 us | usb_hcd_unmap_urb_setup_for_dma(); 7) 1.060 us | } 7) 2.410 us | } 7) 0.320 us | usb_anchor_suspend_wakeups(); 7) 0.330 us | usb_unanchor_urb(); 7) 1.700 us | usb_api_blocking_completion(); 7) 0.310 us | usb_anchor_resume_wakeups(); 7) 0.340 us | usb_free_urb(); 7) 9.195 us | } 1) 3.045 us | usb_free_urb(); 1) + 28.365 us | } /* usb_start_wait_urb */ 1) + 30.355 us | } /* usb_control_msg */ 1) 8.410 us | usb_set_device_state(); 1) 0.645 us | usb_autopm_get_interface_no_resume(); 1) 1.005 us | usb_autopm_put_interface(); 1) + 48.090 us | } /* usb_remove_device */ ------------------------------------------ 1) sh-87 => kworker-66 ------------------------------------------ 1) 1.095 us | usb_autopm_get_interface(); 1) | usb_control_msg() { 1) 0.755 us | usb_alloc_urb(); 1) | usb_start_wait_urb() { 1) | usb_submit_urb() { 1) 7.675 us | usb_hcd_submit_urb(); 1) 9.015 us | } ------------------------------------------ 1) kworker-66 => ksoftir-21 ------------------------------------------ 1) | usb_giveback_urb_bh() { 1) | xhci_unmap_urb_for_dma() { 1) 0.305 us | usb_hcd_is_primary_hcd(); 1) | usb_hcd_unmap_urb_for_dma() { 1) 0.320 us | usb_hcd_unmap_urb_setup_for_dma(); 1) 0.970 us | } 1) 2.145 us | } 1) 0.315 us | usb_anchor_suspend_wakeups(); 1) 0.340 us | usb_unanchor_urb(); 1) 1.075 us | usb_api_blocking_completion(); 1) 0.315 us | usb_anchor_resume_wakeups(); 1) 0.360 us | usb_free_urb(); 1) 7.420 us | } ------------------------------------------ 1) ksoftir-21 => kworker-66 ------------------------------------------ 1) 0.640 us | usb_free_urb(); 1) + 12.810 us | } /* usb_start_wait_urb */ 1) + 14.965 us | } /* usb_control_msg */ 1) | usb_disconnect() { 1) 0.360 us | usb_set_device_state(); 1) | usb_disable_device() { 1) | usb_disable_device_endpoints() { 1) 0.635 us | usb_disable_endpoint(); 1) 0.510 us | usb_disable_endpoint(); 1) 0.340 us | usb_disable_endpoint(); 1) 0.335 us | usb_disable_endpoint(); 1) 0.445 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.330 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.330 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.330 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.330 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.345 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 2.615 us | usb_hcd_alloc_bandwidth(); 1) 1.160 us | usb_disable_endpoint(); 1) 0.895 us | usb_disable_endpoint(); 1) 0.335 us | usb_disable_endpoint(); 1) 0.350 us | usb_disable_endpoint(); 1) 0.330 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.340 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.325 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) 0.320 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) 0.315 us | usb_disable_endpoint(); 1) 0.310 us | usb_disable_endpoint(); 1) + 45.805 us | } 1) + 46.820 us | } 1) 0.325 us | usb_hcd_synchronize_unlinks(); 1) + 25.905 us | usb_remove_ep_devs(); 1) | usb_bus_notify() { 1) 8.735 us | usb_remove_sysfs_dev_files(); 1) 9.580 us | } 1) 2.035 us | usb_devnode(); 1) 0.350 us | usb_bus_notify(); 1) | usb_unbind_device() { 1) | usb_generic_driver_disconnect() { 1) 0.975 us | usb_notify_remove_device(); 1) 1.765 us | } 1) 2.590 us | } 1) 0.320 us | usb_bus_notify(); 1) 0.935 us | usb_devnode(); 1) 1.100 us | usb_uevent(); 1) 0.575 us | usb_dev_uevent(); 1) 0.345 us | usb_bus_notify(); 1) 0.765 us | usb_devnode(); 1) 0.765 us | usb_uevent(); 1) 0.520 us | usb_dev_uevent(); 1) | xhci_free_dev() { 1) 0.340 us | usb_hcd_is_primary_hcd(); 1) | xhci_check_args() { 1) 0.310 us | usb_hcd_is_primary_hcd(); 1) 0.925 us | } 1) 0.365 us | xhci_get_slot_ctx(); 1) | xhci_disable_slot() { 1) 0.425 us | xhci_alloc_command(); 1) + 31.240 us | xhci_debugfs_remove_slot(); 1) 2.975 us | xhci_queue_slot_control(); 1) 1.535 us | xhci_ring_cmd_db(); 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.360 us | usb_hcd_is_primary_hcd(); 0) 0.335 us | xhci_get_slot_ctx(); 0) 1.220 us | xhci_update_erst_dequeue.isra.49(); 0) 8.060 us | } 1) 0.515 us | xhci_free_command(); 0) 8.900 us | } 1) + 41.705 us | } 1) | xhci_free_virt_device() { 1) 1.855 us | xhci_ring_free.part.35(); 1) 0.770 us | xhci_free_tt_info.isra.28(); 1) 0.350 us | xhci_update_tt_active_eps(); 1) 0.780 us | xhci_free_container_ctx.part.36(); 1) 0.615 us | xhci_free_container_ctx.part.36(); 1) 8.320 us | } 1) + 54.960 us | } 1) | usb_release_dev() { 1) | usb_destroy_configuration() { 1) 0.830 us | usb_release_interface_cache(); 1) 2.220 us | } 1) 0.780 us | usb_release_bos_descriptor(); 1) 0.560 us | usb_put_hcd(); 1) 5.750 us | } 1) # 5907.950 us | } 1) | usb_control_msg() { 1) 0.410 us | usb_alloc_urb(); 1) | usb_start_wait_urb() { 1) | usb_submit_urb() { 1) + 10.590 us | usb_hcd_submit_urb(); 1) + 11.745 us | } ------------------------------------------ 1) kworker-66 => ksoftir-21 ------------------------------------------ 1) | usb_giveback_urb_bh() { 1) | xhci_unmap_urb_for_dma() { 1) 0.305 us | usb_hcd_is_primary_hcd(); 1) | usb_hcd_unmap_urb_for_dma() { 1) 0.325 us | usb_hcd_unmap_urb_setup_for_dma(); 1) 0.895 us | } 1) 2.115 us | } 1) 0.310 us | usb_anchor_suspend_wakeups(); 1) 0.320 us | usb_unanchor_urb(); 1) 0.875 us | usb_api_blocking_completion(); 1) 0.350 us | usb_anchor_resume_wakeups(); 1) 0.310 us | usb_free_urb(); 1) 6.555 us | } ------------------------------------------ 1) ksoftir-21 => kworker-66 ------------------------------------------ 1) 0.440 us | usb_free_urb(); 1) + 14.850 us | } /* usb_start_wait_urb */ 1) + 16.245 us | } /* usb_control_msg */ 1) 0.500 us | usb_autopm_put_interface_no_suspend(); 1) 2.445 us | usb_autopm_put_interface(); 1) | usb_runtime_idle() { 1) | usb_runtime_suspend() { 1) | usb_suspend_both() { 1) | usb_control_msg() { ------------------------------------------ 1) kworker-66 => ksoftir-21 ------------------------------------------ 1) | usb_giveback_urb_bh() { 1) | xhci_unmap_urb_for_dma() { 1) 0.330 us | usb_hcd_is_primary_hcd(); 1) | usb_hcd_unmap_urb_for_dma() { 1) 0.315 us | usb_hcd_unmap_urb_setup_for_dma(); 1) 0.910 us | } 1) 2.115 us | } 1) 0.340 us | usb_anchor_suspend_wakeups(); 1) 0.325 us | usb_unanchor_urb(); 1) 0.790 us | usb_api_blocking_completion(); 1) 0.305 us | usb_anchor_resume_wakeups(); 1) 0.335 us | usb_free_urb(); 1) 6.255 us | } ------------------------------------------ 1) ksoftir-21 => kworker-66 ------------------------------------------ 1) 7.405 us | } /* usb_control_msg */ 1) | usb_kill_urb() { ------------------------------------------ 1) kworker-66 => ksoftir-21 ------------------------------------------ 1) | usb_giveback_urb_bh() { 1) | xhci_unmap_urb_for_dma() { 1) 0.320 us | usb_hcd_is_primary_hcd(); 1) | usb_hcd_unmap_urb_for_dma() { 1) 0.460 us | usb_hcd_unmap_urb_setup_for_dma(); 1) 1.025 us | } 1) 2.335 us | } 1) 0.325 us | usb_anchor_suspend_wakeups(); 1) 0.320 us | usb_unanchor_urb(); 1) 0.310 us | usb_anchor_resume_wakeups(); 1) 0.325 us | usb_free_urb(); 1) 6.305 us | } ------------------------------------------ 1) ksoftir-21 => kworker-66 ------------------------------------------ 1) 4.130 us | } /* usb_kill_urb */ 1) 4.350 us | usb_generic_driver_suspend(); 1) 0.380 us | usb_hcd_flush_endpoint(); 1) 0.345 us | usb_hcd_flush_endpoint(); 1) 0.335 us | usb_hcd_flush_endpoint(); 1) 0.495 us | usb_hcd_flush_endpoint(); 1) 0.315 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.300 us | usb_hcd_flush_endpoint(); 1) 0.300 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.315 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.315 us | usb_hcd_flush_endpoint(); 1) 0.315 us | usb_hcd_flush_endpoint(); 1) 0.315 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.300 us | usb_hcd_flush_endpoint(); 1) 0.435 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.320 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.315 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.310 us | usb_hcd_flush_endpoint(); 1) 0.305 us | usb_hcd_flush_endpoint(); 1) 0.315 us | usb_hcd_flush_endpoint(); 1) + 38.510 us | } /* usb_suspend_both */ 1) + 39.405 us | } /* usb_runtime_suspend */ 1) + 41.965 us | } /* usb_runtime_idle */
设备拔出 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 cd /sys/kernel/debug/tracing echo nop > current_tracer echo > trace echo > set_ftrace_filter echo > set_graph_function echo > set_ftrace_notrace echo function_graph > current_tracer cat <<EOF > set_ftrace_filter xhci_* usb_* *dwc3* hcd_* scsi_* sd_* submit_bio blk_mq_submit_bio EOF cat <<EOF > set_ftrace_notrace _dev_info mutex* _raw_spin* __pm_runtime* xhci_dbg_trace EOF echo 4 > max_graph_depth echo 1 > tracing_on && sleep 1 && echo <拔出设备> && sleep 2 && echo 0 > tracing_on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 # tracer: function_graph # # CPU DURATION FUNCTION CALLS # | | | | | | | 0) | usb_hcd_irq() { 0) | xhci_irq() { 0) 0.505 us | usb_hcd_is_primary_hcd(); 0) 3.165 us | usb_hcd_resume_root_hub(); 0) | usb_hcd_poll_rh_status() { 0) 1.235 us | xhci_hub_status_data(); 0) 2.610 us | } 0) 1.215 us | xhci_update_erst_dequeue.isra.49(); 0) + 14.140 us | } 0) + 18.070 us | } ------------------------------------------ 0) <idle>-0 => kworker-68 ------------------------------------------ 0) | hcd_resume_work() { 0) | usb_remote_wakeup() { 0) | usb_autoresume_device() { 0) | usb_runtime_resume() { ------------------------------------------ 0) kworker-68 => <idle>-0 ------------------------------------------ 0) | usb_hcd_poll_rh_status() { 0) | xhci_hub_status_data() { 0) 0.355 us | usb_hcd_is_primary_hcd(); 0) 0.340 us | usb_hcd_is_primary_hcd(); 0) 2.100 us | } 0) 3.350 us | } ------------------------------------------ 0) <idle>-0 => ksoftir-15 ------------------------------------------ 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.340 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.325 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 0.960 us | } 0) 2.190 us | } 0) 0.340 us | usb_anchor_suspend_wakeups(); 0) 0.325 us | usb_unanchor_urb(); 0) 1.585 us | usb_api_blocking_completion(); 0) 0.320 us | usb_anchor_resume_wakeups(); 0) 0.330 us | usb_free_urb(); 0) 7.780 us | } 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.330 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.345 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 0.930 us | } 0) 2.125 us | } 0) 0.325 us | usb_anchor_suspend_wakeups(); 0) 0.325 us | usb_unanchor_urb(); 0) 0.830 us | usb_api_blocking_completion(); 0) 0.310 us | usb_anchor_resume_wakeups(); 0) 0.320 us | usb_free_urb(); 0) 6.285 us | } ------------------------------------------ 0) ksoftir-15 => kworker-68 ------------------------------------------ 0) + 33.490 us | } /* usb_runtime_resume */ 0) + 36.495 us | } /* usb_autoresume_device */ 0) | usb_autosuspend_device() { 0) 0.780 us | usb_runtime_suspend(); 0) 2.205 us | } 0) + 39.860 us | } /* usb_remote_wakeup */ 0) + 40.815 us | } /* hcd_resume_work */ 0) 0.760 us | usb_autopm_get_interface(); 0) | usb_control_msg() { 0) 0.370 us | usb_alloc_urb(); 0) | usb_start_wait_urb() { 0) | usb_submit_urb() { 0) 3.340 us | usb_hcd_submit_urb(); 0) 4.005 us | } ------------------------------------------ 0) kworker-68 => ksoftir-15 ------------------------------------------ 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.315 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.340 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 0.940 us | } 0) 2.105 us | } 0) 0.325 us | usb_anchor_suspend_wakeups(); 0) 0.335 us | usb_unanchor_urb(); 0) 0.850 us | usb_api_blocking_completion(); 0) 0.305 us | usb_anchor_resume_wakeups(); 0) 0.325 us | usb_free_urb(); 0) 6.335 us | } ------------------------------------------ 0) ksoftir-15 => kworker-68 ------------------------------------------ 0) 0.395 us | usb_free_urb(); 0) 6.290 us | } /* usb_start_wait_urb */ 0) 7.770 us | } /* usb_control_msg */ 0) 0.390 us | usb_autopm_put_interface_no_suspend(); 0) 1.145 us | usb_autopm_put_interface(); 0) | usb_runtime_idle() { 0) | usb_runtime_suspend() { 0) | usb_suspend_both() { 0) | usb_control_msg() { ------------------------------------------ 0) kworker-68 => ksoftir-15 ------------------------------------------ 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.335 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.325 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 1.235 us | } 0) 2.440 us | } 0) 0.330 us | usb_anchor_suspend_wakeups(); 0) 0.325 us | usb_unanchor_urb(); 0) 0.755 us | usb_api_blocking_completion(); 0) 0.305 us | usb_anchor_resume_wakeups(); 0) 0.345 us | usb_free_urb(); 0) 6.690 us | } ------------------------------------------ 0) ksoftir-15 => kworker-68 ------------------------------------------ 0) 6.230 us | } /* usb_control_msg */ 0) | usb_kill_urb() { ------------------------------------------ 0) kworker-68 => ksoftir-15 ------------------------------------------ 0) | usb_giveback_urb_bh() { 0) | xhci_unmap_urb_for_dma() { 0) 0.345 us | usb_hcd_is_primary_hcd(); 0) | usb_hcd_unmap_urb_for_dma() { 0) 0.350 us | usb_hcd_unmap_urb_setup_for_dma(); 0) 0.940 us | } 0) 2.155 us | } 0) 0.315 us | usb_anchor_suspend_wakeups(); 0) 0.310 us | usb_unanchor_urb(); 0) 0.325 us | usb_anchor_resume_wakeups(); 0) 0.335 us | usb_free_urb(); 0) 6.060 us | } ------------------------------------------ 0) ksoftir-15 => kworker-68 ------------------------------------------ 0) 3.435 us | } /* usb_kill_urb */ 0) 3.095 us | usb_generic_driver_suspend(); 0) 0.355 us | usb_hcd_flush_endpoint(); 0) 0.345 us | usb_hcd_flush_endpoint(); 0) 0.320 us | usb_hcd_flush_endpoint(); 0) 0.345 us | usb_hcd_flush_endpoint(); 0) 0.320 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.315 us | usb_hcd_flush_endpoint(); 0) 0.300 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.300 us | usb_hcd_flush_endpoint(); 0) 0.320 us | usb_hcd_flush_endpoint(); 0) 0.305 us | usb_hcd_flush_endpoint(); 0) 0.330 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.315 us | usb_hcd_flush_endpoint(); 0) 0.315 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.305 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.315 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.315 us | usb_hcd_flush_endpoint(); 0) 0.305 us | usb_hcd_flush_endpoint(); 0) 0.315 us | usb_hcd_flush_endpoint(); 0) 0.945 us | usb_hcd_flush_endpoint(); 0) 0.315 us | usb_hcd_flush_endpoint(); 0) 0.310 us | usb_hcd_flush_endpoint(); 0) 0.360 us | usb_hcd_flush_endpoint(); 0) + 35.365 us | } /* usb_suspend_both */ 0) + 35.990 us | } /* usb_runtime_suspend */ 0) + 37.170 us | } /* usb_runtime_idle */ ------------------------------------------ 0) kworker-68 => <idle>-0 ------------------------------------------ 0) | usb_hcd_poll_rh_status() { 0) | xhci_hub_status_data() { 0) 0.335 us | usb_hcd_is_primary_hcd(); 0) 0.315 us | usb_hcd_is_primary_hcd(); 0) 1.995 us | } 0) 2.610 us | }
异步:suspend机制 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 echo device > /sys/class/usb_role/22100000.dwc3-role-switch/role cd /sys/kernel/debug/tracing echo 0 > tracing_on echo > trace echo function_graph > current_tracer echo > set_graph_function echo xhci_* > set_ftrace_filter echo usb_* >> set_ftrace_filter echo hub_* >> set_ftrace_filter echo *dwc3* >> set_ftrace_filter echo hcd_* >> set_ftrace_filter echo uas_* >> set_ftrace_filter echo scsi_* >> set_ftrace_filter echo sd_* >> set_ftrace_filter echo _dev_info > set_ftrace_notrace echo mutex* >> set_ftrace_notrace echo _raw_spin* >> set_ftrace_notrace echo __pm_runtime* >> set_ftrace_notrace echo xhci_dbg_trace >> set_ftrace_notrace echo nosleep-time > trace_options echo nograph-time > trace_options echo noirq-info > trace_options echo noannotate > trace_options echo 20 > max_graph_depth sleep 3 && echo 1 > tracing_on && echo host > /sys/class/usb_role/22100000.dwc3-role-switch/role && sleep 3 && echo 0 > tracing_on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 3) | () { 3) 1.050 us | usb_autopm_get_interface(); 3) 0.355 us | usb_autopm_put_interface_no_suspend(); 3) 1.015 us | usb_autopm_put_interface(); 3) 3.665 us | } 3) | usb_runtime_idle() { 3) | usb_runtime_suspend() { 3) | usb_suspend_both() { 3) | hub_suspend() { 3) | hub_quiesce() { 3) | usb_kill_urb() { 3) | usb_kill_urb.part.15() { 3) | usb_hcd_unlink_urb() { 3) 0.360 us | usb_get_dev(); 3) 0.340 us | usb_hcd_unlink_urb_from_ep(); 3) 0.935 us | usb_hcd_giveback_urb(); 3) 0.375 us | usb_put_dev(); 3) 4.100 us | } 3) 4.720 us | } 3) 5.300 us | } 3) 6.190 us | } 3) 6.865 us | } /* hub_suspend */ 3) | usb_generic_driver_suspend() { 3) | hcd_bus_suspend() { 3) | xhci_bus_suspend() { 3) 0.345 us | usb_hcd_is_primary_hcd(); 3) 0.315 us | usb_hcd_is_primary_hcd(); 3) 2.150 us | } 3) 0.360 us | usb_set_device_state(); 3) | xhci_hub_status_data() { 3) 0.320 us | usb_hcd_is_primary_hcd(); 3) 0.320 us | usb_hcd_is_primary_hcd(); 3) 2.055 us | } 3) | hcd_bus_resume() { 3) | xhci_bus_resume() { 3) 0.310 us | usb_hcd_is_primary_hcd(); 3) 0.325 us | usb_hcd_is_primary_hcd(); 3) 7.445 us | } 3) 0.310 us | usb_phy_roothub_calibrate(); 3) 0.365 us | usb_set_device_state(); 3) 0.325 us | usb_hub_find_child(); 3) 0.325 us | usb_hub_find_child(); 3) + 10.635 us | } 3) + 17.080 us | } 3) + 17.690 us | } 3) | usb_resume_interface.isra.13() { 3) | hub_resume() { 3) | hub_activate() { 3) | hub_ext_port_status() { 3) | usb_control_msg() { 3) 0.385 us | usb_alloc_urb(); 3) | usb_start_wait_urb() { 3) | usb_submit_urb() { 3) | usb_hcd_submit_urb() { 3) | usb_get_urb() { 3) 0.325 us | usb_get_urb.part.12(); 3) 0.895 us | } 3) 0.340 us | usb_hcd_link_urb_to_ep(); 3) | xhci_hub_control() { 3) 0.310 us | usb_hcd_is_primary_hcd(); 3) 0.305 us | usb_hcd_is_primary_hcd(); 3) | xhci_get_port_status.isra.17() { 3) 0.310 us | usb_hcd_is_primary_hcd(); 3) 0.915 us | } 3) 3.110 us | } 3) 0.320 us | usb_hcd_unlink_urb_from_ep(); 3) 1.430 us | usb_hcd_giveback_urb(); 3) 8.535 us | } 3) 9.130 us | } 3) 0.395 us | usb_free_urb(); 3) + 10.475 us | } 3) + 11.800 us | } 3) + 12.420 us | } 3) 0.310 us | hub_port_warm_reset_required(); 3) | usb_submit_urb() { 3) | usb_hcd_submit_urb() { 3) | usb_get_urb() { 3) 0.320 us | usb_get_urb.part.12(); 3) 1.035 us | } 3) 0.325 us | usb_hcd_link_urb_to_ep(); 3) 2.545 us | } 3) 3.175 us | } 3) 0.415 us | usb_autopm_get_interface_no_resume(); 3) + 18.010 us | } 3) | xhci_get_resuming_ports() { 3) 0.315 us | usb_hcd_is_primary_hcd(); 3) 0.920 us | } 3) + 19.835 us | } 3) + 20.420 us | } /* usb_resume_interface.isra.13 */ 3) + 46.230 us | } /* usb_suspend_both */ 3) + 46.910 us | } /* usb_runtime_suspend */ 3) + 48.095 us | } /* usb_runtime_idle */
数据结构 1 2 3 4 5 6 7 8 9 10 11 // linux-6.6.64/drivers/usb/host/xhci.h struct xhci_hcd { struct usb_hcd *main_hcd; struct usb_hcd *shared_hcd; /* glue to PCI and HCD framework */ struct xhci_cap_regs __iomem *cap_regs; struct xhci_op_regs __iomem *op_regs; struct xhci_run_regs __iomem *run_regs; struct xhci_doorbell_array __iomem *dba; ... };
主控注册 汇总流程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 // echo host > /sys/class/usb_role/22100000.dwc3-role-switch/role role_store usb_role_switch_set_role(sw, ret) sw->set(sw, role) // dwc3_usb_role_switch_set dwc3_set_mode(dwc, mode) // &dwc->drd_work工作队列入队,触发__dwc3_set_mode // 异步通过&dwc->drd_work触发 __dwc3_set_mode dwc3_host_init(dwc) platform_device_add(xhci) // 通过platform框架,触发xhci_generic_plat_probe // usb_generic_xhci_driver.probe xhci_generic_plat_probe xhci_plat_probe(pdev, sysdev, priv_match) usb_disabled usb_hcd_is_primary_hcd usb_hcd_is_primary_hcd /* 添加第1个控制器,对应u2口,作为primary */ usb_add_hcd(hcd, irq, IRQF_SHARED) // 打印 xHCI Host Controller usb_register_bus(&hcd->self) // 打印 new USB bus registered, assigned bus number 1 xhci_plat_setup usb_hcd_is_primary_hcd xhci_gen_setup usb_hcd_is_primary_hcd usb_hcd_is_primary_hcd xhci_halt // 打印 // Halt the HC // 打印 Resetting HCD xhci_reset // 打印 Wait for controller to be ready for doorbell rings // 打印 Reset complete // 打印 Enabling 64-bit DMA addresses. // 打印 Calling HCD init xhci_init // 打印 xhci_init // 打印 xHCI doesn't need link TRB QUIRK xhci_mem_init // 打印 Supported page size register = 0x1 // 打印 Supported page size of 8K // 打印 HCD page size set to 4K // 打印 // xHC can handle at most 64 device slots. // 打印 // Setting Max device slots reg = 0x40. // 打印 // Device context base array address = 0x0x000000081224b000 (DMA), (____ptrval____) (virt) // 打印 Allocated command ring at (____ptrval____) // 打印 First segment DMA is 0x0x000000081224d000 // 打印 // Setting command ring address to 0x000000081224d001 // 打印 // Doorbell array is located at offset 0x2000 from cap regs base addr // 打印 Allocating primary event ring xhci_ring_alloc xhci_ring_alloc xhci_alloc_erst *xhci_add_interrupter(xhci, xhci->interrupter, 0) *xhci_set_hc_event_deq(xhci, ir) xhci_trb_virt_to_dma(ir->event_ring->deq_seg, // 打印 // Write event ring dequeue pointer, preserving EHB bit *scratchpad_alloc(xhci, flags) // 打印 Allocating 2 scratchpad buffers *xhci_setup_port_arrays(xhci, flags) *xhci_add_in_port(xhci, num_ports, base + offset, cap_count) // 打印 Ext Cap (____ptrval____), port offset = 1, count = 1, revision = 0x2 // 打印 xHCI 1.0: support USB2 hardware lpm *xhci_add_in_port(xhci, num_ports, base + offset, cap_count) // 打印 Ext Cap (____ptrval____), port offset = 2, count = 1, revision = 0x3 // 打印 PSIV:4 PSIE:3 PLT:0 PFD:1 LP:0 PSIM:5 // 打印 PSIV:5 PSIE:3 PLT:0 PFD:1 LP:1 PSIM:10 // 打印 Found 1 USB 2.0 ports and 1 USB 3.0 ports. xhci_create_rhub_port_array xhci_create_rhub_port_array // 打印 Finished xhci_init // 打印 Called HCD init // 打印 hcc params 0x0118ffcd hci version 0x120 quirks 0x0000008000000010 // 打印 supports USB remote wakeup usb_hcd_request_irqs // 打印 irq 18, io mem 0x22100000 usb_phy_roothub_calibrate xhci_plat_start usb_hcd_is_primary_hcd dwc3_xhci_plat_start usb_hcd_is_primary_hcd xhci_run // 打印 xhci_run // 打印 ERST deq = 64'h812c21000 // 打印 // Set the interrupt modulation register // 打印 Finished xhci_run for main hcd usb_hcd_is_primary_hcd usb_hcd_is_primary_hcd xhci_create_dbc_dev xhci_debugfs_init /* 添加第2个控制器,对应u3口,hcd为primary */ usb_add_hcd(xhci->shared_hcd, irq, IRQF_SHARED) // 打印 xHCI Host Controller hcd_buffer_create usb_notify_add_bus usb_alloc_dev usb_register_bus(&hcd->self) // 打印 new USB bus registered, assigned bus number 2 xhci_plat_setup usb_hcd_is_primary_hcd xhci_gen_setup usb_hcd_is_primary_hcd usb_hcd_is_primary_hcd xhci_hcd_init_usb3_data // 打印 Host supports USB 3.%x %sSuperSpeed // 打印 supports USB remote wakeup usb_phy_roothub_calibrate xhci_plat_start usb_hcd_is_primary_hcd dwc3_xhci_plat_start xhci_run usb_hcd_is_primary_hcd usb_hcd_is_primary_hcd xhci_run_finished // 打印 Enable interrupts // 打印 Enable primary interrupter xhci_start(xhci) // 打印 // Turn on HC, cmd = 0x%x. usb_set_device_state(usb_dev, USB_STATE_ADDRESS) usb_get_device_descriptor usb_get_descriptor usb_control_msg usb_new_device (usb_dev) usb_disable_autosuspend usb_get_configuration usb_get_descriptor usb_control_msg usb_get_descriptor usb_control_msg usb_cache_string(udev, udev->descriptor.iProduct) usb_string(udev, index, buf, MAX_USB_STRING_SIZE) usb_get_langid(dev, tbuf) // 打印 default language 0x0409 usb_cache_string(udev, udev->descriptor.iManufacturer) usb_string usb_cache_string(udev, udev->descriptor.iSerialNumber) usb_string usb_detect_interface_quirks usb_detect_static_quirks // 打印 udev 1, busnum 1, minor = 0 usb_devnode usb_devnode usb_probe_device // 打印 usb_probe_device usb_generic_driver_probe usb_choose_configuration(udev) // 打印 configuration #1 chosen from 1 choice usb_set_configuration usb_hcd_alloc_bandwidth xhci_add_endpoint // 打印 xHCI xhci_add_endpoint called for root hub xhci_check_bandwidth // 打印 xHCI xhci_check_bandwidth called for root hub // 打印 adding 1-0:1.0 (config #1, interface 0) device_add(&intf->dev) // 通过device框架,会触发drvwrap.driver.probe (usb_probe_interface) // 打印 usb_probe_interface // 打印 usb_probe_interface - got id driver->probe(intf, id) // hub_driver.probe (hub_probe) // 打印 USB hub found hub_configure(hub, &desc->endpoint[0].desc) // 打印 1 port detected // 打印 standalone hub // 打印 individual port power switching // 打印 individual port over-current protection // 打印 Single TT // 打印 TT requires at most 8 FS bit times (666 ns) // 打印 power on to power good time: 20ms // 打印 local power source is good hub_activate(hub, HUB_INIT) hub_power_on(hub, false) // 打印 enabling power on all ports set_port_feature(hub->hdev, port1, USB_PORT_FEAT_POWER) // 长调用链,细节见usb_control_msg;打印 set port power 1-1 ON, portsc: 0x2a0 usb_notify_add_device usb_create_ep_devs usb_set_device_state(usb_dev, USB_STATE_ADDRESS) usb_get_device_descriptor usb_get_descriptor usb_get_bos_descriptor usb_get_descriptor usb_get_descriptor usb_device_supports_lpm // 打印 We don't know the algorithms for LPM for this host, disabling LPM. usb_new_device (usb_dev) usb_disable_autosuspend usb_get_configuration usb_get_descriptor usb_get_descriptor usb_parse_configuration(dev, cfgno, usb_parse_interface(ddev, cfgno, config, usb_parse_endpoint(ddev, cfgno, config, inum, asnum, // 打印 skipped 1 descriptor after endpoint usb_cache_string(udev, udev->descriptor.iProduct) usb_string(udev, index, buf, MAX_USB_STRING_SIZE) usb_get_langid(dev, tbuf) // 打印 default language 0x0409 usb_cache_string(udev, udev->descriptor.iManufacturer) usb_string usb_cache_string(udev, udev->descriptor.iSerialNumber) usb_string usb_detect_interface_quirks // 打印 udev 1, busnum 2, minor = 128 usb_probe_device // 打印 usb_probe_device usb_generic_driver_probe usb_choose_configuration(udev) // 打印 configuration #1 chosen from 1 choice usb_set_configuration usb_hcd_alloc_bandwidth xhci_add_endpoint // 打印 xHCI xhci_add_endpoint called for root hub xhci_check_bandwidth // 打印 xHCI xhci_check_bandwidth called for root hub // 打印 adding 2-0:1.0 (config #1, interface 0) device_add(&intf->dev) // 通过device框架,会触发drvwrap.driver.probe (usb_probe_interface) // 打印 usb_probe_interface // 打印 usb_probe_interface - got id driver->probe(intf, id) // hub_driver.probe (hub_probe) // 打印 USB hub found hub_configure(hub, &desc->endpoint[0].desc) // 打印 1 port detected // 打印 standalone hub // 打印 individual port power switching // 打印 individual port over-current protection // 打印 Single TT // 打印 TT requires at most 8 FS bit times (666 ns) // 打印 power on to power good time: 100ms // 打印 local power source is good hub_activate(hub, HUB_INIT) hub_power_on(hub, false) // 打印 enabling power on all ports set_port_feature(hub->hdev, port1, USB_PORT_FEAT_POWER) // 长调用链,细节见usb_control_msg;打印 set port power 2-1 ON, portsc: 0x2a0 usb_bus_notify usb_create_ep_devs usb_set_configuration usb_autoresume_device usb_hcd_alloc_bandwidth usb_enable_interface usb_get_dev usb_control_msg_send usb_control_msg usb_cache_string usb_unlocked_enable_lpm usb_enable_lpm usb_probe_interface usb_autoresume_device usb_enable_autosuspend usb_control_msg usb_get_status usb_control_msg usb_control_msg usb_hub_create_port_device xhci_update_hub_device usb_hub_adjust_deviceremovable usb_control_msg usb_autopm_get_interface_no_resume usb_create_ep_devs usb_autosuspend_device
流程细节 写/sys/class/usb_role/xxx-role-switch/role节点 1 2 3 4 5 6 7 8 9 10 11 // linux-6.6.64/drivers/usb/roles/class.c static ssize_t role_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) usb_role_switch_set_role(sw, ret) sw->set(sw, role) // 通过dwc3_role_switch.set = dwc3_usb_role_switch_set 关联dwc3_usb_role_switch_set函数 // linux-6.6.64/drivers/usb/dwc3/drd.c static int dwc3_usb_role_switch_set(struct usb_role_switch *sw, enum usb_role role) dwc3_set_mode(dwc, mode) queue_work(system_freezable_wq, &dwc->drd_work) // 通过INIT_WORK(&dwc->drd_work, __dwc3_set_mode)关联__dwc3_set_mode函数
probe 1 2 3 4 5 6 7 8 9 usb_generic_xhci_driver.probe (xhci_generic_plat_probe) xhci_plat_probe(pdev, sysdev, priv_match) usb_add_hcd(hcd, irq, IRQF_SHARED) usb_register_bus(&hcd->self) hcd->driver->reset(hcd) // xhci_plat_overrides.reset (xhci_plat_setup) xhci_gen_setup xhci_halt hcd->driver->start(hcd) xhci_hc_driver.start (xhci_plat_start) xhci_run
usb_add_hcd 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 // linux-6.6.64/drivers/usb/core/hcd.c int usb_add_hcd(struct usb_hcd *hcd, unsigned int irqnum, unsigned long irqflags) // 打印 xHCI Host Controller ... usb_register_bus(&hcd->self) hcd->driver->reset(hcd) // xhci_plat_overrides.reset (xhci_plat_setup) xhci_gen_setup xhci_halt // 打印 // Halt the HC ... // 打印 supports USB remote wakeup usb_hcd_request_irqs // 打印 irq %d, %s 0x%08llx hcd->driver->start(hcd) xhci_hc_driver.start (xhci_plat_start) xhci_run // 打印 xhci_run /* 此处,非primary hcd会调用register_root_hub */ register_root_hub(hcd)
usb_register_bus 1 2 3 4 5 6 // linux-6.6.64/drivers/usb/core/hcd.c // 注册控制器到usbcore static int usb_register_bus(struct usb_bus *bus) // 分配总线号 usb_notify_add_bus(bus) // usb_notifier_list增加 USB_BUS_ADD // 打印 new USB bus registered, assigned bus
xhci_plat_setup 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 xhci_plat_overrides.reset (xhci_plat_setup) static int xhci_plat_setup(struct usb_hcd *hcd) xhci_gen_setup /* 此处,非primary hcd会调用xhci_hcd_init_usb3_data函数后,直接返回 */ xhci_hcd_init_usb3_data // 打印 Host supports USB 3.%x %sSuperSpeed xhci_halt // 打印 // Halt the HC // 打印 Resetting HCD xhci_reset // 打印 Wait for controller to be ready for doorbell rings // 打印 Reset complete // 打印 Enabling 64-bit DMA addresses. // 打印 Calling HCD init xhci_init // 打印 xhci_init // 打印 xHCI doesn't need link TRB QUIRK xhci_mem_init // 打印 Supported page size register // 打印 Supported page size of // 打印 HCD page size set to // 打印 // xHC can handle at most // 打印 // Setting Max device slots reg = // 打印 // Device context base array address // 打印 Allocated command ring at // 打印 First segment DMA is // 打印 // Setting command ring address // 打印 // Doorbell array is located at offset // 打印 Allocating primary event ring xhci_add_interrupter xhci_set_hc_event_deq // 打印 // Write event ring dequeue pointer, preserving EHB bit scratchpad_alloc // 打印 Allocating %d scratchpad buffers xhci_setup_port_arrays xhci_add_in_port // 循环添加usb输入端口 // 打印 Ext Cap %p, port offset = %u, count = %u, revision = // 打印 xHCI 1.0: support USB2 hardware lpm // 打印 PSIV:%d PSIE:%d PLT:%d PFD:%d LP:%d PSIM:%d // 打印 Found %u USB 2.0 ports and %u USB 3.0 ports. // 打印 Finished xhci_init // 打印 Called HCD init // 打印 hcc params 0x0118ffcd hci version 0x120 quirks 0x0000008000000010
xhci_run 1 2 3 4 5 6 7 8 9 10 11 // linux-6.6.64/drivers/usb/host/xhci.c int xhci_run(struct usb_hcd *hcd) /* 此处,非primary hcd会调用xhci_run_finished后,直接返回 */ xhci_run_finished(xhci) // 打印 Enable interrupts // 打印 Enable primary interrupter xhci_start(xhci) // 打印 // Turn on HC, cmd = 0x%x. // 打印 xhci_run // 打印 ERST deq = 64'h%0lx // 打印 // Set the interrupt modulation register // 打印 Finished %s for main hcd
register_root_hub 1 2 3 4 5 6 7 8 9 10 11 12 // linux-6.6.64/drivers/usb/core/hcd.c static int register_root_hub(struct usb_hcd *hcd) /* descriptor.bcdUSB满足条件则调用 */ usb_device_supports_lpm(usb_dev) // 打印 We don't know the algorithms for LPM for this host, disabling LPM. usb_new_device(usb_dev) usb_enumerate_device(udev) usb_cache_string(udev, udev->descriptor.xxx) usb_string(udev, index, buf, MAX_USB_STRING_SIZE) usb_get_langid(dev, tbuf) // 打印 default language 0x%04x // 打印 udev %d, busnum %d, minor = %d device_add(&udev->dev) // 通过device框架,会触发drvwrap.driver.probe (usb_probe_device)
usb_probe_device 1 2 3 4 5 6 7 8 9 10 11 12 13 // linux-6.6.64/drivers/usb/core/driver.c static int usb_probe_device(struct device *dev) // 打印 usb_probe_device usb_generic_driver_probe(udev) usb_choose_configuration(udev) // 打印 configuration #%d chosen from %d choice%s usb_set_configuration(udev, c) usb_hcd_alloc_bandwidth(dev, cp, NULL, NULL) hcd->driver->add_endpoint(hcd, udev, &alt->endpoint[j]) // xhci_hc_driver.add_endpoint (xhci_add_endpoint) xhci_check_args(hcd, udev, ep, 1, true, __func__) // 打印 xHCI xhci_add_endpoint called for root hub hcd->driver->check_bandwidth(hcd, udev) // xhci_hc_driver.check_bandwidth (xhci_check_bandwidth) xhci_check_args(hcd, udev, NULL, 0, true, __func__) // 打印 xHCI xhci_check_bandwidth called for root hub // 打印 adding %s (config #%d, interface %d) device_add(&intf->dev) // 通过device框架,会触发drvwrap.driver.probe (usb_probe_interface)
usb_probe_interface 1 2 3 4 5 // linux-6.6.64/drivers/usb/core/driver.c static int usb_probe_interface(struct device *dev) // 打印 usb_probe_interface // 打印 %s - got id driver->probe(intf, id) // hub_driver.probe (hub_probe)
hub_probe 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 // linux-6.6.64/drivers/usb/core/hub.c static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) // 打印 USB hub found hub_configure(hub, &desc->endpoint[0].desc) // 打印 %d port%s detected // 打印 standalone hub // 打印 individual port power switching // 打印 individual port over-current protection // 打印 Single TT // 打印 TT requires at most %d // 打印 power on to power good time: %dms // 打印 local power source is %s hub_activate(hub, HUB_INIT) hub_power_on(hub, false) // 打印 enabling power on all ports set_port_feature(hub->hdev, port1, USB_PORT_FEAT_POWER) usb_control_msg(hdev, usb_sndctrlpipe(hdev, 0), USB_REQ_SET_FEATURE, USB_RT_PORT, feature, port1, NULL, 0, 1000) ... // 长调用链,细节见usb_control_msg;最终调用 xhci_hc_driver.hub_control (xhci_hub_control)
usb_control_msg 1 2 3 4 5 6 7 8 9 10 11 // linux-6.6.64/drivers/usb/core/message.c int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype, __u16 value, __u16 index, void *data, __u16 size, int timeout) usb_internal_control_msg(dev, pipe, dr, data, size, timeout) usb_start_wait_urb(urb, timeout, &length) usb_submit_urb(urb, GFP_NOIO) usb_hcd_submit_urb(urb, mem_flags) rh_urb_enqueue(hcd, urb) rh_call_control (hcd, urb) hcd->driver->hub_control (hcd, typeReq, wValue, wIndex, tbuf, wLength) // xhci_hc_driver.hub_control (xhci_hub_control)
xhci_hub_control 1 2 3 4 5 // linux-6.6.64/drivers/usb/host/xhci-hub.c int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) xhci_set_port_power(xhci, port, true, &flags) // 打印 set port power %d-%d %s, portsc: 0x%x
usb_enumerate_device 1 2 3 4 5 6 7 // linux-6.6.64/drivers/usb/core/hub.c static int usb_enumerate_device(struct usb_device *udev) usb_get_configuration(udev) usb_parse_configuration(dev, cfgno, usb_parse_interface(ddev, cfgno, config, usb_parse_endpoint(ddev, cfgno, config, inum, asnum, // 打印 skipped %d descriptor%s after %s
suspend机制 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 // linux-6.6.64/drivers/usb/core/hcd.c usb_generic_driver.suspend (usb_generic_driver_suspend) int usb_generic_driver_suspend(struct usb_device *udev, pm_message_t msg) hcd_bus_suspend(udev, msg) // 打印 bus %ssuspend, wakeup %d xhci_bus_suspend usb_set_device_state xhci_hub_status_data hcd_bus_resume xhci_bus_resume usb_phy_roothub_calibrate usb_set_device_state // linux-6.6.64/drivers/usb/host/xhci-hub.c xhci_hc_driver.hub_status_data (xhci_hub_status_data) int xhci_hub_status_data(struct usb_hcd *hcd, char *buf) // 打印 %s: stopping usb%d port polling // linux-6.6.64/drivers/usb/host/xhci-hub.c int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) // 打印 Get port status %d-%d read: 0x%x, return 0x%x // linux-6.6.64/drivers/usb/core/hub.c static void hub_event(struct work_struct *work) // 打印 state %d ports %d chg %04x evt %04x static int hub_suspend(struct usb_interface *intf, pm_message_t msg) // 打印 hub_suspend int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg) // 打印 bus %ssuspend, wakeup %d // 打印 suspend raced with wakeup event int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg) // 打印 usb %sresume static void link_peers_report(struct usb_port *left, struct usb_port *right) // 打印 peered to %s int xhci_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, u16 wIndex, char *buf, u16 wLength) // 打印 set port remote wake mask, actual port %d-%d status = 0x%x
设备接入 汇总流程 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 usb_hcd_irq /* 打印 Port change event, 2-1, id 2, portsc: 0xa021603 resume root hub handle_port_status: starting usb2 port polling. */ // drivers/usb/core/hcd.c // hcd wakeup工作队列被唤醒 void hcd_resume_work(struct work_struct *work) usb_remote_wakeup(udev) // 打印 usb wakeup-resume usb_autoresume_device(udev) usb_runtime_resume usb_resume_both *usb_resume_device(udev, msg) // usb_generic_driver_resume hcd_bus_resume(udev, msg) // 打印 usb auto-resume hcd->driver->bus_resume(hcd) // xhci_bus_resume usb_resume_interface(udev, intf, msg driver->resume(intf) // hub_resume // 打印 hub_resume hub_activate(hub, HUB_RESUME) *usb_hub_port_status(hub, port1, &portstatus, &portchange) // hub_ext_port_status(hub, port1, HUB_PORT_STATUS, *get_port_status(hub->hdev, port1, &hub->status->port, type, len) // usb_control_msg(..USB_REQ_GET_STATUS..) // 长调用,打印 Get port status 2-1 read: 0x21603, return 0x10203 // 打印 status 0203 change 0001 hub_port_warm_reset_required(hub, port1, portstatus) usb_clear_port_feature(hdev, port1, usb_control_msg(..USB_REQ_CLEAR_FEATURE..) // 长调用,打印 clear port1 connect change, portsc: 0x1603 usb_submit_urb(hub->urb, GFP_NOIO) kick_hub_wq(hub) // 触发 hub_event // linux-6.6.64/drivers/usb/core/hub.c static void hub_event(struct work_struct *work) // 打印 state 7 ports 1 chg 0002 evt 0000 usb_hcd_poll_rh_status xhci_hub_status_data hub_ext_port_status usb_control_msg // 长调用,打印 Get port status 2-1 read: 0x1603, return 0x203 *port_event(hub, i) -> hub_port_connect_change // 打印 status 0203, change 0000, 10.0 Gb/s hub_port_warm_reset_required usb_alloc_dev xhci_alloc_dev xhci_queue_slot_control xhci_ring_cmd_db // 打印 // Ding dong! usb_hcd_irq xhci_irq xhci_alloc_virt_device // 打印 Slot 1 output ctx = 0x0x0000000812d0e000 (dma) // 打印 Slot 1 input ctx = 0x0x0000000812d23000 (dma) // 打印 Set slot id 1 dcbaa entry (____ptrval____) to 0x812d0e000 xhci_debugfs_create_slot usb_enable_endpoint usb_set_device_state hub_port_init hub_port_reset hub_ext_port_status usb_control_msg // 长调用,打印 Get port status 2-1 read: 0x1603, return 0x203 hub_port_warm_reset_required usb_control_msg hub_ext_port_status hub_port_warm_reset_required usb_clear_port_feature // 打印 set port reset, actual port 2-1 status = 0x1711 usb_clear_port_feature usb_clear_port_feature usb_clear_port_feature ???--- Get port status 2-1 read: 0x201603, return 0x100203 clear port1 reset change, portsc: 0x1603 clear port1 warm(BH) reset change, portsc: 0x1603 clear port1 link state change, portsc: 0x1603 clear port1 connect change, portsc: 0x1603 Get port status 2-1 read: 0x1603, return 0x203 ???--- hub_ext_port_status hub_port_warm_reset_required xhci_discover_or_reset_device xhci_check_args xhci_get_slot_ctx usb_set_device_state usb_speed_string xhci_address_device xhci_setup_device xhci_setup_addressable_virt_dev // 打印 Set root hub portnum to 2 // 打印 Set fake root hub portnum to 1 // 打印 udev->tt = 0000000000000000 // 打印 udev->ttport = 0x0 xhci_queue_address_device xhci_ring_cmd_db // 打印 // Ding dong! // 打印 Successful setup address command // 打印 Op regs DCBAA ptr = 0x00000812ca1000 // 打印 Slot ID 1 dcbaa entry @(____ptrval____) = 0x00000812d0e000 // 打印 Output Context DMA address = 0x812d0e000 // 打印 Internal device address = 1 // 打印 new SuperSpeed Plus Gen 2x1 USB device number 3 using xhci-hcd usb_set_device_state usb_ep0_reinit usb_disable_endpoint usb_hcd_flush_endpoint usb_hcd_disable_endpoint usb_disable_endpoint usb_hcd_flush_endpoint usb_hcd_disable_endpoint usb_enable_endpoint usb_control_msg usb_set_isoch_delay usb_control_msg_send usb_get_device_descriptor usb_get_descriptor usb_detect_quirks usb_detect_static_quirks usb_get_bos_descriptor usb_get_descriptor usb_get_descriptor usb_device_supports_lpm xhci_update_device usb_new_device usb_get_configuration usb_get_descriptor // 打印 skipped 1 descriptor after endpoint // 打印 skipped 1 descriptor after endpoint usb_get_descriptor // 打印 skipped 2 descriptors after endpoint // 打印 skipped 2 descriptors after endpoint // 打印 skipped 2 descriptors after endpoint // 打印 skipped 2 descriptors after endpoint usb_cache_string // 打印 default language 0x0409 usb_cache_string usb_cache_string usb_detect_interface_quirks usb_bus_notify // 打印 udev 3, busnum 2, minor = 130 usb_probe_device // 打印 usb_probe_device usb_generic_driver_probe usb_choose_configuration // 打印 configuration #1 chosen from 1 choice usb_set_configuration usb_hcd_alloc_bandwidth xhci_add_endpoint // 打印 add ep 0x81, slot id 1, new drop flags = 0x0, new add flags = 0x8 xhci_add_endpoint // 打印 add ep 0x2, slot id 1, new drop flags = 0x0, new add flags = 0x18 xhci_check_bandwidth // 打印 xhci_check_bandwidth called for udev (____ptrval____) *xhci_ring_cmd_db // 打印 // Ding dong! *xhci_configure_endpoint_result // 打印 Successful Endpoint Configure command usb_enable_interface usb_enable_endpoint usb_hcd_reset_endpoint xhci_endpoint_reset *xhci_ring_cmd_db // 打印 // Ding dong! *xhci_ring_cmd_db // 打印 // Ding dong! usb_enable_endpoint usb_hcd_reset_endpoint xhci_endpoint_reset *xhci_ring_cmd_db // 打印 // Ding dong! *xhci_ring_cmd_db // 打印 // Ding dong! usb_control_msg_send usb_set_device_state usb_cache_string usb_unlocked_enable_lpm usb_enable_ltm // 打印 adding 2-1:1.0 (config #1, interface 0) device_add(&intf->dev) -> usb_probe_interface // 打印 usb_probe_interface // 打印 usb_probe_interface - got id driver->probe(intf, id) // storage_probe usb_stor_probe1(&us, intf, id, unusual_dev, // 打印 USB Mass Storage device detected scsi_host_alloc(sht, sizeof(*us)) get_transport(us) get_protocol(us) usb_stor_probe2(us) // 打印 scsi host0: usb-storage 2-1:1.0 scsi_add_host(us_to_host(us), dev) // scsi_add_host_with_dma ???--- 打印 scsi host0: scsi_runtime_idle scsi host0: scsi_runtime_suspend scsi host0: scsi_runtime_resume ???--- device_add(&shost->shost_gendev) device_add(&shost->shost_dev) queue_delayed_work(system_freezable_wq, &us->scan_dwork, // us->scan_dwork工作队列触发 usb_stor_scan_dwork usb_create_ep_devs usb_create_ep_devs usb_autosuspend_device usb_create_ep_devs // us->scan_dwork工作队列触发 usb_stor_scan_dwork do_scsi_scan_host(shost) scsi_scan_host_selected(shost, SCAN_WILD_CARD, SCAN_WILD_CARD, scsi_scan_channel(shost, channel, id, lun, __scsi_scan_target(&shost->shost_gendev, channel, scsi_probe_and_add_lun(starget, scsi_add_lun(sdev, // 打印 Direct-Access Seagate One Touch SSD PMAP PQ: 0 ANSI: 6 scsi_sysfs_add_sdev(sdev) // 通过调用 device_add 触发 sd_probe // 驱动框架触发 static int sd_probe(struct device *dev) sd_revalidate_disk(gd) sd_read_capacity(sdkp, buffer) sd_print_capacity(sdkp, old_capacity) // 打印 [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB) sd_read_write_protect_flag(sdkp, buffer) // 打印 [sda] Write Protect is off // 打印 [sda] Mode Sense: 23 00 00 00 sd_read_cache_type(sdkp, buffer) // 打印 [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA sd_validate_min_xfer_size(sdkp) // (当前未打印) [sda] Preferred minimum I/O size 4096 bytes sd_validate_opt_xfer_size(sdkp, dev_max) // (当前未打印) [sda] Optimal transfer size 33553920 bytes not a multiple of preferred minimum block size (4096 bytes) device_add_disk(dev, gd, NULL) // 注册有fs操作gd->fops = &sd_fops, 最后触发sd_open和sd_release *sd_open sd_revalidate_disk *sd_release // 打印 [sda] Attached SCSI disk scsi_autopm_put_device(sdp)
portsc 值为0xa021603按位解析(详见linux-6.6.64/drivers/usb/host/xhci-port.h):
CONNECT (0): 1 PE(1): 1 PLS(8:5): 0 U0 POWER(9): 1 SPEED(13:10): 5 SSP CSC(17): 1 WKCONN_E(25): 1 WKOC_E(27): 1 流程细节 中断 1 2 3 4 5 6 7 8 9 10 11 12 // linux-6.6.64/drivers/usb/core/hcd.c irqreturn_t usb_hcd_irq (int irq, void *__hcd) *hcd->driver->irq(hcd) // xhci_irq *xhci_handle_event(xhci, ir) // 循环调用函数 *handle_port_status(xhci, ir, event) // 打印 Port change event, 2-1, id 2, portsc: 0xa021603 usb_hcd_is_primary_hcd // 打印 resume root hub usb_hcd_resume_root_hub // 打印 handle_port_status: starting usb1 port polling. usb_hcd_poll_rh_status(hcd) hcd->driver->hub_status_data(hcd, buffer) // xhci_hub_status_data // 打印 xhci_hub_status_data: stopping usb2 port polling
usb_control_msg 1 2 3 4 5 6 7 8 9 10 11 12 13 14 usb_control_msg usb_alloc_urb usb_start_wait_urb usb_submit_urb usb_hcd_submit_urb usb_get_urb *rh_urb_enqueue(hcd, urb) -> rh_call_control (hcd, urb) usb_hcd_link_urb_to_ep hcd->driver->hub_control (hcd, // xhci_hub_control xhci_get_port_status // 打印 Get port status %d-%d read: 0x%x, return 0x%x usb_hcd_unlink_urb_from_ep usb_hcd_giveback_urb usb_free_urb
附录 参考文档