Blame view

kernel/trace/Makefile 2.21 KB
b53dde9d3   Ingo Molnar   ftrace: disable -...
1
2
  
  # Do not instrument the tracer itself:
606576ce8   Steven Rostedt   ftrace: rename FT...
3
  ifdef CONFIG_FUNCTION_TRACER
b53dde9d3   Ingo Molnar   ftrace: disable -...
4
5
  ORIG_CFLAGS := $(KBUILD_CFLAGS)
  KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS))
d05cdb25d   Steven Rostedt   ftrace: fix dynam...
6

47239c4d8   Steven Rostedt   ftrace: Only comp...
7
  ifdef CONFIG_FTRACE_SELFTEST
d05cdb25d   Steven Rostedt   ftrace: fix dynam...
8
9
10
  # selftest needs instrumentation
  CFLAGS_trace_selftest_dynamic.o = -pg
  obj-y += trace_selftest_dynamic.o
b53dde9d3   Ingo Molnar   ftrace: disable -...
11
  endif
47239c4d8   Steven Rostedt   ftrace: Only comp...
12
  endif
b53dde9d3   Ingo Molnar   ftrace: disable -...
13

52f232cb7   Steven Rostedt   tracing: likely/u...
14
  # If unlikely tracing is enabled, do not trace these files
2ed84eeb8   Steven Rostedt   trace: rename unl...
15
16
  ifdef CONFIG_TRACING_BRANCHES
  KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING
52f232cb7   Steven Rostedt   tracing: likely/u...
17
  endif
81dc9f0ef   Steven Rostedt (Red Hat)   tracing: Add trac...
18
  CFLAGS_trace_benchmark.o := -I$(src)
1d0e78e38   Jiri Olsa   tracing/filter: A...
19
  CFLAGS_trace_events_filter.o := -I$(src)
ea632e9f1   Josh Triplett   trace: Stop compi...
20
  obj-$(CONFIG_TRACE_CLOCK) += trace_clock.o
56449f437   Ingo Molnar   tracing: make the...
21

606576ce8   Steven Rostedt   ftrace: rename FT...
22
  obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o
7a8e76a38   Steven Rostedt   tracing: unified ...
23
  obj-$(CONFIG_RING_BUFFER) += ring_buffer.o
5092dbc96   Steven Rostedt   ring-buffer: add ...
24
  obj-$(CONFIG_RING_BUFFER_BENCHMARK) += ring_buffer_benchmark.o
16444a8a4   Arnaldo Carvalho de Melo   ftrace: add basic...
25

bc0c38d13   Steven Rostedt   ftrace: latency t...
26
  obj-$(CONFIG_TRACING) += trace.o
f0868d1e2   Steven Rostedt   ftrace: set up tr...
27
  obj-$(CONFIG_TRACING) += trace_output.o
12306276f   Steven Rostedt (Red Hat)   tracing: Move the...
28
  obj-$(CONFIG_TRACING) += trace_seq.o
dbd0b4b33   Frederic Weisbecker   tracing/ftrace: p...
29
  obj-$(CONFIG_TRACING) += trace_stat.o
769b0441f   Frederic Weisbecker   tracing/core: dro...
30
  obj-$(CONFIG_TRACING) += trace_printk.o
35e8e302e   Steven Rostedt   ftrace: add traci...
31
  obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o
606576ce8   Steven Rostedt   ftrace: rename FT...
32
  obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o
81d68a96a   Steven Rostedt   ftrace: trace irq...
33
  obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o
6cd8a4bb2   Steven Rostedt   ftrace: trace pre...
34
  obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o
352ad25aa   Steven Rostedt   ftrace: tracer fo...
35
  obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o
fb1b6d8b5   Steven Noonan   ftrace: add nop t...
36
  obj-$(CONFIG_NOP_TRACER) += trace_nop.o
e5a81b629   Steven Rostedt   ftrace: add stack...
37
  obj-$(CONFIG_STACK_TRACER) += trace_stack.o
f984b51e0   Pekka Paalanen   ftrace: add mmiot...
38
  obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o
fb52607af   Frederic Weisbecker   tracing/function-...
39
  obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o
94b80ffd6   Steven Rostedt   ftrace: rename tr...
40
  obj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o
55782138e   Li Zefan   tracing/events: c...
41
42
43
44
  obj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.o
  ifeq ($(CONFIG_BLOCK),y)
  obj-$(CONFIG_EVENT_TRACING) += blktrace.o
  endif
5f77a88b3   Tom Zanussi   tracing/infrastru...
45
  obj-$(CONFIG_EVENT_TRACING) += trace_events.o
5f77a88b3   Tom Zanussi   tracing/infrastru...
46
  obj-$(CONFIG_EVENT_TRACING) += trace_export.o
ee08c6ecc   Frederic Weisbecker   tracing/ftrace: s...
47
  obj-$(CONFIG_FTRACE_SYSCALLS) += trace_syscalls.o
07b139c8c   Li Zefan   perf events: Remo...
48
  ifeq ($(CONFIG_PERF_EVENTS),y)
97d5a2200   Frederic Weisbecker   perf: Drop the ob...
49
  obj-$(CONFIG_EVENT_TRACING) += trace_event_perf.o
07b139c8c   Li Zefan   perf events: Remo...
50
  endif
5f77a88b3   Tom Zanussi   tracing/infrastru...
51
  obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o
85f2b0826   Tom Zanussi   tracing: Add basi...
52
  obj-$(CONFIG_EVENT_TRACING) += trace_events_trigger.o
77b44d1b7   Masami Hiramatsu   tracing/kprobes: ...
53
  obj-$(CONFIG_KPROBE_EVENT) += trace_kprobe.o
870915e04   Mathieu Desnoyers   tracing: Fix TRAC...
54
  obj-$(CONFIG_TRACEPOINTS) += power-traces.o
2a5306cc5   Ming Lei   PM / Tracing: bui...
55
  ifeq ($(CONFIG_PM_RUNTIME),y)
53b615ccc   Ming Lei   PM / Runtime: Int...
56
  obj-$(CONFIG_TRACEPOINTS) += rpm-traces.o
2a5306cc5   Ming Lei   PM / Tracing: bui...
57
  endif
955b61e59   Jason Wessel   ftrace,kdb: Exten...
58
59
60
  ifeq ($(CONFIG_TRACING),y)
  obj-$(CONFIG_KGDB_KDB) += trace_kdb.o
  endif
8ab83f564   Srikar Dronamraju   tracing: Extract ...
61
  obj-$(CONFIG_PROBE_EVENTS) += trace_probe.o
f3f096cfe   Srikar Dronamraju   tracing: Provide ...
62
  obj-$(CONFIG_UPROBE_EVENT) += trace_uprobe.o
bc0c38d13   Steven Rostedt   ftrace: latency t...
63

81dc9f0ef   Steven Rostedt (Red Hat)   tracing: Add trac...
64
  obj-$(CONFIG_TRACEPOINT_BENCHMARK) += trace_benchmark.o
16444a8a4   Arnaldo Carvalho de Melo   ftrace: add basic...
65
  libftrace-y := ftrace.o