mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-04 09:44:14 -05:00
The flag enables Clang instrumentation of comparison operations (currently not supported by GCC). This instrumentation is needed by the new KCOV device to collect comparison operands. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Victor Chibotaru <[email protected]> Signed-off-by: Alexander Potapenko <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Andrey Konovalov <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Alexander Popov <[email protected]> Cc: Andrey Ryabinin <[email protected]> Cc: Kees Cook <[email protected]> Cc: Vegard Nossum <[email protected]> Cc: Quentin Casasnovas <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
7 lines
201 B
Text
7 lines
201 B
Text
ifdef CONFIG_KCOV
|
|
CFLAGS_KCOV := $(call cc-option,-fsanitize-coverage=trace-pc,)
|
|
ifeq ($(CONFIG_KCOV_ENABLE_COMPARISONS),y)
|
|
CFLAGS_KCOV += $(call cc-option,-fsanitize-coverage=trace-cmp,)
|
|
endif
|
|
|
|
endif
|