From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758546AbYJVViW (ORCPT ); Wed, 22 Oct 2008 17:38:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758002AbYJVVgA (ORCPT ); Wed, 22 Oct 2008 17:36:00 -0400 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.124]:33420 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757014AbYJVVfy (ORCPT ); Wed, 22 Oct 2008 17:35:54 -0400 Message-Id: <20081022213552.634240803@goodmis.org> References: <20081022212721.167005680@goodmis.org> User-Agent: quilt/0.46-1 Date: Wed, 22 Oct 2008 17:27:30 -0400 From: Steven Rostedt To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Frederic Weisbecker , Abhishek Sagar , "David S. Miller" , Thomas Gleixner , Peter Zijlstra , Andrew Morton , Linus Torvalds , Steven Rostedt Subject: [PATCH 09/13 v2] ftrace: disable dynamic ftrace for all archs that use daemon Content-Disposition: inline; filename=ftrace-remove-non-x86-dynamic-ftrace.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ftrace daemon is complex and can cause nasty races if something goes wrong. Since it affects all of the kernel, this patch disables dynamic ftrace from any arch that depends on the daemon. Until the archs are ported over to the new MCOUNT_RECORD method, I am disabling dynamic ftrace from them. Note: I am leaving in the arch//kernel/ftrace.c code alone since that can be used when the arch is ported to MCOUNT_RECORD. To port the arch to MCOUNT_RECORD, the scripts/recordmcount.pl needs to be updated. I will make that easier to do for 2.6.29. For 28, we will keep the archs disabled. Signed-off-by: Steven Rostedt --- arch/arm/Kconfig | 1 - arch/powerpc/Kconfig | 1 - arch/sparc64/Kconfig | 1 - 3 files changed, 3 deletions(-) Index: linux-compile.git/arch/arm/Kconfig =================================================================== --- linux-compile.git.orig/arch/arm/Kconfig 2008-10-22 13:10:52.000000000 -0400 +++ linux-compile.git/arch/arm/Kconfig 2008-10-22 13:20:55.000000000 -0400 @@ -17,7 +17,6 @@ config ARM select HAVE_KPROBES if (!XIP_KERNEL) select HAVE_KRETPROBES if (HAVE_KPROBES) select HAVE_FTRACE if (!XIP_KERNEL) - select HAVE_DYNAMIC_FTRACE if (HAVE_FTRACE) select HAVE_GENERIC_DMA_COHERENT help The ARM series is a line of low-power-consumption RISC chip designs Index: linux-compile.git/arch/powerpc/Kconfig =================================================================== --- linux-compile.git.orig/arch/powerpc/Kconfig 2008-10-22 13:10:52.000000000 -0400 +++ linux-compile.git/arch/powerpc/Kconfig 2008-10-22 13:20:55.000000000 -0400 @@ -111,7 +111,6 @@ config ARCH_NO_VIRT_TO_BUS config PPC bool default y - select HAVE_DYNAMIC_FTRACE select HAVE_FTRACE select ARCH_WANT_OPTIONAL_GPIOLIB select HAVE_IDE Index: linux-compile.git/arch/sparc64/Kconfig =================================================================== --- linux-compile.git.orig/arch/sparc64/Kconfig 2008-10-22 13:10:52.000000000 -0400 +++ linux-compile.git/arch/sparc64/Kconfig 2008-10-22 13:20:55.000000000 -0400 @@ -11,7 +11,6 @@ config SPARC config SPARC64 bool default y - select HAVE_DYNAMIC_FTRACE select HAVE_FTRACE select HAVE_IDE select HAVE_LMB --