[PATCH] ftrace: powerpc: remove startup functions from tracing

From: Steven Rostedt
Date: Thu Oct 16 2008 - 20:48:19 EST

Josh, can you see if this allows you to boot on PowerPC?
It worked on my powerbook.

The early init code in PowerPC is not mapped to their final locations
and all jumps and memory references must be done with relative jumps
and accesses.

The lib files in the powerpc directory are called in early boot, and
since mcount will perform direct access to memory, the lib files need
not be traced.

Signed-off-by: Steven Rostedt <srostedt@xxxxxxxxxx>
arch/powerpc/lib/Makefile | 5 +++++
1 file changed, 5 insertions(+)

Index: linux-compile.git/arch/powerpc/lib/Makefile
--- linux-compile.git.orig/arch/powerpc/lib/Makefile 2008-10-16 19:26:39.000000000 -0400
+++ linux-compile.git/arch/powerpc/lib/Makefile 2008-10-16 19:26:49.000000000 -0400
@@ -2,6 +2,11 @@
# Makefile for ppc-specific library files..

+KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
ifeq ($(CONFIG_PPC64),y)
EXTRA_CFLAGS += -mno-minimal-toc

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/