Link: https://lore.kernel.org/r/20260528194638.371537336@linuxfoundation.org Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Pavel Machek (CIP) <pavel@nabladev.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Wentao Guan <guanwentao@uniontech.com> Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 lines
512 B
Makefile
12 lines
512 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
kcov-flags-y += -fsanitize-coverage=trace-pc
|
|
kcov-flags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -fsanitize-coverage=trace-cmp
|
|
|
|
kcov-rflags-y += -Cpasses=sancov-module
|
|
kcov-rflags-y += -Cllvm-args=-sanitizer-coverage-level=3
|
|
kcov-rflags-y += -Cllvm-args=-sanitizer-coverage-trace-pc
|
|
kcov-rflags-$(CONFIG_KCOV_ENABLE_COMPARISONS) += -Cllvm-args=-sanitizer-coverage-trace-compares
|
|
|
|
export CFLAGS_KCOV := $(kcov-flags-y)
|
|
export RUSTFLAGS_KCOV := $(kcov-rflags-y)
|