Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4f7e513 authored by Chris Smith's avatar Chris Smith Committed by Paul Mundt
Browse files

sh: Enable CONFIG_GCOV_PROFILE_ALL for sh



This patch enables gcov kernel profiling over the whole kernel for sh.
Profiling of specific files individually already worked. A handful of
files have to be explicitly excluded from the profiling to avoid
breaking things, notably pmb.c.

Signed-off-by: default avatarChris Smith <chris.smith@st.com>
Signed-off-by: default avatarStuart Menefy <stuart.menefy@st.com>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 13c12a4e
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -11,6 +11,8 @@ targets := vmlinux vmlinux.bin vmlinux.bin.gz \


OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/cache.o
OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/cache.o


GCOV_PROFILE := n

#
#
# IMAGE_OFFSET is the load offset of the compression loader
# IMAGE_OFFSET is the load offset of the compression loader
#
#
+2 −0
Original line number Original line Diff line number Diff line
@@ -42,6 +42,8 @@ obj-$(CONFIG_IOREMAP_FIXED) += ioremap_fixed.o
obj-$(CONFIG_UNCACHED_MAPPING)	+= uncached.o
obj-$(CONFIG_UNCACHED_MAPPING)	+= uncached.o
obj-$(CONFIG_HAVE_SRAM_POOL)	+= sram.o
obj-$(CONFIG_HAVE_SRAM_POOL)	+= sram.o


GCOV_PROFILE_pmb.o := n

# Special flags for fault_64.o.  This puts restrictions on the number of
# Special flags for fault_64.o.  This puts restrictions on the number of
# caller-save registers that the compiler can target when building this file.
# caller-save registers that the compiler can target when building this file.
# This is required because the code is called from a context in entry.S where
# This is required because the code is called from a context in entry.S where
+1 −1
Original line number Original line Diff line number Diff line
@@ -34,7 +34,7 @@ config GCOV_KERNEL
config GCOV_PROFILE_ALL
config GCOV_PROFILE_ALL
	bool "Profile entire Kernel"
	bool "Profile entire Kernel"
	depends on GCOV_KERNEL
	depends on GCOV_KERNEL
	depends on S390 || X86 || (PPC && EXPERIMENTAL) || MICROBLAZE
	depends on SUPERH || S390 || X86 || (PPC && EXPERIMENTAL) || MICROBLAZE
	default n
	default n
	---help---
	---help---
	This options activates profiling for the entire kernel.
	This options activates profiling for the entire kernel.