Commit | Line | Data |
---|---|---|
b53dde9d IM |
1 | |
2 | # Do not instrument the tracer itself: | |
3 | ||
606576ce | 4 | ifdef CONFIG_FUNCTION_TRACER |
b53dde9d IM |
5 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
6 | KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) | |
d05cdb25 SR |
7 | |
8 | # selftest needs instrumentation | |
9 | CFLAGS_trace_selftest_dynamic.o = -pg | |
10 | obj-y += trace_selftest_dynamic.o | |
b53dde9d IM |
11 | endif |
12 | ||
52f232cb | 13 | # If unlikely tracing is enabled, do not trace these files |
2ed84eeb SR |
14 | ifdef CONFIG_TRACING_BRANCHES |
15 | KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING | |
52f232cb SR |
16 | endif |
17 | ||
606576ce | 18 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o |
7a8e76a3 | 19 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o |
16444a8a | 20 | |
bc0c38d1 | 21 | obj-$(CONFIG_TRACING) += trace.o |
35e8e302 | 22 | obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o |
f06c3810 | 23 | obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o |
606576ce | 24 | obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o |
81d68a96 | 25 | obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o |
6cd8a4bb | 26 | obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o |
352ad25a | 27 | obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o |
fb1b6d8b | 28 | obj-$(CONFIG_NOP_TRACER) += trace_nop.o |
e5a81b62 | 29 | obj-$(CONFIG_STACK_TRACER) += trace_stack.o |
f984b51e | 30 | obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o |
1f5c2abb | 31 | obj-$(CONFIG_BOOT_TRACER) += trace_boot.o |
fb52607a | 32 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o |
94b80ffd | 33 | obj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o |
1e9b51c2 | 34 | obj-$(CONFIG_BTS_TRACER) += trace_bts.o |
f3f47a67 | 35 | obj-$(CONFIG_POWER_TRACER) += trace_power.o |
bc0c38d1 | 36 | |
16444a8a | 37 | libftrace-y := ftrace.o |