]> Git Repo - linux.git/commit
usb, kcov: collect coverage from hub_event
authorAndrey Konovalov <[email protected]>
Thu, 5 Dec 2019 00:52:47 +0000 (16:52 -0800)
committerLinus Torvalds <[email protected]>
Thu, 5 Dec 2019 03:44:14 +0000 (19:44 -0800)
commit95d23dc27bde0ab4b25f7ade5e2fddc08dd97d9b
tree546b609bf5bd48b1daf54b39195b0127670b1c4e
parenteec028c9386ed1a692aa01a85b55952202b41619
usb, kcov: collect coverage from hub_event

Add kcov_remote_start()/kcov_remote_stop() annotations to the
hub_event() function, which is responsible for processing events on USB
buses, in particular events that happen during USB device enumeration.

Since hub_event() is run in a global background kernel thread (see
Documentation/dev-tools/kcov.rst for details), each USB bus gets a
unique global handle from the USB subsystem kcov handle range.  As the
result kcov can now be used to collect coverage from events that happen
on a particular USB bus.

[[email protected]: avoid patch conflicts to make life easier for Andrew]
Link: http://lkml.kernel.org/r/de4fe1c219db2d002d905dc1736e2a3bfa1db997.1572366574.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Cc: Alan Stern <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Anders Roxell <[email protected]>
Cc: Arnd Bergmann <[email protected]>
Cc: David Windsor <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Elena Reshetova <[email protected]>
Cc: Jason Wang <[email protected]>
Cc: Marco Elver <[email protected]>
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Steven Rostedt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/usb/core/hub.c
This page took 0.051307 seconds and 4 git commands to generate.