Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 8153/1: Enable gcov support on the ARM architecture

Enable gcov support for ARM based on original patches by David
Singleton and George G. Davis

Riku - updated to patch to current mainline kernel. The patch
has been submitted in 2010, 2012 - for symmetry, now in 2014 too.

https://lwn.net/Articles/390419/
http://marc.info/?l=linux-arm-kernel&m=133823081813044

v2: remove arch/arm/kernel from gcov disabled files

Cc: Andrey Ryabinin <a.ryabinin@samsung.com>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Vincent Sanders <vincent.sanders@collabora.co.uk>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Vincent Sanders and committed by
Russell King
75c34906 195b58ad

+5 -1
+2
arch/arm/boot/bootp/Makefile
··· 5 5 # architecture-specific flags and dependencies. 6 6 # 7 7 8 + GCOV_PROFILE := n 9 + 8 10 LDFLAGS_bootp :=-p --no-undefined -X \ 9 11 --defsym initrd_phys=$(INITRD_PHYS) \ 10 12 --defsym params_phys=$(PARAMS_PHYS) -T
+2
arch/arm/boot/compressed/Makefile
··· 37 37 OBJS += hyp-stub.o 38 38 endif 39 39 40 + GCOV_PROFILE := n 41 + 40 42 # 41 43 # Architecture dependencies 42 44 #
+1 -1
kernel/gcov/Kconfig
··· 35 35 config GCOV_PROFILE_ALL 36 36 bool "Profile entire Kernel" 37 37 depends on GCOV_KERNEL 38 - depends on SUPERH || S390 || X86 || PPC || MICROBLAZE 38 + depends on SUPERH || S390 || X86 || PPC || MICROBLAZE || ARM 39 39 default n 40 40 ---help--- 41 41 This options activates profiling for the entire kernel.