Ingo Molnar | b53dde9 | 2008-05-12 21:20:51 +0200 | [diff] [blame] | 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)) |
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 | |
Arnaldo Carvalho de Melo | 16444a8 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 13 | obj-$(CONFIG_FTRACE) += libftrace.o |
| 14 | |
Steven Rostedt | bc0c38d | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 15 | obj-$(CONFIG_TRACING) += trace.o |
Steven Rostedt | 35e8e30 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 16 | obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o |
Ingo Molnar | f06c381 | 2008-05-12 21:20:47 +0200 | [diff] [blame^] | 17 | obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o |
Steven Rostedt | 1b29b01 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 18 | obj-$(CONFIG_FTRACE) += trace_functions.o |
Steven Rostedt | 81d68a9 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 19 | obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o |
Steven Rostedt | 6cd8a4b | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 20 | obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o |
Steven Rostedt | 352ad25 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 21 | obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o |
Steven Rostedt | bc0c38d | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 22 | |
Arnaldo Carvalho de Melo | 16444a8 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 23 | libftrace-y := ftrace.o |