Greg Kroah-Hartman
2019-Nov-07 10:19 UTC
[PATCH v3 2/3] usb, kcov: collect coverage from hub_event
On Tue, Oct 29, 2019 at 05:32:28PM +0100, Andrey Konovalov wrote:> This patch adds 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. > > Signed-off-by: Andrey Konovalov <andreyknvl at google.com> > --- > drivers/usb/core/hub.c | 5 +++++ > 1 file changed, 5 insertions(+)Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>