sparc64: Remove profiling from some low-level bits.

Previous thread: sparc64: Kill unnecessary static on local var in ftrace_call_replace(). by Linux Kernel Mailing List on Tuesday, April 13, 2010 - 12:59 pm. (1 message)

Next thread: sparc64: Use a seperate counter for timer interrupts and NMI checks, like x86. by Linux Kernel Mailing List on Tuesday, April 13, 2010 - 12:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Tuesday, April 13, 2010 - 12:59 pm

Gitweb:     http://git.kernel.org/linus/f8e8a8e8cba3359df2a16c17d59eedb08adf3b43
Commit:     f8e8a8e8cba3359df2a16c17d59eedb08adf3b43
Parent:     d96478d5a2dcfa3aba1ca4d71b07fef62b27d9c8
Author:     David S. Miller <davem@davemloft.net>
AuthorDate: Tue Apr 6 17:34:15 2010 -0700
Committer:  David S. Miller <davem@davemloft.net>
CommitDate: Mon Apr 12 22:36:19 2010 -0700

    sparc64: Remove profiling from some low-level bits.
    
    These include the timer implementation, perf events support, and the
    performance counter register (pcr) programming layer.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
---
 arch/sparc/kernel/Makefile |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/arch/sparc/kernel/Makefile b/arch/sparc/kernel/Makefile
index c631614..1b35ed6 100644
--- a/arch/sparc/kernel/Makefile
+++ b/arch/sparc/kernel/Makefile
@@ -13,6 +13,14 @@ extra-y     += init_task.o
 CPPFLAGS_vmlinux.lds := -Usparc -m$(BITS)
 extra-y              += vmlinux.lds
 
+ifdef CONFIG_FUNCTION_TRACER
+# Do not profile debug and lowlevel utilities
+CFLAGS_REMOVE_ftrace.o := -pg
+CFLAGS_REMOVE_time_$(BITS).o := -pg
+CFLAGS_REMOVE_perf_event.o := -pg
+CFLAGS_REMOVE_pcr.o := -pg
+endif
+
 obj-$(CONFIG_SPARC32)   += entry.o wof.o wuf.o
 obj-$(CONFIG_SPARC32)   += etrap_32.o
 obj-$(CONFIG_SPARC32)   += rtrap_32.o
@@ -85,7 +93,6 @@ obj-$(CONFIG_KGDB)        += kgdb_$(BITS).o
 
 
 obj-$(CONFIG_DYNAMIC_FTRACE) += ftrace.o
-CFLAGS_REMOVE_ftrace.o := -pg
 
 obj-$(CONFIG_EARLYFB) += btext.o
 obj-$(CONFIG_STACKTRACE)     += stacktrace.o
--

Previous thread: sparc64: Kill unnecessary static on local var in ftrace_call_replace(). by Linux Kernel Mailing List on Tuesday, April 13, 2010 - 12:59 pm. (1 message)

Next thread: sparc64: Use a seperate counter for timer interrupts and NMI checks, like x86. by Linux Kernel Mailing List on Tuesday, April 13, 2010 - 12:59 pm. (1 message)