blob: d7e2068e4b71ce98184c2f7c24bd470c457f2dae [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
Steven Rostedt47239c42012-07-20 11:13:07 -04008ifdef CONFIG_FTRACE_SELFTEST
Steven Rostedtd05cdb22008-05-12 21:20:54 +02009# selftest needs instrumentation
10CFLAGS_trace_selftest_dynamic.o = -pg
11obj-y += trace_selftest_dynamic.o
Ingo Molnarb53dde92008-05-12 21:20:51 +020012endif
Steven Rostedt47239c42012-07-20 11:13:07 -040013endif
Ingo Molnarb53dde92008-05-12 21:20:51 +020014
Steven Rostedt52f232c2008-11-12 00:14:40 -050015# If unlikely tracing is enabled, do not trace these files
Steven Rostedt2ed84ee2008-11-12 15:24:24 -050016ifdef CONFIG_TRACING_BRANCHES
17KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
Steven Rostedt52f232c2008-11-12 00:14:40 -050018endif
19
Jiri Olsa1d0e78e2011-08-11 16:25:54 +020020CFLAGS_trace_events_filter.o := -I$(src)
21
Josh Triplettea632e92012-09-02 19:45:14 -070022obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o
Ingo Molnar56449f42009-04-14 11:24:36 +020023
Steven Rostedt606576c2008-10-06 19:06:12 -040024obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o
Steven Rostedt7a8e76a2008-09-29 23:02:38 -040025obj-$(CONFIG_RING_BUFFER) += ring_buffer.o
Steven Rostedt5092dbc2009-05-05 22:47:18 -040026obj-$(CONFIG_RING_BUFFER_BENCHMARK) += ring_buffer_benchmark.o
Arnaldo Carvalho de Melo16444a82008-05-12 21:20:42 +020027
Steven Rostedtbc0c38d2008-05-12 21:20:42 +020028obj-$(CONFIG_TRACING) += trace.o
Steven Rostedtf0868d12008-12-23 23:24:12 -050029obj-$(CONFIG_TRACING) += trace_output.o
Frederic Weisbeckerdbd0b4b2008-12-28 20:44:51 -080030obj-$(CONFIG_TRACING) += trace_stat.o
Frederic Weisbecker769b0442009-03-06 17:21:49 +010031obj-$(CONFIG_TRACING) += trace_printk.o
Steven Rostedt35e8e302008-05-12 21:20:42 +020032obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
Steven Rostedt606576c2008-10-06 19:06:12 -040033obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
Steven Rostedt81d68a92008-05-12 21:20:42 +020034obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
Steven Rostedt6cd8a4b2008-05-12 21:20:42 +020035obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o
Steven Rostedt352ad252008-05-12 21:20:42 +020036obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o
Steven Noonanfb1b6d82008-09-19 03:06:43 -070037obj-$(CONFIG_NOP_TRACER) += trace_nop.o
Steven Rostedte5a81b62008-08-27 23:31:01 -040038obj-$(CONFIG_STACK_TRACER) += trace_stack.o
Pekka Paalanenf984b512008-05-12 21:20:57 +020039obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o
Frederic Weisbeckerfb526072008-11-25 21:07:04 +010040obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o
Steven Rostedt94b80ff2008-11-12 16:18:45 -050041obj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o
Li Zefan55782132009-06-09 13:43:05 +080042obj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.o
43ifeq ($(CONFIG_BLOCK),y)
44obj-$(CONFIG_EVENT_TRACING) += blktrace.o
45endif
Tom Zanussi5f77a882009-04-08 03:14:01 -050046obj-$(CONFIG_EVENT_TRACING) += trace_events.o
Tom Zanussi5f77a882009-04-08 03:14:01 -050047obj-$(CONFIG_EVENT_TRACING) += trace_export.o
Frederic Weisbeckeree08c6e2009-03-07 05:52:59 +010048obj-$(CONFIG_FTRACE_SYSCALLS) += trace_syscalls.o
Li Zefan07b139c2009-12-21 14:27:35 +080049ifeq ($(CONFIG_PERF_EVENTS),y)
Frederic Weisbecker97d5a222010-03-05 05:35:37 +010050obj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o
Li Zefan07b139c2009-12-21 14:27:35 +080051endif
Tom Zanussi5f77a882009-04-08 03:14:01 -050052obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o
Masami Hiramatsu77b44d12009-11-03 19:12:47 -050053obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o
Mathieu Desnoyers870915e2010-10-28 11:31:17 -040054obj-$(CONFIG_TRACEPOINTS) += power-traces.o
Ming Lei2a5306c2011-09-29 22:07:23 +020055ifeq ($(CONFIG_PM_RUNTIME),y)
Ming Lei53b615c2011-09-27 22:53:27 +020056obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o
Ming Lei2a5306c2011-09-29 22:07:23 +020057endif
Jason Wessel955b61e2010-08-05 09:22:23 -050058ifeq ($(CONFIG_TRACING),y)
59obj-$(CONFIG_KGDB_KDB) += trace_kdb.o
60endif
Srikar Dronamraju8ab83f52012-04-09 14:41:44 +053061obj-$(CONFIG_PROBE_EVENTS) += trace_probe.o
Srikar Dronamrajuf3f096c2012-04-11 16:00:43 +053062obj-$(CONFIG_UPROBE_EVENT) += trace_uprobe.o
Steven Rostedtbc0c38d2008-05-12 21:20:42 +020063
Arnaldo Carvalho de Melo16444a82008-05-12 21:20:42 +020064libftrace-y := ftrace.o