blob: c938d03516c0ef8a15bdfd546d64847c8b223aa5 [file] [log] [blame]
Ingo Molnarb53dde92008-05-12 21:20:51 +02001
2# Do not instrument the tracer itself:
3
Steven Rostedt606576c2008-10-06 19:06:12 -04004ifdef CONFIG_FUNCTION_TRACER
Ingo Molnarb53dde92008-05-12 21:20:51 +02005ORIG_CFLAGS := $(KBUILD_CFLAGS)
6KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
Steven Rostedtd05cdb22008-05-12 21:20:54 +02007
8# selftest needs instrumentation
9CFLAGS_trace_selftest_dynamic.o = -pg
10obj-y += trace_selftest_dynamic.o
Ingo Molnarb53dde92008-05-12 21:20:51 +020011endif
12
Steven Rostedt52f232c2008-11-12 00:14:40 -050013# If unlikely tracing is enabled, do not trace these files
14ifdef CONFIG_TRACING_UNLIKELY
15KBUILD_CFLAGS += '-Dlikely(x)=likely_notrace(x)'
16KBUILD_CFLAGS += '-Dunlikely(x)=unlikely_notrace(x)'
17endif
18
Steven Rostedt606576c2008-10-06 19:06:12 -040019obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o
Steven Rostedt7a8e76a2008-09-29 23:02:38 -040020obj-$(CONFIG_RING_BUFFER) += ring_buffer.o
Arnaldo Carvalho de Melo16444a82008-05-12 21:20:42 +020021
Steven Rostedtbc0c38d2008-05-12 21:20:42 +020022obj-$(CONFIG_TRACING) += trace.o
Steven Rostedt35e8e302008-05-12 21:20:42 +020023obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
Ingo Molnarf06c3812008-05-12 21:20:47 +020024obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o
Steven Rostedt606576c2008-10-06 19:06:12 -040025obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
Steven Rostedt81d68a92008-05-12 21:20:42 +020026obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
Steven Rostedt6cd8a4b2008-05-12 21:20:42 +020027obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o
Steven Rostedt352ad252008-05-12 21:20:42 +020028obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o
Steven Noonanfb1b6d82008-09-19 03:06:43 -070029obj-$(CONFIG_NOP_TRACER) += trace_nop.o
Steven Rostedte5a81b62008-08-27 23:31:01 -040030obj-$(CONFIG_STACK_TRACER) += trace_stack.o
Pekka Paalanenf984b512008-05-12 21:20:57 +020031obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o
Frédéric Weisbecker1f5c2ab2008-09-23 11:36:20 +010032obj-$(CONFIG_BOOT_TRACER) += trace_boot.o
Frederic Weisbecker15e6cb32008-11-11 07:14:25 +010033obj-$(CONFIG_FUNCTION_RET_TRACER) += trace_functions_return.o
Steven Rostedt1f0d69a2008-11-12 00:14:39 -050034obj-$(CONFIG_TRACE_UNLIKELY_PROFILE) += trace_unlikely.o
Steven Rostedtbc0c38d2008-05-12 21:20:42 +020035
Arnaldo Carvalho de Melo16444a82008-05-12 21:20:42 +020036libftrace-y := ftrace.o