diff options
Diffstat (limited to 'kernel/trace/Makefile')
-rw-r--r-- | kernel/trace/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 3fec653d6533..c25a6cd6a529 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile | |||
@@ -1,3 +1,11 @@ | |||
1 | |||
2 | # Do not instrument the tracer itself: | ||
3 | |||
4 | ifdef CONFIG_FTRACE | ||
5 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | ||
6 | KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) | ||
7 | endif | ||
8 | |||
1 | obj-$(CONFIG_FTRACE) += libftrace.o | 9 | obj-$(CONFIG_FTRACE) += libftrace.o |
2 | 10 | ||
3 | obj-$(CONFIG_TRACING) += trace.o | 11 | obj-$(CONFIG_TRACING) += trace.o |