diff options
Diffstat (limited to 'kernel/trace/Makefile')
| -rw-r--r-- | kernel/trace/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index b831087c8200..d7e2068e4b71 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile | |||
| @@ -5,10 +5,12 @@ ifdef CONFIG_FUNCTION_TRACER | |||
| 5 | ORIG_CFLAGS := $(KBUILD_CFLAGS) | 5 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
| 6 | KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) | 6 | KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) |
| 7 | 7 | ||
| 8 | ifdef CONFIG_FTRACE_SELFTEST | ||
| 8 | # selftest needs instrumentation | 9 | # selftest needs instrumentation |
| 9 | CFLAGS_trace_selftest_dynamic.o = -pg | 10 | CFLAGS_trace_selftest_dynamic.o = -pg |
| 10 | obj-y += trace_selftest_dynamic.o | 11 | obj-y += trace_selftest_dynamic.o |
| 11 | endif | 12 | endif |
| 13 | endif | ||
| 12 | 14 | ||
| 13 | # If unlikely tracing is enabled, do not trace these files | 15 | # If unlikely tracing is enabled, do not trace these files |
| 14 | ifdef CONFIG_TRACING_BRANCHES | 16 | ifdef CONFIG_TRACING_BRANCHES |
| @@ -17,11 +19,7 @@ endif | |||
| 17 | 19 | ||
| 18 | CFLAGS_trace_events_filter.o := -I$(src) | 20 | CFLAGS_trace_events_filter.o := -I$(src) |
| 19 | 21 | ||
| 20 | # | 22 | obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o |
| 21 | # Make the trace clocks available generally: it's infrastructure | ||
| 22 | # relied on by ptrace for example: | ||
| 23 | # | ||
| 24 | obj-y += trace_clock.o | ||
| 25 | 23 | ||
| 26 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o | 24 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o |
| 27 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o | 25 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o |
