Ingo Molnar | b53dde9 | 2008-05-12 21:20:51 +0200 | [diff] [blame] | 1 | |
| 2 | # Do not instrument the tracer itself: |
| 3 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 4 | ifdef CONFIG_FUNCTION_TRACER |
Ingo Molnar | b53dde9 | 2008-05-12 21:20:51 +0200 | [diff] [blame] | 5 | ORIG_CFLAGS := $(KBUILD_CFLAGS) |
| 6 | KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) |
Steven Rostedt | d05cdb2 | 2008-05-12 21:20:54 +0200 | [diff] [blame] | 7 | |
| 8 | # selftest needs instrumentation |
| 9 | CFLAGS_trace_selftest_dynamic.o = -pg |
| 10 | obj-y += trace_selftest_dynamic.o |
Ingo Molnar | b53dde9 | 2008-05-12 21:20:51 +0200 | [diff] [blame] | 11 | endif |
| 12 | |
Steven Rostedt | 52f232c | 2008-11-12 00:14:40 -0500 | [diff] [blame] | 13 | # If unlikely tracing is enabled, do not trace these files |
Steven Rostedt | 2ed84ee | 2008-11-12 15:24:24 -0500 | [diff] [blame] | 14 | ifdef CONFIG_TRACING_BRANCHES |
| 15 | KBUILD_CFLAGS += -DDISABLE_BRANCH_PROFILING |
Steven Rostedt | 52f232c | 2008-11-12 00:14:40 -0500 | [diff] [blame] | 16 | endif |
| 17 | |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 18 | obj-$(CONFIG_FUNCTION_TRACER) += libftrace.o |
Steven Rostedt | 7a8e76a | 2008-09-29 23:02:38 -0400 | [diff] [blame] | 19 | obj-$(CONFIG_RING_BUFFER) += ring_buffer.o |
Steven Rostedt | 5092dbc | 2009-05-05 22:47:18 -0400 | [diff] [blame^] | 20 | obj-$(CONFIG_RING_BUFFER_BENCHMARK) += ring_buffer_benchmark.o |
Arnaldo Carvalho de Melo | 16444a8 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 21 | |
Steven Rostedt | bc0c38d | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 22 | obj-$(CONFIG_TRACING) += trace.o |
Ingo Molnar | 14131f2 | 2009-02-26 18:47:11 +0100 | [diff] [blame] | 23 | obj-$(CONFIG_TRACING) += trace_clock.o |
Steven Rostedt | f0868d1 | 2008-12-23 23:24:12 -0500 | [diff] [blame] | 24 | obj-$(CONFIG_TRACING) += trace_output.o |
Frederic Weisbecker | dbd0b4b | 2008-12-28 20:44:51 -0800 | [diff] [blame] | 25 | obj-$(CONFIG_TRACING) += trace_stat.o |
Frederic Weisbecker | 769b044 | 2009-03-06 17:21:49 +0100 | [diff] [blame] | 26 | obj-$(CONFIG_TRACING) += trace_printk.o |
Steven Rostedt | 35e8e30 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 27 | obj-$(CONFIG_CONTEXT_SWITCH_TRACER) += trace_sched_switch.o |
Ingo Molnar | f06c381 | 2008-05-12 21:20:47 +0200 | [diff] [blame] | 28 | obj-$(CONFIG_SYSPROF_TRACER) += trace_sysprof.o |
Steven Rostedt | 606576c | 2008-10-06 19:06:12 -0400 | [diff] [blame] | 29 | obj-$(CONFIG_FUNCTION_TRACER) += trace_functions.o |
Steven Rostedt | 81d68a9 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 30 | obj-$(CONFIG_IRQSOFF_TRACER) += trace_irqsoff.o |
Steven Rostedt | 6cd8a4b | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 31 | obj-$(CONFIG_PREEMPT_TRACER) += trace_irqsoff.o |
Steven Rostedt | 352ad25 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 32 | obj-$(CONFIG_SCHED_TRACER) += trace_sched_wakeup.o |
Steven Noonan | fb1b6d8 | 2008-09-19 03:06:43 -0700 | [diff] [blame] | 33 | obj-$(CONFIG_NOP_TRACER) += trace_nop.o |
Steven Rostedt | e5a81b6 | 2008-08-27 23:31:01 -0400 | [diff] [blame] | 34 | obj-$(CONFIG_STACK_TRACER) += trace_stack.o |
Pekka Paalanen | f984b51 | 2008-05-12 21:20:57 +0200 | [diff] [blame] | 35 | obj-$(CONFIG_MMIOTRACE) += trace_mmiotrace.o |
Frédéric Weisbecker | 1f5c2ab | 2008-09-23 11:36:20 +0100 | [diff] [blame] | 36 | obj-$(CONFIG_BOOT_TRACER) += trace_boot.o |
Frederic Weisbecker | fb52607 | 2008-11-25 21:07:04 +0100 | [diff] [blame] | 37 | obj-$(CONFIG_FUNCTION_GRAPH_TRACER) += trace_functions_graph.o |
Steven Rostedt | 94b80ff | 2008-11-12 16:18:45 -0500 | [diff] [blame] | 38 | obj-$(CONFIG_TRACE_BRANCH_PROFILING) += trace_branch.o |
Markus Metzger | a93751c | 2008-12-11 13:53:26 +0100 | [diff] [blame] | 39 | obj-$(CONFIG_HW_BRANCH_TRACER) += trace_hw_branches.o |
Arjan van de Ven | f3f47a6 | 2008-11-23 16:49:58 -0800 | [diff] [blame] | 40 | obj-$(CONFIG_POWER_TRACER) += trace_power.o |
Frederic Weisbecker | 36994e5 | 2008-12-29 13:42:23 -0800 | [diff] [blame] | 41 | obj-$(CONFIG_KMEMTRACE) += kmemtrace.o |
Frederic Weisbecker | e1d8aa9 | 2009-01-12 23:15:46 +0100 | [diff] [blame] | 42 | obj-$(CONFIG_WORKQUEUE_TRACER) += trace_workqueue.o |
Frederic Weisbecker | 2db270a | 2009-02-07 20:46:45 +0100 | [diff] [blame] | 43 | obj-$(CONFIG_BLK_DEV_IO_TRACE) += blktrace.o |
Tom Zanussi | 5f77a88 | 2009-04-08 03:14:01 -0500 | [diff] [blame] | 44 | obj-$(CONFIG_EVENT_TRACING) += trace_events.o |
Tom Zanussi | 5f77a88 | 2009-04-08 03:14:01 -0500 | [diff] [blame] | 45 | obj-$(CONFIG_EVENT_TRACING) += trace_export.o |
Frederic Weisbecker | ee08c6e | 2009-03-07 05:52:59 +0100 | [diff] [blame] | 46 | obj-$(CONFIG_FTRACE_SYSCALLS) += trace_syscalls.o |
Peter Zijlstra | ac199db | 2009-03-19 20:26:15 +0100 | [diff] [blame] | 47 | obj-$(CONFIG_EVENT_PROFILE) += trace_event_profile.o |
Tom Zanussi | 5f77a88 | 2009-04-08 03:14:01 -0500 | [diff] [blame] | 48 | obj-$(CONFIG_EVENT_TRACING) += trace_events_filter.o |
Steven Rostedt | bc0c38d | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 49 | |
Arnaldo Carvalho de Melo | 16444a8 | 2008-05-12 21:20:42 +0200 | [diff] [blame] | 50 | libftrace-y := ftrace.o |