kernel: add kcov code coverage
[cascardo/linux.git] / arch / x86 / boot / Makefile
index 0bf6749..b1ef9e4 100644 (file)
 KASAN_SANITIZE                 := n
 OBJECT_FILES_NON_STANDARD      := y
 
+# Kernel does not boot with kcov instrumentation here.
+# One of the problems observed was insertion of __sanitizer_cov_trace_pc()
+# callback into middle of per-cpu data enabling code. Thus the callback observed
+# inconsistent state and crashed. We are interested mostly in syscall coverage,
+# so boot code is not interesting anyway.
+KCOV_INSTRUMENT                := n
+
 # If you want to preset the SVGA mode, uncomment the next line and
 # set SVGA_MODE to whatever number you want.
 # Set it to -DSVGA_MODE=NORMAL_VGA if you just want the EGA/VGA mode.