[Devel] [PATCH RHEL7 COMMIT] kcov: do not instrument lib/stackdepot.c

Konstantin Khorenko khorenko at virtuozzo.com
Fri Sep 15 17:27:31 MSK 2017


The commit is pushed to "branch-rh7-3.10.0-693.1.1.vz7.37.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-693.1.1.vz7.37.4
------>
commit 1d296932bd2147514be12ed94128d4ff80fa8bc8
Author: Alexander Potapenko <glider at google.com>
Date:   Fri Sep 15 17:27:31 2017 +0300

    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.
    
    Link: http://lkml.kernel.org/r/1474640972-104131-1-git-send-email-glider@google.com
    Signed-off-by: Alexander Potapenko <glider at google.com>
    Acked-by: Dmitry Vyukov <dvyukov at google.com>
    Cc: Kostya Serebryany <kcc at google.com>
    Cc: Andrey Konovalov <andreyknvl at google.com>
    Cc: syzkaller <syzkaller at googlegroups.com>
    Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>
    
    https://jira.sw.ru/browse/PSBM-69081
    (cherry picked from commit 65deb8af76defeae4b114a75242ed15b0bcba173)
    Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 lib/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/Makefile b/lib/Makefile
index cfe21bd..9b8233e 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -168,6 +168,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
 


More information about the Devel mailing list