kcov: do not instrument lib/stackdepot.c
authorAlexander Potapenko <[email protected]>
Tue, 11 Oct 2016 20:54:47 +0000 (13:54 -0700)
committerLinus Torvalds <[email protected]>
Tue, 11 Oct 2016 22:06:32 +0000 (15:06 -0700)
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.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexander Potapenko <[email protected]>
Acked-by: Dmitry Vyukov <[email protected]>
Cc: Kostya Serebryany <[email protected]>
Cc: Andrey Konovalov <[email protected]>
Cc: syzkaller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
lib/Makefile

index f3ca8c0ab634e04f98d959ef4b2759f9a5af472f..50144a3aeebdb8dfcadca9ec735a1b9012fc518d 100644 (file)
@@ -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