[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.1.10.0810162046570.20570@gandalf.stny.rr.com>
Date: Thu, 16 Oct 2008 20:48:05 -0400 (EDT)
From: Steven Rostedt <rostedt@...dmis.org>
To: Josh Boyer <jwboyer@...ux.vnet.ibm.com>
cc: Ingo Molnar <mingo@...e.hu>, Peter Zijlstra <peterz@...radead.org>,
linux-kernel@...r.kernel.org, David Miller <davem@...emloft.net>,
linuxppc-dev@...abs.org, Thomas Gleixner <tglx@...utronix.de>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] ftrace: powerpc: remove startup functions from tracing
[
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@...hat.com>
---
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..
#
+ifdef CONFIG_FTRACE
+ORIG_CFLAGS := $(KBUILD_CFLAGS)
+KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
+endif
+
ifeq ($(CONFIG_PPC64),y)
EXTRA_CFLAGS += -mno-minimal-toc
endif
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists