From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@armlinux.org.uk (Russell King - ARM Linux) Date: Tue, 8 May 2018 11:30:16 +0100 Subject: [PATCH] arm: port KCOV to arm In-Reply-To: <20180426130846.130976-1-dvyukov@google.com> References: <20180426130846.130976-1-dvyukov@google.com> Message-ID: <20180508103016.GW16141@n2100.armlinux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Apr 26, 2018 at 03:08:46PM +0200, Dmitry Vyukov wrote: > KCOV is code coverage collection facility used, in particular, by syzkaller > system call fuzzer. There is some interest in using syzkaller on arm devices. > So port KCOV to arm. > > On implementation level this merely declares that KCOV is supported and > disables instrumentation of 3 special cases. Reasons for disabling are > commented in code. > > Tested with qemu-system-arm/vexpress-a15. > > Signed-off-by: Dmitry Vyukov > Cc: Russell King > Cc: Mark Rutland > Cc: Abbott Liu > Cc: Catalin Marinas > Cc: Koguchi Takuo > Cc: Atul Prakash > Cc: linux at armlinux.org.uk > Cc: linux-arm-kernel at lists.infradead.org > Cc: syzkaller at googlegroups.com > --- > arch/arm/Kconfig | 1 + > arch/arm/boot/compressed/Makefile | 3 +++ > arch/arm/mm/Makefile | 4 ++++ > arch/arm/vdso/Makefile | 3 +++ > 4 files changed, 11 insertions(+) > > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index a7f8e7f4b88f..60558a6bb744 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig > @@ -105,6 +105,7 @@ config ARM > select REFCOUNT_FULL > select RTC_LIB > select SYS_SUPPORTS_APM_EMULATION > + select ARCH_HAS_KCOV > # Above selects are sorted alphabetically; please add new ones > # according to that. Thanks. Please read this comment and rework your patch, thanks. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up