Ingo Molnar | b53dde9 | 2008-05-12 21:20:51 +0200 | [diff] [blame] | 1 | |
| 2 | # Do not instrument the tracer itself: |
| 3 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 4 | ifdef CONFIG_FUNCTION_TRACER |
Ingo Molnar | b53dde9 | 2008-05-12 21:20:51 +0200 | [diff] [blame] | 5 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
| 6 | KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) |
Steven Rostedt | d05cdb2 | 2008-05-12 21:20:54 +0200 | [diff] [blame] | 7 | |
| 8 | # selftest needs instrumentation |
| 9 | CFLAGS_trace_selftest_dynamic.o = -pg |
| 10 | obj-y += trace_selftest_dynamic.o |
Ingo Molnar | b53dde9 | 2008-05-12 21:20:51 +0200 | [diff] [blame] | 11 | endif |
| 12 | |
Steven Rostedt | 52f232c | 2008-11-12 00:14:40 -0500 | [diff] [blame^] | 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 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 19 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o |
Steven Rostedt | 7a8e76a | 2008-09-29 23:02:38 -0400 | [diff] [blame] | 20 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o |
Arnaldo Carvalho de Melo | 16444a8 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 21 | |
Steven Rostedt | bc0c38d | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 22 | obj-$(CONFIG_TRACING) += trace.o |
Steven Rostedt | 35e8e30 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 23 | obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o |
Ingo Molnar | f06c381 | 2008-05-12 21:20:47 +0200 | [diff] [blame] | 24 | obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 25 | obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o |
Steven Rostedt | 81d68a9 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 26 | obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o |
Steven Rostedt | 6cd8a4b | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 27 | obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o |
Steven Rostedt | 352ad25 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 28 | obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o |
Steven Noonan | fb1b6d8 | 2008-09-19 03:06:43 -0700 | [diff] [blame] | 29 | obj-$(CONFIG_NOP_TRACER) += trace_nop.o |
Steven Rostedt | e5a81b6 | 2008-08-27 23:31:01 -0400 | [diff] [blame] | 30 | obj-$(CONFIG_STACK_TRACER) += trace_stack.o |
Pekka Paalanen | f984b51 | 2008-05-12 21:20:57 +0200 | [diff] [blame] | 31 | obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o |
Frédéric Weisbecker | 1f5c2ab | 2008-09-23 11:36:20 +0100 | [diff] [blame] | 32 | obj-$(CONFIG_BOOT_TRACER) += trace_boot.o |
Frederic Weisbecker | 15e6cb3 | 2008-11-11 07:14:25 +0100 | [diff] [blame] | 33 | obj-$(CONFIG_FUNCTION_RET_TRACER) += trace_functions_return.o |
Steven Rostedt | 1f0d69a | 2008-11-12 00:14:39 -0500 | [diff] [blame] | 34 | obj-$(CONFIG_TRACE_UNLIKELY_PROFILE) += trace_unlikely.o |
Steven Rostedt | bc0c38d | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 35 | |
Arnaldo Carvalho de Melo | 16444a8 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 36 | libftrace-y := ftrace.o |