sh: Enable CONFIG_GCOV_PROFILE_ALL for sh
authorChris Smith <chris.smith@st.com>
Fri, 12 Nov 2010 15:26:54 +0000 (16:26 +0100)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 15 Feb 2011 07:47:17 +0000 (16:47 +0900)
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: Chris Smith <chris.smith@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/boot/compressed/Makefile
arch/sh/mm/Makefile
kernel/gcov/Kconfig

index e0b0293bae63e5240e0df723b3725fbba52a7af2..780e083e4d17fe6e2f55edf7793d24d57cb1559b 100644 (file)
@@ -11,6 +11,8 @@ targets               := vmlinux vmlinux.bin vmlinux.bin.gz \
 
 OBJECTS = $(obj)/head_$(BITS).o $(obj)/misc.o $(obj)/cache.o
 
+GCOV_PROFILE := n
+
 #
 # IMAGE_OFFSET is the load offset of the compression loader
 #
index 150aa326afff119ccc0e41e089e0539a821e99bb..2228c8cee4d6cecebafaa37a29857c77f9d80f08 100644 (file)
@@ -42,6 +42,8 @@ obj-$(CONFIG_IOREMAP_FIXED)   += ioremap_fixed.o
 obj-$(CONFIG_UNCACHED_MAPPING) += uncached.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
 # 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
index 70a298d6da712629f37e8a2e52b8edf4e19a8f36..b8cadf70b1fbd109c4ca56f78f6f9a685e2f9974 100644 (file)
@@ -34,7 +34,7 @@ config GCOV_KERNEL
 config GCOV_PROFILE_ALL
        bool "Profile entire Kernel"
        depends on GCOV_KERNEL
-       depends on S390 || X86 || (PPC && EXPERIMENTAL) || MICROBLAZE
+       depends on SUPERH || S390 || X86 || (PPC && EXPERIMENTAL) || MICROBLAZE
        default n
        ---help---
        This options activates profiling for the entire kernel.
This page took 0.025877 seconds and 5 git commands to generate.