1b53dde9dSIngo Molnar 2b53dde9dSIngo Molnar# Do not instrument the tracer itself: 3b53dde9dSIngo Molnar 4606576ceSSteven Rostedtifdef CONFIG_FUNCTION_TRACER 5b53dde9dSIngo MolnarORIG_CFLAGS := $(KBUILD_CFLAGS) 6b53dde9dSIngo MolnarKBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) 7d05cdb25SSteven Rostedt 8d05cdb25SSteven Rostedt# selftest needs instrumentation 9d05cdb25SSteven RostedtCFLAGS_trace_selftest_dynamic.o = -pg 10d05cdb25SSteven Rostedtobj-y += trace_selftest_dynamic.o 11b53dde9dSIngo Molnarendif 12b53dde9dSIngo Molnar 1352f232cbSSteven Rostedt# If unlikely tracing is enabled, do not trace these files 142ed84eebSSteven Rostedtifdef CONFIG_TRACING_BRANCHES 152ed84eebSSteven RostedtKBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING 1652f232cbSSteven Rostedtendif 1752f232cbSSteven Rostedt 1856449f43SIngo Molnar# 1956449f43SIngo Molnar# Make the trace clocks available generally: it's infrastructure 2056449f43SIngo Molnar# relied on by ptrace for example: 2156449f43SIngo Molnar# 2256449f43SIngo Molnarobj-y += trace_clock.o 2356449f43SIngo Molnar 24606576ceSSteven Rostedtobj-$(CONFIG_FUNCTION_TRACER) += libftrace.o 257a8e76a3SSteven Rostedtobj-$(CONFIG_RING_BUFFER) += ring_buffer.o 265092dbc9SSteven Rostedtobj-$(CONFIG_RING_BUFFER_BENCHMARK) += ring_buffer_benchmark.o 2716444a8aSArnaldo Carvalho de Melo 28bc0c38d1SSteven Rostedtobj-$(CONFIG_TRACING) += trace.o 29f0868d1eSSteven Rostedtobj-$(CONFIG_TRACING) += trace_output.o 30dbd0b4b3SFrederic Weisbeckerobj-$(CONFIG_TRACING) += trace_stat.o 31769b0441SFrederic Weisbeckerobj-$(CONFIG_TRACING) += trace_printk.o 3235e8e302SSteven Rostedtobj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o 33606576ceSSteven Rostedtobj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o 3481d68a96SSteven Rostedtobj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o 356cd8a4bbSSteven Rostedtobj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o 36352ad25aSSteven Rostedtobj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o 37fb1b6d8bSSteven Noonanobj-$(CONFIG_NOP_TRACER) += trace_nop.o 38e5a81b62SSteven Rostedtobj-$(CONFIG_STACK_TRACER) += trace_stack.o 39f984b51eSPekka Paalanenobj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o 40fb52607aSFrederic Weisbeckerobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o 4194b80ffdSSteven Rostedtobj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o 42e1d8aa9fSFrederic Weisbeckerobj-$(CONFIG_WORKQUEUE_TRACER) += trace_workqueue.o 432db270a8SFrederic Weisbeckerobj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.o 4455782138SLi Zefanifeq ($(CONFIG_BLOCK),y) 4555782138SLi Zefanobj-$(CONFIG_EVENT_TRACING) += blktrace.o 4655782138SLi Zefanendif 475f77a88bSTom Zanussiobj-$(CONFIG_EVENT_TRACING) += trace_events.o 485f77a88bSTom Zanussiobj-$(CONFIG_EVENT_TRACING) += trace_export.o 49ee08c6ecSFrederic Weisbeckerobj-$(CONFIG_FTRACE_SYSCALLS) += trace_syscalls.o 5007b139c8SLi Zefanifeq ($(CONFIG_PERF_EVENTS),y) 5197d5a220SFrederic Weisbeckerobj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o 5207b139c8SLi Zefanendif 535f77a88bSTom Zanussiobj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o 5477b44d1bSMasami Hiramatsuobj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o 55870915e0SMathieu Desnoyersobj-$(CONFIG_TRACEPOINTS) += power-traces.o 56*2a5306ccSMing Leiifeq ($(CONFIG_PM_RUNTIME),y) 5753b615ccSMing Leiobj-$(CONFIG_TRACEPOINTS) += rpm-traces.o 58*2a5306ccSMing Leiendif 59955b61e5SJason Wesselifeq ($(CONFIG_TRACING),y) 60955b61e5SJason Wesselobj-$(CONFIG_KGDB_KDB) += trace_kdb.o 61955b61e5SJason Wesselendif 62bc0c38d1SSteven Rostedt 6316444a8aSArnaldo Carvalho de Melolibftrace-y := ftrace.o 64