Skip to contentSkip to conversation

kcov: do not instrument lib/stackdepot.c

PATCH In review [email protected] 1 participant 1 message Oct 11, 2016 Library code

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 77/102 kcov: do not instrument lib/stackdepot.c

From: Alexander Potapenko <[email protected]>
Subject: 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.

---

 lib/Makefile |    1 +
 1 file changed, 1 insertion(+)
lib/Makefile renamed from lib/Makefile~kcov-do-not-instrument-lib-stackdepotc +1 -0
diff -puN lib/Makefile~kcov-do-not-instrument-lib-stackdepotc lib/Makefile
@@ -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

_