kcov: do not instrument lib/stackdepot.c
PATCH 1/1 kcov: do not instrument lib/stackdepot.c
There's no point in collecting coverage from lib/stackdepot.c, as it is not a function of syscall inputs. Disabling kcov instrumentation for that file will reduce the coverage noise level.
Signed-off-by Alexander Potapenko <[email protected]>
--- lib/Makefile | 1 + 1 file changed, 1 insertion(+)
lib/Makefile +1 -0
@@ -180,6 +180,7 @@ obj-$(CONFIG_IRQ_POLL) += irq_poll.o obj-$(CONFIG_STACKDEPOT) += stackdepot.o KASAN_SANITIZE_stackdepot.o := n +KCOV_INSTRUMENT_stackdepot.o := n libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \ fdt_empty_tree.o
Signature · 1 line
2.8.0.rc3.226.g39d4020
Quoted 5 lines · Alexander Potapenko
There's no point in collecting coverage from
lib/stackdepot.c, as it is not a function of syscall inputs. Disabling kcov instrumentation for that file will reduce the coverage noise level.Signed-off-by Alexander Potapenko <[email protected]>
Acked-by Dmitry Vyukov <[email protected]>
Quoted 19 lines
--- lib/Makefile | 1 + 1 file changed, 1 insertion(+)lib/Makefile +1
-1@@ -180,6 +180,7 @@ obj-$(CONFIG_IRQ_POLL) += irq_poll.o obj-$(CONFIG_STACKDEPOT) += stackdepot.o KASAN_SANITIZE_stackdepot.o := n +KCOV_INSTRUMENT_stackdepot.o := n libfdt_files = fdt.o fdt_ro.o fdt_wip.o fdt_rw.o fdt_sw.o fdt_strerror.o \ fdt_empty_tree.o --2.8.0.rc3.226.g39d4020