Makefile: support flag -fsanitizer-coverage=trace-cmp
authorVictor Chibotaru <[email protected]>
Fri, 17 Nov 2017 23:30:50 +0000 (15:30 -0800)
committerLinus Torvalds <[email protected]>
Sat, 18 Nov 2017 00:10:04 +0000 (16:10 -0800)
commitd677a4d6019385488e794cc47bd3d6f9c2aab874
tree5c94f48e2a9acfb553a359c30bcbb2c0f76ba266
parentded97d2c2b2c5f1dcced0bc57133f7753b037dfc
Makefile: support flag -fsanitizer-coverage=trace-cmp

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]>
Makefile
lib/Kconfig.debug
scripts/Makefile.kcov [new file with mode: 0644]