1b53dde9dSIngo Molnar 2b53dde9dSIngo Molnar# Do not instrument the tracer itself: 3b53dde9dSIngo Molnar 4b53dde9dSIngo Molnarifdef CONFIG_FTRACE 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 1316444a8aSArnaldo Carvalho de Meloobj-$(CONFIG_FTRACE) += libftrace.o 1416444a8aSArnaldo Carvalho de Melo 15bc0c38d1SSteven Rostedtobj-$(CONFIG_TRACING) += trace.o 1635e8e302SSteven Rostedtobj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o 17f06c3810SIngo Molnarobj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o 181b29b018SSteven Rostedtobj-$(CONFIG_FTRACE) += trace_functions.o 1981d68a96SSteven Rostedtobj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o 206cd8a4bbSSteven Rostedtobj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o 21352ad25aSSteven Rostedtobj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o 22fb1b6d8bSSteven Noonanobj-$(CONFIG_NOP_TRACER) += trace_nop.o 23e5a81b62SSteven Rostedtobj-$(CONFIG_STACK_TRACER) += trace_stack.o 24f984b51eSPekka Paalanenobj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o 25*1f5c2abbSFrédéric Weisbeckerobj-$(CONFIG_BOOT_TRACER) += trace_boot.o 26bc0c38d1SSteven Rostedt 2716444a8aSArnaldo Carvalho de Melolibftrace-y := ftrace.o 28