[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1237741289-14926-1-git-send-email-fweisbec@gmail.com>
Date: Sun, 22 Mar 2009 18:01:29 +0100
From: Frederic Weisbecker <fweisbec@...il.com>
To: Ingo Molnar <mingo@...e.hu>
Cc: Steven Rostedt <rostedt@...dmis.org>,
LKML <linux-kernel@...r.kernel.org>,
Frederic Weisbecker <fweisbec@...il.com>
Subject: [PATCH] tracing/function-graph-tracer: don't profile branches on graph tracer
Impact: fix slow tracing
The core kernel tracing is protected against soft branch profiling, but
not the x86 ftrace arch part. Let's fix it.
Signed-off-by: Frederic Weisbecker <fweisbec@...il.com>
---
arch/x86/kernel/Makefile | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile
index 599e9a7..8d9b3f9 100644
--- a/arch/x86/kernel/Makefile
+++ b/arch/x86/kernel/Makefile
@@ -13,6 +13,7 @@ CFLAGS_REMOVE_rtc.o = -pg
CFLAGS_REMOVE_paravirt-spinlocks.o = -pg
CFLAGS_REMOVE_ftrace.o = -pg
CFLAGS_REMOVE_early_printk.o = -pg
+CFLAGS_ftrace.o += -DDISABLE_BRANCH_PROFILING
endif
#
--
1.6.1
--
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