From 47bbc9888f4b442558ec04fc69830cdd1c585fb5 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 17 Jan 2019 19:26:05 +0100 Subject: [PATCH] usb, kcov: annotate hub_event Signed-off-by: Andrey Konovalov --- drivers/usb/core/hub.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 2f94568ba385..2653b241c954 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -5365,6 +5365,8 @@ static void hub_event(struct work_struct *work) hub_dev = hub->intfdev; intf = to_usb_interface(hub_dev); + kcov_remote_start(kcov_remote_handle_usb(hdev->bus->busnum)); + dev_dbg(hub_dev, "state %d ports %d chg %04x evt %04x\n", hdev->state, hdev->maxchild, /* NOTE: expects max 15 ports... */ @@ -5471,6 +5473,8 @@ static void hub_event(struct work_struct *work) /* Balance the stuff in kick_hub_wq() and allow autosuspend */ usb_autopm_put_interface(intf); kref_put(&hub->kref, hub_release); + + kcov_remote_stop(); } static const struct usb_device_id hub_id_table[] = {