File: Makefile.kcov

package info (click to toggle)
linux 6.18.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,742,780 kB
  • sloc: ansic: 26,780,494; asm: 272,079; sh: 148,752; python: 79,241; makefile: 57,741; perl: 36,527; xml: 19,542; cpp: 5,911; yacc: 4,939; lex: 2,950; awk: 1,607; sed: 30; ruby: 25
file content (11 lines) | stat: -rw-r--r-- 512 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
# 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)