blob: f76d48f3527d370934487d9387b7c1f4c4735e27 [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
Steven Rostedt2ed84ee2008-11-12 15:24:24 -050014ifdef CONFIG_TRACING_BRANCHES
15KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
Steven Rostedt52f232c2008-11-12 00:14:40 -050016endif
17
Steven Rostedt606576c2008-10-06 19:06:12 -040018obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o
Steven Rostedt7a8e76a2008-09-29 23:02:38 -040019obj-$(CONFIG_RING_BUFFER) += ring_buffer.o
Arnaldo Carvalho de Melo16444a82008-05-12 21:20:42 +020020
Steven Rostedtbc0c38d2008-05-12 21:20:42 +020021obj-$(CONFIG_TRACING) += trace.o
Steven Rostedtf0868d12008-12-23 23:24:12 -050022obj-$(CONFIG_TRACING) += trace_output.o
Frederic Weisbeckerdbd0b4b2008-12-28 20:44:51 -080023obj-$(CONFIG_TRACING) += trace_stat.o
Steven Rostedt35e8e302008-05-12 21:20:42 +020024obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
Ingo Molnarf06c3812008-05-12 21:20:47 +020025obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o
Steven Rostedt606576c2008-10-06 19:06:12 -040026obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
Steven Rostedt81d68a92008-05-12 21:20:42 +020027obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
Steven Rostedt6cd8a4b2008-05-12 21:20:42 +020028obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o
Steven Rostedt352ad252008-05-12 21:20:42 +020029obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o
Steven Noonanfb1b6d82008-09-19 03:06:43 -070030obj-$(CONFIG_NOP_TRACER) += trace_nop.o
Steven Rostedte5a81b62008-08-27 23:31:01 -040031obj-$(CONFIG_STACK_TRACER) += trace_stack.o
Pekka Paalanenf984b512008-05-12 21:20:57 +020032obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o
Frédéric Weisbecker1f5c2ab2008-09-23 11:36:20 +010033obj-$(CONFIG_BOOT_TRACER) += trace_boot.o
Frederic Weisbeckerfb526072008-11-25 21:07:04 +010034obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o
Steven Rostedt94b80ff2008-11-12 16:18:45 -050035obj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o
Markus Metzgera93751c2008-12-11 13:53:26 +010036obj-$(CONFIG_HW_BRANCH_TRACER) += trace_hw_branches.o
Arjan van de Venf3f47a62008-11-23 16:49:58 -080037obj-$(CONFIG_POWER_TRACER) += trace_power.o
Frederic Weisbecker36994e52008-12-29 13:42:23 -080038obj-$(CONFIG_KMEMTRACE) += kmemtrace.o
Frederic Weisbeckere1d8aa92009-01-12 23:15:46 +010039obj-$(CONFIG_WORKQUEUE_TRACER) += trace_workqueue.o
Steven Rostedtbc0c38d2008-05-12 21:20:42 +020040
Arnaldo Carvalho de Melo16444a82008-05-12 21:20:42 +020041libftrace-y := ftrace.o