]> www.infradead.org Git - users/jedix/linux-maple.git/commit
kcov: Add interrupt handling self test
authorDmitry Vyukov <dvyukov@google.com>
Tue, 11 Jun 2024 07:50:31 +0000 (09:50 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 8 Aug 2024 15:36:35 +0000 (17:36 +0200)
commit6cd0dd934b03d4ee4094ac474108723e2f2ed7d6
tree5647e97187321200708feb39da5dec11c4750329
parent477d81a1c47a1b79b9c08fc92b5dea3c5143800b
kcov: Add interrupt handling self test

Add a boot self test that can catch sprious coverage from interrupts.
The coverage callback filters out interrupt code, but only after the
handler updates preempt count. Some code periodically leaks out
of that section and leads to spurious coverage.
Add a best-effort (but simple) test that is likely to catch such bugs.
If the test is enabled on CI systems that use KCOV, they should catch
any issues fast.

Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexander Potapenko <glider@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Link: https://lore.kernel.org/all/7662127c97e29da1a748ad1c1539dd7b65b737b2.1718092070.git.dvyukov@google.com
kernel/kcov.c
lib/Kconfig.debug