OSDN Git Service

powerpc: Enable kcov
authorAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Fri, 22 Feb 2019 00:40:46 +0000 (11:40 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 23 Feb 2019 10:04:32 +0000 (21:04 +1100)
commitfb0b0a73b223fc113e961b1d921322844e9c30d9
tree6434650ccfc25f1b878f5f449eb3fcc6b27a21aa
parent8f54a6f7406ee3b7b528c3ff569f6a51295b2608
powerpc: Enable kcov

kcov provides kernel coverage data that's useful for fuzzing tools like
syzkaller.

Wire up kcov support on powerpc. Disable kcov instrumentation on the same
files where we currently disable gcov and UBSan instrumentation, plus some
additional exclusions which appear necessary to boot on book3e machines.

Signed-off-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Acked-by: Dmitry Vyukov <dvyukov@google.com>
Tested-by: Daniel Axtens <dja@axtens.net> # e6500
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/trace/Makefile
arch/powerpc/kernel/vdso32/Makefile
arch/powerpc/kernel/vdso64/Makefile
arch/powerpc/mm/Makefile
arch/powerpc/xmon/Makefile