xref: /scripts/Makefile.kcov
  • Home
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • current directory
1# SPDX-License-Identifier: GPL-2.0-only
2kcov-flags-y					+= -fsanitize-coverage=trace-pc
3kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS)	+= -fsanitize-coverage=trace-cmp
4
5kcov-rflags-y					+= -Cpasses=sancov-module
6kcov-rflags-y					+= -Cllvm-args=-sanitizer-coverage-level=3
7kcov-rflags-y					+= -Cllvm-args=-sanitizer-coverage-trace-pc
8kcov-rflags-$(CONFIG_KCOV_ENABLE_COMPARISONS)	+= -Cllvm-args=-sanitizer-coverage-trace-compares
9
10export CFLAGS_KCOV := $(kcov-flags-y)
11export RUSTFLAGS_KCOV := $(kcov-rflags-y)
12

Last Index update Fri Aug 22 10:33:58 CST 2025