mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] tracing/function-graph-tracer: don't profile branches on graph tracer
@ 2009-03-22 17:01 Frederic Weisbecker
  2009-03-22 17:03 ` Ingo Molnar
  2009-03-23 18:46 ` Steven Rostedt
  0 siblings, 2 replies; 3+ messages in thread
From: Frederic Weisbecker @ 2009-03-22 17:01 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Steven Rostedt, LKML, Frederic Weisbecker

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@gmail.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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-03-23 18:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-22 17:01 [PATCH] tracing/function-graph-tracer: don't profile branches on graph tracer Frederic Weisbecker
2009-03-22 17:03 ` Ingo Molnar
2009-03-23 18:46 ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®