projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3594136
)
ftrace: disable -pg for the tracer itself
author
Ingo Molnar
<mingo@elte.hu>
Mon, 12 May 2008 19:20:51 +0000
(21:20 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 23 May 2008 18:56:53 +0000
(20:56 +0200)
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/trace/Makefile
patch
|
blob
|
blame
|
history
diff --git
a/kernel/trace/Makefile
b/kernel/trace/Makefile
index 3fec653d65334e9551c3e6c6e1f3437dc875cb51..c25a6cd6a52964f3e3b1a71b048415be6a7805ee 100644
(file)
--- a/
kernel/trace/Makefile
+++ b/
kernel/trace/Makefile
@@
-1,3
+1,11
@@
+
+# Do not instrument the tracer itself:
+
+ifdef CONFIG_FTRACE
+ORIG_CFLAGS := $(KBUILD_CFLAGS)
+KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
+endif
+
obj-$(CONFIG_FTRACE) += libftrace.o
obj-$(CONFIG_TRACING) += trace.o