| From: Andrey Konovalov <andreyknvl@gmail.com> |
| Subject: kcov: don't instrument lib/find_bit.c |
| Date: Tue, 23 Jul 2024 00:37:26 +0200 |
| |
| This file produces large amounts of flaky coverage not useful for the |
| KCOV's intended use case (guiding the fuzzing process). |
| |
| Link: https://lkml.kernel.org/r/20240722223726.194658-1-andrey.konovalov@linux.dev |
| Signed-off-by: Andrey Konovalov <andreyknvl@gmail.com> |
| Reviewed-by: Dmitry Vyukov <dvyukov@google.com> |
| Cc: Aleksandr Nogikh <nogikh@google.com> |
| Cc: Alexander Potapenko <glider@google.com> |
| Cc: Marco Elver <elver@google.com> |
| Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> |
| Cc: Yury Norov <yury.norov@gmail.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| lib/Makefile | 1 + |
| 1 file changed, 1 insertion(+) |
| |
| --- a/lib/Makefile~kcov-dont-instrument-lib-find_bitc |
| +++ a/lib/Makefile |
| @@ -14,6 +14,7 @@ KCOV_INSTRUMENT_list_debug.o := n |
| KCOV_INSTRUMENT_debugobjects.o := n |
| KCOV_INSTRUMENT_dynamic_debug.o := n |
| KCOV_INSTRUMENT_fault-inject.o := n |
| +KCOV_INSTRUMENT_find_bit.o := n |
| |
| # string.o implements standard library functions like memset/memcpy etc. |
| # Use -ffreestanding to ensure that the compiler does not try to "optimize" |
| _ |