]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
b53dde9d IM |
2 | |
3 | # Do not instrument the tracer itself: | |
4 | ||
606576ce | 5 | ifdef CONFIG_FUNCTION_TRACER |
b53dde9d | 6 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
c0a80c0c | 7 | KBUILD_CFLAGS = $(subst $(CC_FLAGS_FTRACE),,$(ORIG_CFLAGS)) |
d05cdb25 | 8 | |
47239c4d | 9 | ifdef CONFIG_FTRACE_SELFTEST |
d05cdb25 | 10 | # selftest needs instrumentation |
c0a80c0c | 11 | CFLAGS_trace_selftest_dynamic.o = $(CC_FLAGS_FTRACE) |
d05cdb25 | 12 | obj-y += trace_selftest_dynamic.o |
b53dde9d | 13 | endif |
47239c4d | 14 | endif |
b53dde9d | 15 | |
52f232cb | 16 | # If unlikely tracing is enabled, do not trace these files |
2ed84eeb SR |
17 | ifdef CONFIG_TRACING_BRANCHES |
18 | KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING | |
52f232cb SR |
19 | endif |
20 | ||
81dc9f0e | 21 | CFLAGS_trace_benchmark.o := -I$(src) |
1d0e78e3 JO |
22 | CFLAGS_trace_events_filter.o := -I$(src) |
23 | ||
ea632e9f | 24 | obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o |
56449f43 | 25 | |
606576ce | 26 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o |
7a8e76a3 | 27 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o |
5092dbc9 | 28 | obj-$(CONFIG_RING_BUFFER_BENCHMARK) += ring_buffer_benchmark.o |
16444a8a | 29 | |
bc0c38d1 | 30 | obj-$(CONFIG_TRACING) += trace.o |
f0868d1e | 31 | obj-$(CONFIG_TRACING) += trace_output.o |
12306276 | 32 | obj-$(CONFIG_TRACING) += trace_seq.o |
dbd0b4b3 | 33 | obj-$(CONFIG_TRACING) += trace_stat.o |
769b0441 | 34 | obj-$(CONFIG_TRACING) += trace_printk.o |
08d43a5f | 35 | obj-$(CONFIG_TRACING_MAP) += tracing_map.o |
35e8e302 | 36 | obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o |
606576ce | 37 | obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o |
d5915816 | 38 | obj-$(CONFIG_PREEMPTIRQ_EVENTS) += trace_irqsoff.o |
81d68a96 | 39 | obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o |
6cd8a4bb | 40 | obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o |
352ad25a | 41 | obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o |
e7c15cd8 | 42 | obj-$(CONFIG_HWLAT_TRACER) += trace_hwlat.o |
fb1b6d8b | 43 | obj-$(CONFIG_NOP_TRACER) += trace_nop.o |
e5a81b62 | 44 | obj-$(CONFIG_STACK_TRACER) += trace_stack.o |
f984b51e | 45 | obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o |
fb52607a | 46 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o |
94b80ffd | 47 | obj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o |
55782138 LZ |
48 | obj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.o |
49 | ifeq ($(CONFIG_BLOCK),y) | |
50 | obj-$(CONFIG_EVENT_TRACING) += blktrace.o | |
51 | endif | |
5f77a88b | 52 | obj-$(CONFIG_EVENT_TRACING) += trace_events.o |
5f77a88b | 53 | obj-$(CONFIG_EVENT_TRACING) += trace_export.o |
ee08c6ec | 54 | obj-$(CONFIG_FTRACE_SYSCALLS) += trace_syscalls.o |
07b139c8 | 55 | ifeq ($(CONFIG_PERF_EVENTS),y) |
97d5a220 | 56 | obj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o |
07b139c8 | 57 | endif |
5f77a88b | 58 | obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o |
85f2b082 | 59 | obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o |
7ef224d1 | 60 | obj-$(CONFIG_HIST_TRIGGERS) += trace_events_hist.o |
e1abf2cc | 61 | obj-$(CONFIG_BPF_EVENTS) += bpf_trace.o |
6b0b7551 | 62 | obj-$(CONFIG_KPROBE_EVENTS) += trace_kprobe.o |
870915e0 | 63 | obj-$(CONFIG_TRACEPOINTS) += power-traces.o |
798bc6d8 | 64 | ifeq ($(CONFIG_PM),y) |
53b615cc | 65 | obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o |
2a5306cc | 66 | endif |
955b61e5 JW |
67 | ifeq ($(CONFIG_TRACING),y) |
68 | obj-$(CONFIG_KGDB_KDB) += trace_kdb.o | |
69 | endif | |
8ab83f56 | 70 | obj-$(CONFIG_PROBE_EVENTS) += trace_probe.o |
6b0b7551 | 71 | obj-$(CONFIG_UPROBE_EVENTS) += trace_uprobe.o |
bc0c38d1 | 72 | |
81dc9f0e SRRH |
73 | obj-$(CONFIG_TRACEPOINT_BENCHMARK) += trace_benchmark.o |
74 | ||
16444a8a | 75 | libftrace-y := ftrace.o |