Skip to contentSkip to conversation

kcov: do not instrument lib/stackdepot.c

PATCH Applied Alexander Potapenko 2 participants 2 messages Sep 23, 2016 Library code

lore
Share & tools
lore
#0 lore raw

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.

---
 lib/Makefile | 1 +
 1 file changed, 1 insertion(+)
lib/Makefile +1 -0
index 5dc77a8..cbac596 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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.

Quoted 19 lines
---
 lib/Makefile | 1 +
 1 file changed, 1 insertion(+)
lib/Makefile +1 -1
index 5dc77a8..cbac596 100644
@@ -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