xref: /openbmc/linux/kernel/trace/Makefile (revision f0868d1e23a8efec33beb3aa688aab7fdb1ae093)
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
18606576ceSSteven Rostedtobj-$(CONFIG_FUNCTION_TRACER) += libftrace.o
197a8e76a3SSteven Rostedtobj-$(CONFIG_RING_BUFFER) += ring_buffer.o
2016444a8aSArnaldo Carvalho de Melo
21bc0c38d1SSteven Rostedtobj-$(CONFIG_TRACING) += trace.o
22*f0868d1eSSteven Rostedtobj-$(CONFIG_TRACING) += trace_output.o
2335e8e302SSteven Rostedtobj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
24f06c3810SIngo Molnarobj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o
25606576ceSSteven Rostedtobj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
2681d68a96SSteven Rostedtobj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
276cd8a4bbSSteven Rostedtobj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o
28352ad25aSSteven Rostedtobj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o
29fb1b6d8bSSteven Noonanobj-$(CONFIG_NOP_TRACER) += trace_nop.o
30e5a81b62SSteven Rostedtobj-$(CONFIG_STACK_TRACER) += trace_stack.o
31f984b51eSPekka Paalanenobj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o
321f5c2abbSFrédéric Weisbeckerobj-$(CONFIG_BOOT_TRACER) += trace_boot.o
33fb52607aSFrederic Weisbeckerobj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o
3494b80ffdSSteven Rostedtobj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o
35a93751caSMarkus Metzgerobj-$(CONFIG_HW_BRANCH_TRACER) += trace_hw_branches.o
36f3f47a67SArjan van de Venobj-$(CONFIG_POWER_TRACER) += trace_power.o
37bc0c38d1SSteven Rostedt
3816444a8aSArnaldo Carvalho de Melolibftrace-y := ftrace.o
39