]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kcov: refactor common handle ID into kcov_common_handle_id
authorJann Horn <jannh@google.com>
Thu, 30 Apr 2026 14:15:33 +0000 (16:15 +0200)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 May 2026 04:24:45 +0000 (21:24 -0700)
commit5a13e296a3e32a70db2a520d8611a53d7bde10e8
treead27a1e987653ea1861fbfe4a0c19507aaba8568
parentbd99fcfc6219ebe36ae4d0bf5333b5ecc17b53df
kcov: refactor common handle ID into kcov_common_handle_id

Store common handle IDs in "struct kcov_common_handle_id", which consumes
no space in non-KCOV builds.

This cleanup removes #ifdef boilerplate code from subsystems that
integrate with KCOV (in particular in usbip_common.h and skbuff.h, see the
diffstat).

This should also make it easier to add KCOV remote coverage to more
subsystems in the future.

Link: https://lore.kernel.org/20260430-kcov-refactor-common-handle-v1-1-23a0c7a0ba38@google.com
Signed-off-by: Jann Horn <jannh@google.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Eugenio Pérez <eperezma@redhat.com>
Cc: Hongren (Zenithal) Zheng <i@zenithal.me>
Cc: Jann Horn <jannh@google.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/usb/usbip/usbip_common.h
drivers/usb/usbip/vhci_rx.c
drivers/usb/usbip/vhci_sysfs.c
drivers/vhost/vhost.h
include/linux/kcov.h
include/linux/skbuff.h
include/linux/types.h
kernel/kcov.c