Skip to content

Commit d4f7e51

Browse files
Chris Smithpmundt
authored andcommitted
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: Chris Smith <chris.smith@st.com> Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent 13c12a4 commit d4f7e51

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎arch/sh/boot/compressed/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ targets := vmlinux vmlinux.bin vmlinux.bin.gz \
1111

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

14+
GCOV_PROFILE := n
15+
1416
#
1517
# IMAGE_OFFSET is the load offset of the compression loader
1618
#

‎arch/sh/mm/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ obj-$(CONFIG_IOREMAP_FIXED) += ioremap_fixed.o
4242
obj-$(CONFIG_UNCACHED_MAPPING) += uncached.o
4343
obj-$(CONFIG_HAVE_SRAM_POOL) += sram.o
4444

45+
GCOV_PROFILE_pmb.o := n
46+
4547
# Special flags for fault_64.o. This puts restrictions on the number of
4648
# caller-save registers that the compiler can target when building this file.
4749
# This is required because the code is called from a context in entry.S where

‎kernel/gcov/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ config GCOV_KERNEL
3434
config GCOV_PROFILE_ALL
3535
bool "Profile entire Kernel"
3636
depends on GCOV_KERNEL
37-
depends on S390 || X86 || (PPC && EXPERIMENTAL) || MICROBLAZE
37+
depends on SUPERH || S390 || X86 || (PPC && EXPERIMENTAL) || MICROBLAZE
3838
default n
3939
---help---
4040
This options activates profiling for the entire kernel.

0 commit comments

Comments
 (0)