diff options
Diffstat (limited to 'kernel/trace/Makefile')
| -rw-r--r-- | kernel/trace/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index 98e70ee27986..c938d03516c0 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile | |||
| @@ -10,6 +10,12 @@ CFLAGS_trace_selftest_dynamic.o = -pg | |||
| 10 | obj-y += trace_selftest_dynamic.o | 10 | obj-y += trace_selftest_dynamic.o |
| 11 | endif | 11 | endif |
| 12 | 12 | ||
| 13 | # If unlikely tracing is enabled, do not trace these files | ||
| 14 | ifdef CONFIG_TRACING_UNLIKELY | ||
| 15 | KBUILD_CFLAGS += '-Dlikely(x)=likely_notrace(x)' | ||
| 16 | KBUILD_CFLAGS += '-Dunlikely(x)=unlikely_notrace(x)' | ||
| 17 | endif | ||
| 18 | |||
| 13 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o | 19 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o |
| 14 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o | 20 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o |
| 15 | 21 | ||
