From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.123]) by ozlabs.org (Postfix) with ESMTP id 6EB6ADDE26 for ; Mon, 17 Nov 2008 08:25:19 +1100 (EST) Message-Id: <20081116212516.202112467@goodmis.org> References: <20081116212428.938752312@goodmis.org> Date: Sun, 16 Nov 2008 16:24:34 -0500 From: Steven Rostedt To: linux-kernel@vger.kernel.org Subject: [PATCH 6/7] ftrace,ppc32: enabled dynamic ftrace Cc: Andrew Morton , Peter Zijlstra , Rusty Russell , Pekka Paalanen , David Miller , linuxppc-dev@ozlabs.org, Steven Rostedt , Paul Mundt , Paul Mackerras , Frederic Weisbecker , Ingo Molnar , Thomas Gleixner List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Impact: enable dynamic ftrace for PPC32 This patch adds the necessary hooks to get PPC32 dynamic ftrace working. It does not handle modules. They are ignored by this patch. Signed-off-by: Steven Rostedt --- arch/powerpc/Kconfig | 2 +- scripts/recordmcount.pl | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 99d9500..efcc2c4 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -108,7 +108,7 @@ config ARCH_NO_VIRT_TO_BUS config PPC bool default y - select HAVE_FTRACE_MCOUNT_RECORD if PPC64 + select HAVE_FTRACE_MCOUNT_RECORD select HAVE_DYNAMIC_FTRACE select HAVE_FUNCTION_TRACER select ARCH_WANT_OPTIONAL_GPIOLIB diff --git a/scripts/recordmcount.pl b/scripts/recordmcount.pl index 7acbe17..48609e9 100755 --- a/scripts/recordmcount.pl +++ b/scripts/recordmcount.pl @@ -178,7 +178,12 @@ if ($arch eq "x86_64") { $section_regex = "Disassembly of section\\s+(\\S+):"; $function_regex = "^([0-9a-fA-F]+)\\s+<(\\.?.*?)>:"; $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s\\.?_mcount\$"; - $type = ".quad"; + if ($bits == 64) { + $type = ".quad"; + } else { + $type = ".long"; + } + } else { die "Arch $arch is not supported with CONFIG_FTRACE_MCOUNT_RECORD"; } -- 1.5.6.5 --